Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 7915

CSAP_MAT_BOM_MAINTAIN Not Updating BOM Item Long Text Properly

$
0
0

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


Viewing all articles
Browse latest Browse all 7915


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>