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

BAPI_PO_CREATE1 EXTENSIOIN

Hi:

I'm trying to create a purchase order via BAPI_PO_CREATE1 with EXTENSIONIN informed. I need to fill customer specific fields, but these fields appears empty.

data begin of x_extensionin occurs 0.

include structure bapiparex.

data end of x_extensionin.

move 'BAPI_TE_MEPOACCOUNTING' to x_extensionin-structure.

move '......' to x_extensionin-valuepart1.

append x_extensionin.

Thanks in advance.

Abel

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2004 at 11:37 PM

    From the code you have posted, I presume that you are populating hte Extension In internal table to be passed to the BAPI.

    But To the best of my knowldge, SAP does not handle the extension in parameters automatically. Infact you will have two user exits in the BAPI to use extension in internal table then use it the way you want it.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 23, 2004 at 06:11 AM

    Whatever the structure that you need to pass to the EXTENSIONIN structure, it must have the fields - normally these are the fields which are added through CI structures. For example at PO item level, CI_EKPODB and at header level CI_EKKODB. For accounting< I think, you can use CI_COBL ...

    Regards

    Anjaiah

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 27, 2004 at 07:37 PM

    Hi:

    I had filled CI_COBL structure with zz.. customer fields, I had included it in EKKN standard table (.INCLUDE CI_COBL) also. This customer fields had filled property when the purchase order is created on-line mode. I also had include this CI_COBL in MEPOACCOUNTING, MEPOACCOUNTINGX, BAPI_TE_MEPOACCOUNTING and BAPI_TE_MEPOACCOUNTINGX structures and I had filled the EXTENSIONIN table with:

    w_extensionin-structure = BAPI_TE_MEPOACCOUNTING

    w_extensionin-valuepart1 = the values of zz.. customer fields

    but when I process the creation of pruchase order from Bapi_po_craete1, teh customers fields dosen't filled.

    Please, someone knows how to create a purchase order with new account customer fields ?. I need a example.

    Thanks very much in advance

    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.