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 - Facing issues to create invoice Plan

varunkumarkodali
Explorer
0 Likes
1,306

Hi All,

       We are trying to create a Service PO with Invoice Plan, we are getting a dump in the standard BAPI_PO_CREATE1 when we are trying to create the PO. The dump we are getting is " Billing plan XXXXXXXXX does not exist - Program error "


To avoid the dump i have just commented out the Invoice details  of code and the PO is successfully created, but we want to create a PO with Invoice Plan.so Please let me know if any one has seen this error before and what can be done to prevent this error.

Message id -V2 Message-40.

   .

Hi All,

       We are trying to create a Service PO with Invoice Plan, we are getting a dump in the standard BAPI_PO_CREATE1 when we are trying to create the PO. The dump we are getting is " Billing plan XXXXXXXXX does not exist - Program error "


To avoid the dump i have just commented out the Invoice details  of code and the PO is successfully created, but we want to create a PO with Invoice Plan.so Please let me know if any one has seen this error before and what can be done to prevent this error.

Message id -V2 Message-40.

   .

2 REPLIES 2
Read only

rob_pennings
Newcomer
0 Likes
949

Hi,

I also get this error with the BAPI_PO_CREATE1 when I create a service PO with an invoice plan.

When I skip the call function 'ME_STATISTICS_LIS' in SAPLMEPO form BUCHEN, the purchase order with the invoice plan is created. When I don't skip the function module I get a shortdump.

Please let me know if you already found a solution.

Kind regards,

Rob

Read only

0 Likes
949

Hello Guys,

I have also struggled a lot with this issue.

The problem is we need to have a switch activated in system.

LOG_MMFI_P2P is the business function that you need to activate.

Make sure that switch MM_SFWS_CI_01 is on and has Global status as on.

Refer note 2114353 for sample code to create Service PO with Invoice planing.


Use TCode SFW5 for switch activation.


Thanks,

Zuber