Application Development 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: 

Regarding CO11N Call Transaction

Former Member
0 Kudos

Hi Gurus

I have developed a Module Pool through which when i click on SAVE the respective amounts shoud be posted into CO11N transaction through Call Transaction. I have done the recording but the amounts in goods movements the amounts for only first row are able to insert, the next rows the amount is not getting updated.

Can any one tell me how to do the code for that?

Waiting for ur reply....

Regards

Srinath

2 REPLIES 2

Former Member
0 Kudos

in you BDC use bewlo code

  • lv_item = lv_item + 01.

'LTAP-NISTA' is your screen filed

presently you screen filed is 'LTAP-NISTA(01)' each and every line increase your count and pass this values

  • CONCATENATE '' 'LTAP-NISTA' '(' lv_item ')' INTO lv_char.

  • CONCATENATE '' 'LTAP-ALTME' '(' lv_item ')' INTO lv_char1.

  • CONCATENATE '' 'LTAP-KZDIF' '(' lv_item ')' INTO lv_char2.

  • CONCATENATE '' 'LTAP-NDIFA' '(' lv_item ')' INTO lv_char3.

0 Kudos

Hi Chenna,

Thanx for ur reply , but i have done the same way as u said. But the values are not getting updated.

Can u be more clear on that

My recording is:

PERFORM BDC_DYNPRO USING 'SAPLCORU_S' '0100'.

PERFORM BDC_FIELD USING 'BDC_CURSOR' 'AFRUD-AUFNR'.

PERFORM BDC_FIELD USING 'BDC_OKCODE' '=MB03'.

CLEAR V_FIELD.

V_CNT1 = V_CNT1 + 1.

CONCATENATE 'COWB_COMP-ERFMG(' V_CNT1 ')' INTO V_FIELD.

PERFORM BDC_FIELD USING V_FIELD PY.

V_CNT1 = V_CNT1 + 1.

CONCATENATE 'COWB_COMP-ERFMG(' V_CNT1 ')' INTO V_FIELD.

PERFORM BDC_FIELD USING V_FIELD GAS.

V_CNT1 = V_CNT1 + 1.

CONCATENATE 'COWB_COMP-ERFMG(' V_CNT1 ')' INTO V_FIELD.

PERFORM BDC_FIELD USING V_FIELD HSD.

Can u rectify this....

Regards

Srinath