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: 

Problems with multi-account assignment in batch-input program

Former Member
0 Kudos

Hi everybody!

I'll create purchase orders with multi-account assignment via batch input.

When processing dynpro SAPMM06E 0113 I get the message:

"Batch-Input data for dynpro SAPMM06E 0113 are not available".

But all data are already filled in the accounting fields.

There is no way to go back to the position overview.

Here you can see the batch input coding of the multi-account assingment:

PERFORM dynpro USING: 'X' 'SAPMM06E' '0113',

' ' 'BDC_CURSOR' 'EKKN-TWRKZ',

' ' 'BDC_OKCODE' '/00',

' ' 'EKPO-WEPOS' 'X',

' ' 'EKPO-WEUNB' 'X',

' ' 'EKPO-VRTKZ' wa_ekko_ekpo-vrtkz,

' ' 'EKPO-TWRKZ' wa_ekko_ekpo-twrkz.

PERFORM dynpro USING: ' ' 'BDC_CURSOR' 'EKKN-ANLN1(14)',

' ' 'BDC_OKCODE' '/00',

' ' 'EKPO-WEPOS' 'X',

' ' 'EKPO-WEUNB' 'X',

' ' 'RM06E-MKNTM(14)' ekkn_menge2,

' ' 'EKKN-ANLN1(14)' wa_ekko_ekpo-anln1,

' ' 'EKKN-ABLAD(14)' wa_ekko_ekpo-ablad,

' ' 'EKKN-WEMPF(14)' wa_ekko_ekpo-wempf.

  • ' ' 'BDC_SUBSCR' 'SAPLKACB'.

*(this is repeated for every accounting position)

PERFORM dynpro USING: ' ' 'BDC_CURSOR' 'EKPO-VRTKZ',

' ' 'BDC_OKCODE' '=AB',

' ' 'EKPO-WEPOS' 'X',

' ' 'EKPO-WEUNB' 'X'.

Regards,

Anke

Message was edited by:

Anke Chittka

2 REPLIES 2

Former Member
0 Kudos

Hi,

1 .First record properly depen upon ur requirment,

2. Test ur recorded code

3. Note all OK-Code ( when u press any button) * this is important

4. After that split ur recorded coding dep ur requirment (if u know all OK-Code u can split the recorded coding)

5. call ur splided coding in ur prg.

i am having coding for PO but this is Dep my requirment

0 Kudos

Hi,

Maybe there is a dynpro in the background I didn't reach?