Application Development and Automation 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: 
Read only

vk11 bapi

Former Member
0 Likes
860

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!

4 REPLIES 4
Read only

Former Member
0 Likes
704

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.

Read only

0 Likes
704

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 ??

Read only

0 Likes
704

..Check this thread for a sample code..

Read only

0 Likes
704

thx i will check it