Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

error while uploading the data

Former Member
0 Likes
420

hello experts,

I am facing a problem in uploading the data for cs01.i Have to upload the data for hedear level as well as item level data.

DATA : CNT TYPE C,

VAR(2) type C .

DATA : INI TYPE C VALUE '0' .

LOOP AT T_MAT INTO W_MAT.

REFRESH GT_BDCDATA.

CLEAR GW_BDCDATA.

clear cnt.

PERFORM HEADER_DETAILS.

LOOP AT T_BOM INTO W_BOM WHERE MATNR1 = W_MAT-MATNR.

cnt = cnt + 1.

CONCATENATE '0' CNT INTO VAR.

perform itemset1.

FORM itemset1.

perform bdc_dynpro using 'SAPLCSDI' '0140'.

perform bdc_field using 'BDC_CURSOR'

'RC29P-POSTP(03)'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'RC29P-IDNRK(01)' W_BOM-BOM_COMP.

  • 'purchasecost'.

perform bdc_field using 'RC29P-MENGE(VAR)' W_BOM-QTY.

    • '20'.

perform bdc_field using 'RC29P-POSTP(VAR)' W_BOM-ITM_CAT.

    • 'Z'.

as i have to upload multiple line items.

so when i pur var at the place of '01' e.g 'RC29P-IDNRK(01) if write like 'RC29P-IDNRK(var) the data is not being uploaded.

whereas if i put 01 it works..but this will work single line item only.

plz help.

Thanks n Regards,

Ashmita Singh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
383

You have to create RC29P-IDNRK(var) using concatenate statement. Try this.


DATA: new_mark TYPE bdcdata-fnam.
CONCATENATE 'RC29P-IDNRK(' var ')' INTO new_mark.
PERFORM bdc_field USING new_mark W_BOM-QTY

2 REPLIES 2
Read only

Former Member
0 Likes
384

You have to create RC29P-IDNRK(var) using concatenate statement. Try this.


DATA: new_mark TYPE bdcdata-fnam.
CONCATENATE 'RC29P-IDNRK(' var ')' INTO new_mark.
PERFORM bdc_field USING new_mark W_BOM-QTY

Read only

0 Likes
383

Thanks Manish...