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

i have problem with cn22 transaction while uploading

Former Member
0 Likes
552

dear Experts

i have problem while uploading the data into the CN22 transaction

i t is updating frontend mode 'A' but not updating with backend when 'N'

please tell me the solution.

perform bdc_dynpro using 'SAPLCOKO' '2000'.

perform bdc_field using 'BDC_CURSOR'

'CAUFVD-AUFNR'.

perform bdc_field using 'BDC_OKCODE'

'=LIST'.

perform bdc_field using 'CAUFVD-AUFNR'

wa_data-aufnr.

perform bdc_dynpro using 'SAPLCOVG' '2000'.

perform bdc_field using 'BDC_OKCODE'

'=EINF'.

perform bdc_field using 'BDC_CURSOR'

'AFVGD-VORNR(01)'.

perform bdc_field using 'RC27X-FLG_SEL(01)'

FLG_SEL_01_002.

perform bdc_dynpro using 'SAPLCOVG' '2000'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'BDC_CURSOR'

'AFVGD-ARBPL(01)'.

perform bdc_field using 'AFVGD-VORNR(01)'

wa_data-vornr.

perform bdc_field using 'AFVGD-LTXA1(01)'

wa_data-ltxa1.

perform bdc_field using 'AFVGD-DAUNO(01)'

wa_data-dauno.

perform bdc_field using 'AFVGD-ARBPL(01)'

wa_data-arbpl.

perform bdc_dynpro using 'SAPLCOVG' '2000'.

perform bdc_field using 'BDC_CURSOR'

'VSNETEXT-NPLNR'.

perform bdc_field using 'BDC_OKCODE'

'=BU'.

*perform bdc_transaction using 'CN22'.

call transaction 'CN22' using it_bdcdata

OPTIONS FROM wa_CTU_PARAMS

messages into mess_tab.

dear Experts

i have problem while uploading the data into the CN22 transaction

i t is updating frontend mode 'A' but not updating with backend when 'N'

please tell me the solution.

perform bdc_dynpro using 'SAPLCOKO' '2000'.

perform bdc_field using 'BDC_CURSOR'

'CAUFVD-AUFNR'.

perform bdc_field using 'BDC_OKCODE'

'=LIST'.

perform bdc_field using 'CAUFVD-AUFNR'

wa_data-aufnr.

perform bdc_dynpro using 'SAPLCOVG' '2000'.

perform bdc_field using 'BDC_OKCODE'

'=EINF'.

perform bdc_field using 'BDC_CURSOR'

'AFVGD-VORNR(01)'.

perform bdc_field using 'RC27X-FLG_SEL(01)'

FLG_SEL_01_002.

perform bdc_dynpro using 'SAPLCOVG' '2000'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'BDC_CURSOR'

'AFVGD-ARBPL(01)'.

perform bdc_field using 'AFVGD-VORNR(01)'

wa_data-vornr.

perform bdc_field using 'AFVGD-LTXA1(01)'

wa_data-ltxa1.

perform bdc_field using 'AFVGD-DAUNO(01)'

wa_data-dauno.

perform bdc_field using 'AFVGD-ARBPL(01)'

wa_data-arbpl.

perform bdc_dynpro using 'SAPLCOVG' '2000'.

perform bdc_field using 'BDC_CURSOR'

'VSNETEXT-NPLNR'.

perform bdc_field using 'BDC_OKCODE'

'=BU'.

*perform bdc_transaction using 'CN22'.

call transaction 'CN22' using it_bdcdata

OPTIONS FROM wa_CTU_PARAMS

messages into mess_tab.

2 REPLIES 2
Read only

Former Member
0 Likes
502

Hi,

First check the messages in intenal table mess_tab in debugging mode with mode N.

Recording looks ok.

Regards

Praveen

Read only

Former Member
0 Likes
502

HI

Check the internal table messages table i.e mess_tab, if there is any warning messages.