‎2009 Nov 02 12:21 PM
Hi Experts
I am using BAPI CONTRACT CREATE to create Purchase Contract ME31K
I am facing the issue while passing pricing conditions Could you please help me regarding this
gs_oucondition-item_no = w_data-evrtp.
gs_oucondition-serial_id = '1'.
gs_oucondition-cond_count = '01'.
gs_oucondition-cond_type = w_data-cond1.
MOVE w_data-amnt1 TO gs_oucondition-cond_value.
gs_oucondition-currency = w_data-curr1.
gs_oucondition-numerator = '1'.
gs_oucondition-denominator = '1'.
gs_oucondition-change_id = 'I'.
APPEND gs_oucondition TO gt_oucondition.
CLEAR gs_oucondition.
gs_ouconditionx-item_no = w_data-evrtp.
gs_ouconditionx-serial_id = '1'.
gs_ouconditionx-cond_count = '01'.
gs_ouconditionx-item_nox = c_x.
gs_ouconditionx-serial_idx = c_x.
gs_ouconditionx-cond_countx = c_x.
gs_ouconditionx-cond_type = c_x.
gs_ouconditionx-cond_value = c_x.
gs_ouconditionx-currency = c_x.
gs_ouconditionx-numerator = c_x.
gs_ouconditionx-denominator = c_x.
APPEND gs_ouconditionx TO gt_ouconditionx.
CLEAR gs_ouconditionx.
Could you please help me along with this what are the values has to pass.
these are the parameters passing to the condition structure while executing bapi i am getting error like enter quantity conversion.
but with the same data i am able to create contract using SE37 by directly executing the Function module.
and if i have net price in my excel sheet also i am able to create contract using my program.
the only problem with pricing conditions alternatively there will be no net price..
Please really it will be a challenging question....
Thanks
Vijay Kumar Reddy
‎2009 Nov 03 4:07 AM
Call
BAPI_CONTRACT_GETDETAILpass any of your
Purchasing Document Number which u created manually through screen transaction.
observe what the way data is displaying in tables parameters. through this you can easly come to know where exact that problem.
Consider its a suggestion.
regards...Kishore
‎2009 Nov 04 1:35 PM
Hi Kishore,
This concept has already been tried and based on that data only i am creating contract through SE37 using BAPI_CONTRACT_CREATE.
But issue with program not able to create facing issues like enter quantity conversion.
Thanks
vijay