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

BAPI_PO_CREATE1 for Multiple service line items

Former Member
0 Likes
1,453

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
952

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.

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

2 REPLIES 2
Read only

Former Member
0 Likes
953

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.

Read only

0 Likes
952

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