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

BDC

Former Member
0 Likes
845

HI gurus!

In Sale Order BDC , my bdc works in A mode , as i have press enter, But in 'N' mode , its not creating order and its showing this msg at last in BDCMSG - ' S- No batch input data for screen SAPLRHRD 0100 ' .

When run in 'E' its getting stopped on this popup , which is not error, information - 'DEALER REGISTRATION NUMBER EXPIRES IN*7- DAYS .'.

********************************************

perform bdc_dynpro using 'SAPMV45A' '0101'.

perform bdc_field using 'BDC_CURSOR'

'VBAK-VKGRP'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'VBAK-AUART'

SDTYPE. " 'ZFDS'.

perform bdc_field using 'VBAK-VKORG'

SDORG. " 'fr00'.

perform bdc_field using 'VBAK-VTWEG'

DISTCHANNEL. " 'de'.

perform bdc_field using 'VBAK-SPART'

DIVISION. " 'cd'.

perform bdc_field using 'VBAK-VKBUR'

SALESOFF. " 'PU01'.

perform bdc_dynpro using 'SAPMV45A' '4001'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'VBKD-BSTKD'

PO_NO. " '32211'.

perform bdc_field using 'VBKD-BSTDK'

PO_DATE. " '15.01.2007'.

perform bdc_field using 'KUAGV-KUNNR'

SOLDTOPARTY. " '700209'.

perform bdc_field using 'KUWEV-KUNNR'

SHPTOPARTY. " '702037'.

perform bdc_field using 'RV45A-KETDAT'

DELDATE. " '15.01.2008'.

*perform bdc_field using 'RV45A-KPRGBZ'

  • 'D'.

perform bdc_field using 'VBKD-PRSDT'

PRICEDATE. " '15.01.2008'.

perform bdc_field using 'VBKD-ZTERM'

PAYTERM. " 'X009'.

perform bdc_field using 'VBKD-INCO1'

INCOTERMS. " 'FOL'.

perform bdc_field using 'VBKD-INCO2'

INCOTERMS1. " 'ASURLE PORLE'.

move 1 to I.

loop at it_item.

CONCATENATE 'RV45A-MABNR(' I ')' INTO FNAM.

perform bdc_field using FNAM

it_item-MATERIAL.

CONCATENATE 'RV45A-KWMENG(' I ')' INTO FNAM.

perform bdc_field using FNAM

it_item-QTY.

CONCATENATE 'VBAP-VRKME(' I ')' INTO FNAM.

perform bdc_field using FNAM

it_item-UNIT.

I = I + 1.

ENDLOOP.

perform bdc_dynpro using 'SAPMV45A' '4001'.

perform bdc_field using 'BDC_OKCODE'

'=PDE2'.

perform bdc_field using 'BDC_CURSOR'

'VBAP-POSNR(01)'.

perform bdc_field using 'RV45A-VBAP_SELKZ(01)'

'X'.

perform bdc_dynpro using 'SAPMV45A' '4003'.

perform bdc_field using 'BDC_OKCODE'

'=SICH'.

perform bdc_field using 'BDC_CURSOR'

'VBAP-LGORT'.

perform bdc_field using 'VBAP-WERKS'

PLANT. " 'DFTP'.

perform bdc_field using 'VBAP-LGORT'

SLOC. " 'npgd'.

perform bdc_dynpro using 'SAPLSPO2' '0101'.

perform bdc_field using 'BDC_OKCODE'

'=OPT1'.

perform bdc_dynpro using 'SAPLRHRD' '0100'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'BDC_CURSOR'

'SPOP-TEXTLINE1'.

after this problem , i have added this line

perform bdc_field using 'BDC_OKCODE'

'/00'.

but it didnt worked.

whats ok-code for Continue button in information popup?

7 REPLIES 7
Read only

former_member404244
Active Contributor
0 Likes
777

Hi,

try to add this piece of code after the message u get

perform bdc_field using 'BDC_OKCODE'

'/00'.

generally the information message won't come in no screen mode

Regards,

Nagaraj

Read only

0 Likes
777

HI Nagaraj!

i had put perform bdc_field using 'BDC_OKCODE'

'/00', but still its giving the sme problem , actually in N mode it shud supress Informations and warmings , but its not happening in this case.. plz any other suggestion.

Read only

0 Likes
777

Hi,

yes you are right in no screen mode it shud supress Informations and warmings.one more thing u can do is try to pass correct data without any messages and check..take the help of ur functional guy to test perfectly..

Regards,

nagaraj

Read only

Former Member
0 Likes
777

Hi Rahul,

You can go to SHDB transaction and edit your BDC recording runs there and find the reason according t your requirement.

Ankur

Read only

0 Likes
777

i have used SHDB only , n running program there only.

Read only

0 Likes
777

Hi nagaraj!

it will come for right data, but this is not right way , in production , if this kind of data occurs then , it will be struck.

Read only

0 Likes
777

Hi rahul,

it is also stopping in 'E' mode also right..that means there is some problem with the data....that means it is an error....some thing starnge to note that the information messages not supressed during 'N' mode....

Regards,

nagaraj