cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with BAPI_PO_CREATE1

Former Member
0 Kudos

Hi,

We are on SRM 3.0 (EBP 4.0) R/3 4.7B

The current set up we have for calling enjoy BAPI is - we have a Z driver with some specific checks. This is called using badi BBP_DRIVER_DETERMINE and the PO is created using the Enjoy BAPI.

I am facing problems when creating PO's with zero price. In our case there are some coupon items which do not require price. We are able to create PO's with 0 price using the standard driver B470_PO_CREATE.

But when we use the new driver, we get the error in the monitors 'Net price must be greater than zero'.

What can be wrong? Are we missing out some field mapping ? Or is it that PO with 0 price cant be created using the Enjoy bapi?

Inputs will be appreciated!

Thanks,

Srivatsan

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi

<b>As Marcin told, this is the code for BBP_CREATE_PO_BACK BADI.

Either you can do this code inside BAPI (Make changes accordingly) or inside the BADI - BBP_CREATE_PO_BACK / BBP_CREATE_PO_BACK_NEW depending on your requirement.</b>

  LOOP AT po_items INTO ls_po_items WHERE net_price IS INITIAL.
* Reset the IR Indicator for Items with Zero net price
    ls_po_items_add_data-po_item = ls_po_items-po_item.
    ls_po_items_add_data-ir_ind  = space.
    ls_po_items_add_data-gr_ind  = 'X'.
    ls_po_items_add_data-gr_non_val = 'X'.
    APPEND ls_po_items_add_data TO po_items_add_data.
  ENDLOOP.

Hope this will help.

Please reward suitable points, incase it suits your requirements.

Regards

- Atul

Former Member
0 Kudos

Hi,

Uncheck IR_IND in structure PO_ITEM_ADD_DATA. Zero prices can't show on invoice, thats why you get an error.

Regards,

Marcin

Former Member
0 Kudos

Hi

<u>Seems to be there exists problem with your custom function modules code.

We have dealt with these scenarios in our past SRM Implementations .

Ensure that you have mapped the data passed to the standard BAPI correctly.

Also, verify that whether you are using BADI - BBP_TARGET_OBJECTS (this allows '0' Price Item posting ) ?</u>

For more information, please send me the details at my email id.

atul.kant@gmail.com.

Hope this will help.

Please reward suitable points, incase it suits your requirements.

Regards

- Atul

Ramki
Active Contributor
0 Kudos

Hi

When the price is 'Zero', you must uncheck the indicator for 'Invoice required'. You can have zero price only when you do not expect an invoice.

Check again

Best regards

Ramki

Ramki
Active Contributor
0 Kudos

Hi

In R/3 PO, you should also check 'Free Item' indicator

Best regards

Ramki