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

Bapi salesorder change problem

Hello Gurus,

I had written a program to change the schedule line delivery date but i am getting an error 'Terms of payment T050 are not defined' in the return code of the bapi. please help.

loop at itab.

hdr_x-UPDATEFLAG = 'U'.

schedl-ITM_NUMBER = i_data-posnr.

schedl-SCHED_LINE = i_data-etenr.

schedl-REQ_DATE = sy-datum.

APPEND schedl.

schedl_x-ITM_NUMBER = i_data-posnr.

schedl_x-SCHED_LINE = i_data-etenr.

schedl_x-UPDATEFLAG = 'U'.

schedl_x-REQ_DATE = 'X'.

APPEND schedl_x.

CALL FUNCTION 'BAPI_SALESORDER_CHANGE'

EXPORTING

SALESDOCUMENT = i_data-vbeln

ORDER_HEADER_INX = hdr_x

TABLES

RETURN = rcode

SCHEDULE_LINES = schedl

SCHEDULE_LINESX = schedl_x.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

WAIT = 'X'.

refresh schedl.

refresh schedl_x.

endloop.

Thanks,

KB

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 Jan 09, 2007 at 04:13 AM

    it has to something with the parameters which u r providing to BAPI..

    please check if the input arguments u r supplying to the BAPI FM are correct and record exists for them..

    amit

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 04:30 AM

    Hi,

    when you are trying to change the sales order, may be the Payment which is already been entered in the sales order T050 is not defined in customizing for that customer or sales area.

    Regards,

    Raghavendra

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 12, 2007 at 02:55 AM

    Thanks!

    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.