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: 

how to pass scale basis in bapi 'BAPI_PRICES_CONDITIONS'

Former Member
0 Kudos
1,655

Hello,

how can i pass the scale basis quantity and amount in multiple level (ex - scale basis quantity1, amount1 ... quantity2,amount2.....)through bapi 'BAPI_PRICES_CONDITIONS'

Thanks

satya

4 REPLIES 4

madhu_vadlamani
Active Contributor
0 Kudos
721

Hi Satya,

There is some issues when you use this bapi.I will suggest you check with RV_CONDITION_COPY.

Regards,

Madhu.

Former Member
0 Kudos
721

Hello,

I got the solutions. Below are the codes for enetring scale quantity and amounts in multiple level. Here i have used for three level, giving IS_BAPICONDQS-line_no = '0001' , IS_BAPICONDQS-line_no = '0004' , IS_BAPICONDQS-line_no = '0007'. you can use as per yours requirements.



is_BAPICONDIT-scaletype = 'A'.  "A-from and B-to 
is_BAPICONDIT-scalebasin = 'C'. "C-Quantity and B- Value scale
(use these two line in is_BAPICONDIT )

IS_BAPICONDQS-operation = '009'.
is_BAPICONDQS-cond_no = '$000000001'.
IS_BAPICONDQS-cond_count = '01'.
IS_BAPICONDQS-line_no = '0001'.
IS_BAPICONDQS-scale_qty = '15'.
*IS_BAPICONDQS-t_unit_iso = 'VIA'.
IS_BAPICONDQS-currency   = '71'.
IS_BAPICONDQS-CONDCURR = 'USD'.
APPEND IS_BAPICONDQS to IT_BAPICONDQS.
CLEAR IS_BAPICONDQS.

IS_BAPICONDQS-operation = '009'.
is_BAPICONDQS-cond_no = '$000000001'.
IS_BAPICONDQS-cond_count = '01'.
IS_BAPICONDQS-line_no = '0004'.
IS_BAPICONDQS-scale_qty = '25'.
*IS_BAPICONDQS-t_unit_iso = 'VIA'.
IS_BAPICONDQS-currency   = '96'.
IS_BAPICONDQS-CONDCURR = 'USD'.
APPEND IS_BAPICONDQS to IT_BAPICONDQS.
CLEAR IS_BAPICONDQS.

IS_BAPICONDQS-operation = '009'.
is_BAPICONDQS-cond_no = '$000000001'.
IS_BAPICONDQS-cond_count = '01'.
IS_BAPICONDQS-line_no = '0007'.
IS_BAPICONDQS-scale_qty = '30'.
*IS_BAPICONDQS-t_unit_iso = 'VIA'.
IS_BAPICONDQS-currency   = '106'.
IS_BAPICONDQS-CONDCURR = 'USD'.
APPEND IS_BAPICONDQS to IT_BAPICONDQS.
CLEAR IS_BAPICONDQS.

Then pass the internal table IT_BAPICONDQS to the BAPI 'BAPI_PRICES_CONDITIONS'.

Canet_1976
Explorer
0 Kudos
721

Hi dears.

Even code below, you also need add information at IT_BAPICONDQS in that way. Have a look :

ls_bapicondvs-operation = '009'. "OK.
ls_bapicondvs-cond_no = '$000000001'. "OK
ls_bapicondvs-cond_count = '01'. "OK
ls_bapicondvs-line_no = '0001'. "OK.
ls_bapicondvs-scale_val = '0'. "OK.
ls_bapicondvs-currenckey = 'EUR'. "OK.
ls_bapicondvs-currency = '0'. "OK.
ls_bapicondvs-condcurr = 'EUR'. "OK.

APPEND ls_bapicondvs TO lt_bapicondvs.

ls_bapicondvs-operation = '009'. "OK.
ls_bapicondvs-cond_no = '$000000001'. "OK
ls_bapicondvs-cond_count = '01'. "OK
ls_bapicondvs-line_no = '0004'. "OK.
ls_bapicondvs-scale_val = '1000'. "OK.
ls_bapicondvs-currenckey = 'EUR'. "OK.
ls_bapicondvs-currency = '1000'. "OK.
ls_bapicondvs-condcurr = 'EUR'. "OK.

APPEND ls_bapicondvs TO lt_bapicondvs.

ls_bapicondvs-operation = '009'. "OK.
ls_bapicondvs-cond_no = '$000000001'. "OK
ls_bapicondvs-cond_count = '01'. "OK
ls_bapicondvs-line_no = '0007'. "OK.
ls_bapicondvs-scale_val = '3500'. "OK.
ls_bapicondvs-currenckey = 'EUR'. "OK.
ls_bapicondvs-currency = '3500'. "OK.
ls_bapicondvs-condcurr = 'EUR'. "OK.

APPEND ls_bapicondvs TO lt_bapicondvs.

So when you will do the COMMIT WORK will have scale information at KONW table.

Kind regards,

souravs022
Explorer
0 Kudos
608

Hello,

I tried all the solutions above but still could not achieve the same.

If you could post the complete code then it would be very helpful.