‎2006 Jul 14 10:43 AM
Hello,
I started learning ABAP programming several months ago. Could someone tell me if there is a way to get line position number in VA31 item pricing when creating a batch input?
BDC structure is like
(order type input)
SAPMV45A 101 X
VBAK-AUART ZFWR
VBAK-VKORG ZP01
VBAK-VTWEG WS
VBAK-SPART ZP
BDC_OKCODE /0
...
.....
SAPMV45A 406 X (customer number, PO, dates...)
...
..
...
..
(material input)
SAPMV45A 0406 X
VBAP-MATNR(2) 1033963
VBAP-ZMENG(2) 10
BDC_OKCODE POAN
...
then in the item pricing screen I wanted to enter value '10' for particular condition type 'ZAOD' for example.
for condition type 'ZAOD'
SAPMV61A 0620 KOMV-KBETR(X) 10
But condition type 'ZAOD' moves depending on the pricing procedure. Can't get the exact position X before going through its pricing.
How can I get the position X? Is it possible to call pricing function module during creating bath input? Something like SAPMV61A - MV61AFZA userexit_field_modification possible to call?
Kind regards,
--
Masatoshi
‎2006 Jul 14 10:29 PM
Just a question:
Have you considered using the bapi BAPI_SALESORDER_CHANGE to change the order/contract? To create you use BAPI_SALESORDER_CREATEFROMDAT2.
Good luck,
Leonardo De Araujo
‎2006 Jul 14 10:29 PM
Just a question:
Have you considered using the bapi BAPI_SALESORDER_CHANGE to change the order/contract? To create you use BAPI_SALESORDER_CREATEFROMDAT2.
Good luck,
Leonardo De Araujo
‎2006 Jul 15 12:59 PM
Thank you Leonardo.
Our SAP version is old and unfortunately I couldn't find any BAPI_SALES....
It has only thoes 29 BAPI FMs...
BAPI_DUMMY || BAPI_SET_RCOMP_SORT1
BAPI_F4_FORMOL || BAPI_SET_RCOMP_SORT2
BAPI_F4_RACCT || BAPI_SET_RCOMP_SORT3
BAPI_F4_RCOMP || BAPI_SET_RMVCT
BAPI_F4_RMVCT || BAPI_TAB_T880
BAPI_F4_RSUBD || BAPI_UPD
BAPI_F4_RVERS || BAPI_UPD_RMVCT
BAPI_GET_TABLE_HEADER || BAPI_VALUE_GESPOS
BAPI_READ_INDX_GESPOS || BAPI_VALUE_GESVBUND
BAPI_READ_INDX_GESVBUND || BAPI_VALUE_IMPTAB
BAPI_READ_INDX_IMPTAB || BAPI_VALUE_IMPTAB_RMVCT
BAPI_READ_INDX_POSDATEN || BAPI_VALUE_IMPTAB_RSUBD
BAPI_REP_GLI70 || BAPI_VALUE_PIVOT
BAPI_SET_RACCT ||BAPI_VALUE_POSDATEN
BAPI_SET_RCOMP ||
I'll try to study them if I can find anything...
--