Skip to Content
0
Former Member
Jun 29, 2007 at 11:59 AM

Problems with multi-account assignment in batch-input program

280 Views

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