‎2008 Jun 28 11:08 AM
Hi experts
I have found a bapi to change the daily price of a material. But i couldnt find how to use it. Which tables do i have to fill ?
i have the data in this internal table.
DATA : BEGIN OF RESULT OCCURS 0,
VKORG LIKE A517-VKORG,
VTWEG LIKE A517-VTWEG,
MATNR LIKE A517-MATNR,
KAPPL LIKE A517-KAPPL,
KSCHL LIKE A517-KSCHL,
KNUMH LIKE A517-KNUMH,
DATBI LIKE A517-DATBI,
DATAB LIKE A517-DATAB,
KBETR LIKE KONP-KBETR,
END OF RESULT
I want to change the price of result-matnr with a new value stored in result-kbetr
the bapi i will use is
CALL FUNCTION 'BAPI_PRICES_CONDITIONS'
EXPORTING
PI_INITIALMODE = ' '
PI_BLOCKNUMBER =
TABLES
TI_BAPICONDCT = TA_BAPICONDCT
TI_BAPICONDHD = TA_BAPICONDHD
TI_BAPICONDIT = TA_BAPICONDIT
TI_BAPICONDQS = TA_BAPICONDQS
TI_BAPICONDVS = TA_BAPICONDVS
TO_BAPIRET2 = TA_BAPIRET2
TO_BAPIKNUMHS = TA_BAPIKNUMHS
TO_MEM_INITIAL = TA_MEM_INITIAL
EXCEPTIONS
UPDATE_ERROR = 1
THERS = 2.
Pls help me which fields of which tables do i have to fill?
Thanks a lot!
‎2008 Jun 28 11:13 AM
hi check this..
All the table parameters to this BAPI are mandatory. I hope you have observed that.
you need additional commit work. Write small test program and add FM BAPI_TRANSACTION_COMMIT
or use SHIFT+F8 in transaction SE37 to create a test sequence.
‎2008 Jun 28 11:16 AM
I have realised that but as i search over internet i found some examples and they are not filling everything
and also I couldnt find what to write in bapicondct-operation and bapicondct-cond_usage and bapicandct-table_no ??
‎2008 Jun 28 11:20 AM
‎2008 Jun 28 11:33 AM