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

BAPI_SALESORDER_CREATEFROMDAT2 error

Hi there!

Can Anyone help me in creating sales order in BAPI_salesorder_create_fromdat2.

CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'

EXPORTING

ORDER_HEADER_IN = BAPI_ORDERHEADER_IN

ORDER_HEADER_INX = BAPI_ORDERHEADER_INX

IMPORTING

SALESDOCUMENT = SO_DOCU

TABLES

RETURN = OUTPUT

ORDER_ITEMS_IN = BAPI_ORDER_ITEMS_IN

ORDER_ITEMS_INX = BAPI_ORDER_ITEMS_INX

ORDER_PARTNERS = BAPI_ORDER_PARTNERS

ORDER_CONDITIONS_IN = BAPI_ORDER_CONDITIONS_IN

ORDER_CONDITIONS_INX = BAPI_ORDER_CONDITIONS_INX

ORDER_TEXT = BAPI_ORDER_TEXT.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

And Here's the data I put values on:

ORDER_HEADER_IN:

DOC_TYPE = Sales Document Type

SALES_ORG = Sales Organization

DISTR_CHAN = Distribution Channel

DIVISION = Division

PURCH_NO_C = PO Number

CURRENCY = Currency

PO_DAT_S = PO Date

REQ_DATE_H = Required Delivery Date

ORDER_HEADER_INX:

DOC_TYPE = 'X'

SALES_ORG = 'X'

DISTR_CHAN = 'X'

DIVISION = 'X'

PURCH_NO_C = 'X'

CURRENCY = 'X'

PO_DAT_S = 'X'

REQ_DATE_H = 'X'

ORDER_PARTNERS:

PARTN_ROL = ‘SP’

PARTN_NUMB = Sold to Party or Ship to Party

ORDER_ITEMS_IN:

ITM_NUMBER = Increment Counter By 10

MATERIAL = Material Number

TARGET_QTY = Quantity

ORDER_ITEMS_INX:

ITM_NUMBER = Increment Counter By 10

MATERIAL = 'X'

TARGET_QTY = 'X'

ORDER_CONDITIONS_IN:

ITM_NUMBER = Increment Counter By 10

COND_TYPE = ‘ZPR0’

COND_VALUE = List Price

ORDER_CONDITIONS_INX:

ITM_NUMBER = Increment Counter By 10

COND_TYPE = ‘ZPR0’

COND_VALUE = List Price

UPDATEFLAG = 'U'

ORDER_TEXT:

ITM_NUMBER = Increment Counter By 10

TEXT_LINE = Text

I still receive error such as " Condition ZPRO is missing in pricing Procedure A V ZRVA01."

Can Anyone help me on how to work around with this error?

Thanks and God Bless.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 04, 2005 at 02:22 AM

    Another information, I've checked my codes and rerun my dev new error arise.. it says.

    "SALES_HEADER_IN has been proccessed Successfully"

    "SALES_ITEM_IN has been proccessed Successfully"

    "Requirements are not fullfilled in condition ZPR0"

    "Sales Document was not changed"

    Can anyone help me with this?

    Thanks in advance and God Bless!

    Message was edited by: Isagani Laude

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 04, 2005 at 08:03 PM

    Hi,

    have you tried to create a Salesorder with the same data directly in R/3 via Transaction VA01? What is the result there?

    Regards

    Gregor

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 06, 2005 at 06:06 PM

    Have you filled price Condition ZPRO in transaction

    "V-41"?

    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.