Skip to Content
author's profile photo Former Member
Former Member

BAPI_PO_CREATE

Hello,

I am Using BAPI_PO_CREATE to create PO from Basic IDOC type PORDCR04.

One of the Segments of this IDOC type has been extended with 'Z' segment containing two fields 'Unit of Net weight' and 'Total Net weight'. I want to pass the value of these fields in the BAPI and want to update the fields GEWEI and NTGEW in table EKPO and it should be displayed in the PO (ME23N) as well .

I tried finding some fields in BAPI_PO_CREATE (via Se37) but there is no field available for these. How this is possible (pass the value to BAPI and update in DB tables) ?

/Manik

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 18, 2005 at 10:24 AM

    Hi Manik,

    You will have to copy the standard FM (IDOC_INPUT_PORDCR) to accomplish this, as Z-segment are not read.

    Regards,

    John.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 18, 2005 at 10:27 AM

    Hi,

    Copy the standard function module and call the BAPI:

    • call BAPI-function in this system *

    CALL FUNCTION 'BAPI_PO_CREATE'

    EXPORTING

    PO_HEADER = PO_HEADER

    PO_HEADER_ADD_DATA = PO_HEADER_ADD_DATA

    HEADER_ADD_DATA_RELEVANT = HEADER_ADD_DATA_RELEVANT

    PO_ADDRESS = PO_ADDRESS

    SKIP_ITEMS_WITH_ERROR = SKIP_ITEMS_WITH_ERROR

    ITEM_ADD_DATA_RELEVANT = ITEM_ADD_DATA_RELEVANT

    IMPORTING

    PURCHASEORDER = PURCHASEORDER

    TABLES

    PO_ITEMS = PO_ITEMS

    PO_ITEM_ADD_DATA = PO_ITEM_ADD_DATA

    PO_ITEM_SCHEDULES = PO_ITEM_SCHEDULES

    PO_ITEM_ACCOUNT_ASSIGNMENT = PO_ITEM_ACCOUNT_ASSIGNMENT

    PO_ITEM_TEXT = PO_ITEM_TEXT

    RETURN = RETURN

    PO_LIMITS = PO_LIMITS

    PO_CONTRACT_LIMITS = PO_CONTRACT_LIMITS

    PO_SERVICES = PO_SERVICES

    PO_SRV_ACCASS_VALUES = PO_SRV_ACCASS_VALUES

    PO_SERVICES_TEXT = PO_SERVICES_TEXT

    PO_BUSINESS_PARTNER = PO_BUSINESS_PARTNER

    EXTENSIONIN = EXTENSIONIN

    POADDRDELIVERY = POADDRDELIVERY

    EXCEPTIONS

    OTHERS = 1.

    regards

    Aveek

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.