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


Hi All,

I am using the following code to fill item data while creating order in CRM using BAPI_BUSPROCESSND_CREATEMULTI.


*----Fill the Item details

lv_number = lv_number + 10.

lv_schdno = lv_cshdno + 1.

ls_item-handle = '0000000001'.

ls_item-header_handle = '0000000001'.

ls_item-ordered_prod = lv_ordered_prod.

ls_item-number_int = lv_number.

INSERT ls_item INTO TABLE lt_item.

*----Fill the Scheduline Details

ls_scheduleline-item_handle = '0000000001'.

ls_scheduleline-handle = '0000000001'.

ls_scheduleline-quantity = lv_quan.

ls_scheduleline-schedlin_no = lv_schdno.

INSERT ls_scheduleline INTO TABLE lt_scheduleline.


Order is getting created fine but it has only the last item. Previous line items are not getting added to the order. Do I need to pass any other parameters ot the item or scheduleline table?

Please help me.

Thanks in Advance!


Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 18, 2008 at 06:05 PM

    hi use this...

    not insert but append ...

    append ls_item TO lt_item.

    clear ls_item.



    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 28, 2008 at 06:22 AM

    Hi sonali,

    this is reference to ur old query


    I am using BAPI :BAPI_PRICES_CONDITIONS to upload pricing conditions. It is uploading conditions but deleting the old condition record(incase if there are overlapping of valid-to dates for a condition record).

    It is not updating(changing) the existing record in A907 table for overlapping dates instead it is inserting a new record.

    Please any one help....



    i m facing the same problem which u was facing. Please let me know how u solved this problem. its very urgent for me. Can you please send me the solution..

    thanks in advance,


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member


      I am using the same BAPI like BAPI_PRICES_CONDITIONS, here the issue is there are more than 900 tables for A* series in my requirements.

      In this case, I am not sure how good it is use this BAPI to upload the data, as the structure may varies for condition to condition.

      Is it good to ask FC to frieze the structure, but I am not sure FC would frieze the structure.

      Can you suggest something, how I can proceed further, to upload the data when the structure of file is not frizzed, which is required to know which field of stucture should go to which field in BAPI. Correct me if my understanding is wrong.

      Looking for your response.



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.