08-27-2009 10:01 AM
Hello,
I am trying to update material bom details using function module CSAP_MAT_BOM_MAINTAIN using RFC from external application. This includes the item long text updation. I am passing more than three lines text in parameter table T_LTX_LINE (means greater than 80 chars). I checked incoming parameter values, it looks input parameters are coming properly passed by external application.It's updating perfect except item long text. It updates only upto 80 chars length. When I try to display BOM item long text in CS03, it gives me error "Long text does not exists". If I run this function module in SAP directly, it updates long text perfectly.
When I set external break point and update in debugg more, it's updating perfectly including item long text. When I run external application without break points then only it gives error of "Long text does not exists".
Please help me resolving this strange problem.
The sample code is as below.
CALL FUNCTION 'CSAP_MAT_BOM_MAINTAIN'
EXPORTING
material = l_parent_material_no
plant = p_plant
bom_usage = l_bom_usage
alternative = l_alternative
change_no = p_change_no
i_stko = l_stko_in
fl_bom_create = 'X'
fl_new_item = 'X'
fl_commit_and_wait = 'X'
fl_complete = 'X'
IMPORTING
fl_warning = l_fl_warning
o_stko = lt_stko
TABLES
t_stpo = lt_stpo
t_ltx_line = lt_ltx_line
EXCEPTIONS
error = 1
OTHERS = 2.
Regards,
Ajitrao
12-05-2012 5:14 PM
* object_id = 0: Stücklistentext (STZU) (-> CS_DI_BOM_UPDATE)
* = 1: Alternativentext (STKO)
* = 2: Positionstext (STPO)
03-01-2015 9:12 PM
Hi Ajit,
I am having the same issue now. Did you find the solution for this ?
Thanks.