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: 

While writing batch input program

Former Member
0 Kudos

The batch input program is based on the recording, it is clear. However I am not sure on which fields to code at the code side.

For example

SAPMMPKR 0091 X

RMPKR-MATNR 160642

RMPKR-WERKS TR11

RMPKR-PRVBE DERI

SAPMMPKR 0093 X

BDC_OKCODE /00

PKHD-MEINS PC

BDC_SUBSCR SAPMMPKR 0815INCLUDE8XX

BDC_CURSOR PKHD-NKDYN

PKHD-LGNUM HA1

PKHD-BERKZ 1

PKHD-LGTYP 804

PKHD-NKDYN X

Such a recording which fields are to be coded?

PKHD-NKDYN,BDC_CURSOR, BDC_OKCODE are required to code?

In fact what is the thumb of rule in bdc?

Thanks.

3 REPLIES 3

Former Member
0 Kudos

Hi,

You need to code all the fields,

Look at here

SAPMMPKR 0091 X    " program name and screen no 0091
RMPKR-MATNR 160642    " Field in the screen
RMPKR-WERKS TR11       " " Field in the screen
RMPKR-PRVBE DERI       " " Field in the screen
SAPMMPKR 0093 X         " " program name  and screen no 0093
BDC_OKCODE /00       " Ok code

So you need to code for all these things,

Do one thing, once you complete the recording then save it, then in the Application tool bar we have an option to generate a Program from this recordign then generate the Program then look at the program you will understand ..

Regards

Sudheer

Former Member
0 Kudos

U need to code for all the fields.

what you have to do is replace all the hard coded values( like 160642 for MATNR ) with your internal table values.

For this you need to loop at that internal table( eg. i_mara) and assign relevant values for each loop pass ( like wa_mara-matnr in place of '160642').

Former Member
0 Kudos

Could you please send me a recording and the batch program of the recording.

I need it to understand the problem clearly.

Thanks.