Skip to Content
author's profile photo
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 comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • author's profile photo
    Former Member
    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 comment
    10|10000 characters needed characters exceeded

  • 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 comment
    10|10000 characters needed characters exceeded

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

    Have you filled price Condition ZPRO in transaction

    "V-41"?

    Add comment
    10|10000 characters needed characters exceeded