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

DBC programming

Former Member
0 Likes
1,264

I have a DBC program which for create contract through me31k, when i call the program, it always show the error message "No batch input data for screen SAPMM06E 0220'. What's wrong, the follow is a part of code. Thanks!

perform bdc_dynpro using 'SAPMM06E' '0201'.

perform bdc_field using 'BDC_CURSOR'

'EKKO-KDATE'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'EKKO-KDATE'

wa_date.

perform bdc_field using 'EKKO-ANGNR'

wa_contract-angnr.

perform bdc_field using 'EKKO-WAERS'

wa_contract-waers.

perform bdc_field using 'EKKO-IHREZ'

wa_vbak-zzttlsam.

perform bdc_field using 'EKKO-UNSEZ'

wa_vbak-zzttlsam2.

perform bdc_field using 'EKKO-VERKF'

wa_vbak-zzopa.

perform bdc_field using 'EKKO-TELF1'

  • wa_contract-posnr.

wa_contract-telf1.

perform bdc_field using 'EKKO_CI-ZZPOSNR'

wa_contract-posnr.

perform bdc_dynpro using 'SAPMM06E' '0220'.

perform bdc_field using 'BDC_CURSOR'

'RM06E-EVRTP(01)'.

perform bdc_field using 'BDC_OKCODE'

'=DETA'.

perform bdc_field using 'RM06E-TCSELFLAG(01)'

'X'.

perform bdc_field using 'EKPO-EMATN(01)'

wa_contract-matnr.

perform bdc_field using 'EKPO-KTMNG(01)'

wa_menge.

perform bdc_field using 'EKPO-NETPR(01)'

'1'.

perform bdc_field using 'EKPO-PEINH(01)'

wa_peinh.

perform bdc_dynpro using 'SAPMM06E' '0211'.

perform bdc_field using 'BDC_OKCODE'

'=KO'.

perform bdc_field using 'EKPO-BEDNR'

wa_vbak-kunnr.

perform bdc_field using 'EKPO-IDNLF'

wa_vbak-bname.

perform bdc_field using 'EKPO-REPOS'

space.

perform bdc_field using 'EKPO-WEBRE'

space.

perform bdc_field using 'EKPO-NETPR'

wa_net.

data: wa_bstkd1(20) type c.

wa_bstkd1 = wa_contract-bstkd(20).

perform bdc_field using 'EKPO-LABNR'

  • wa_contract-bstkd.

wa_bstkd1.

perform bdc_dynpro using 'SAPMV13A' '0201'.

perform bdc_field using 'BDC_OKCODE'

'=BACK'.

perform bdc_field using 'KONP-KBETR(01)'

wa_kbetr.

perform bdc_field using 'KONP-KONWA(01)'

wa_contract-waers.

perform bdc_field using 'KONP-KPEIN(01)'

wa_kpein.

perform bdc_field using 'KONP-KMEIN(01)'

wa_meins.

perform bdc_dynpro using 'SAPMM06E' '0220'.

perform bdc_field using 'BDC_CURSOR'

'RM06E-EBELP'.

perform bdc_field using 'BDC_OKCODE'

'=BU'.

perform bdc_dynpro using 'SAPLSPO1' '0300'.

perform bdc_field using 'BDC_OKCODE'

'=YES'.

4 REPLIES 4
Read only

Former Member
0 Likes
902

Run in mode 'E' so that the screen will stop and give you more info.

Read only

0 Likes
902

Debug your bdc transaction using mode E

Sample code.


  CALL TRANSACTION 'ME31K'
  USING bdc_tab
        MODE 'E'
        UPDATE 'S'
        MESSAGES INTO bdc_msg.

Read only

Former Member
0 Likes
902

I check that which stop on screen '0220', then i click save button from the screen is OK, no error. I don't know why i can't do it from BDC? I think it can execute in line 2, because the cursor position in RM06E-EBELP.

1. perform bdc_dynpro using 'SAPMM06E' '0220'.

2. perform bdc_field using 'BDC_CURSOR' 'RM06E-EBELP'.

3. perform bdc_field using 'BDC_OKCODE' '=BU'.

Read only

Former Member
0 Likes
902

I found that the issue may caused by batch input session. Once i input the batch item, then enter item details to select somethings, after that, the interface will go back the batch input interface and some fields are disabled. How can i solve the problem. thanks