12-11-2008 6:18 AM
Hi Exports,
I am using BAPI_PO_CREATE1 to create service PO. I am facing problem when each line item(ebelp) has multiple service line items. I am unable to map multiple service line items to a single line item (ebelp) properly.
Can anyone help.
Regards,
Kiran
12-11-2008 9:15 AM
Hi,
For all the field in POITEM & POSCHEDULE that you are populating, also populate the same field in POITEMX & POSCHEDULEX as 'X'. If you are already doing the same, give the sample code.
Regards,
Prashant.
12-11-2008 9:15 AM
Hi,
For all the field in POITEM & POSCHEDULE that you are populating, also populate the same field in POITEMX & POSCHEDULEX as 'X'. If you are already doing the same, give the sample code.
Regards,
Prashant.
12-11-2008 10:14 AM
Hi ,
I am able to create service PO when only one service line item is there.
If multiple service line items are there. then i have to put the below code with in the loop.
here i am facing the probelm.
w_poservices-pckg_no = g_pckg.
w_poservices-line_no = g_pckg.
w_poservices-outl_ind = c_x.
w_poservices-subpckg_no = g_pckg + 1.
w_poservices-service = w_sdata-srvpos.
w_poservices-short_text = w_idata-ktext1.
w_poservices-quantity = w_idata-menge.
w_poservices-base_uom = w_idata-meins.
w_poservices-gr_price = w_idata-tbtwr.
w_poservices-matl_group = w_idata-matkl.
APPEND w_poservices TO i_poservices.
CLEAR: w_poservices.
*
w_poservices-pckg_no = g_pckg + 1.
w_poservices-line_no = g_pckg + 1.
w_poservices-ext_line = 0000000010.
w_poservices-outl_ind = c_x.
w_poservices-subpckg_no = g_pckg + 2.
w_poservices-service = w_sdata-srvpos.
w_poservices-short_text = w_sdata-ktext1.
w_poservices-quantity = w_sdata-menge.
w_poservices-base_uom = w_sdata-meins.
w_poservices-gr_price = w_sdata-tbtwr.
w_poservices-matl_group = w_idata-matkl.
APPEND w_poservices TO i_poservices.
CLEAR: w_poservices.
*----
w_posrvaccessvalues-pckg_no = g_pckg + 1.
w_posrvaccessvalues-line_no = g_pckg + 1.
w_posrvaccessvalues-serno_line = 01.
w_posrvaccessvalues-serial_no = 01.
w_posrvaccessvalues-quantity = w_idata-menge.
APPEND w_posrvaccessvalues TO i_posrvaccessvalues.
thank you.
Regards,
Kiran