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

BAPI_SALESORDER_CREATEFROMDAT2

Hi Friends,

In my function module of reuse_alv_grid_display, I have sold to party, item number, material number, quantity and UOM in T_OUTTAB = ITAB. I am using a subroutine to create sales order using bapi_salesorder_createfromdat2.

How to I need to declare the it_zat_usage table data inside my subroutine. I am using subroutines first time and please suggest me ideas.

Example:

FORM CREATE_SO.

LS_ORDERITEMSIN-ITM_NUMBER = ******

LS_ORDERITEMSIN-MATERIAL = ******

LS_ORDERITEMSIN-TARGET_QTY = ******

LS_ORDERITEMSIN-TARGET_QU = ******

APPEND LS_ORDERITEMSIN TO LT_ORDERITEMSIN.

CLEAR LS_ORDERITEMSIN.

ENDFORM.

Thanks.

Edited by: nani on May 20, 2011 10:53 AM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on May 20, 2011 at 03:01 PM

    > How to I need to declare the it_zat_usage table data inside my subroutine. I am using subroutines first time and please suggest me ideas.

    Declare it as another internal table. If you want to use outside of the subroutine, declare as global or else declare local.

    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.