Creating a sales item automatically...

hi all,
while creating a sales order; when a material is entered (and if certain conditions are achieved), a new sales item should be created automatically with another material. how can i do this?

Hello,
You are refering to material determination .
Mat A stock does not exist , but equivalent Mat B available . So when A is typed automaticall it has to change it to B . The above is your requirement , do config for material determination
Thanks
RK

Similar Messages

  • Creating inbound Sales Orders IDOC within SAP

    Hi,
    I receive a flat file containing sales order information. I would like to create inbound Sales Order IDOCs from this flat file. I know I can use BAPI_SALESORDER_CREATEFROMDAT2 to create sales orders however I would like to retain the benefits of IDOCs e.g. error retention and re-processing.
    There are a number of functions MASTERIDOC_CREATE* to create various IDOCs but I can't seem to find one for message type ORDERS. I know I can create a 'Z' version but would like to avoid that as much as possible as development budget is tight.
    Any help would be greatly appreciated in the form of reward points.
    Thanks and regards,
    Liam

    Hi,
    Can u tell me the steps to create a sales order using idoc, i've created a bapi but thats a temprory use. I wanted to created a sales order automatically when a purchase order is saved.
    Please let me know if u can help me, i wanted to do it using idoc
    Regards
    Sanju

  • Free of goods should come automatically back when creates return sales order

    Dear sd experts
    I Know one thing that free goods wont come back ,, for ex when we create return sales order free goods wont come bz in VTAF copy requirement 302
    it means dont copy free goods
    Now i went VOV7--- for item category TANN-- i have maintained billing relevance A it means free goods items will come in to billing
    now when i am creating return sales order with reference to billing Free goods are not coming
                  My doubt is suppose if  my clinte asks free goods   will come automatically when creates returns how to do it ?

    Hi Ali,
    I just checked and understand in the below way:
    When I Do the PGI system is posting say 50 USD to COGS. But, when I do the Invoice ( 100 USD is credited to sales account and 100 is debited to discount account) So at the end 100 is getting Nullified. But, when we see P&L account you will COGS of 50 USD.
    I checked along with my FI consultant and she confirmed that its posting as per expected way only.
    Let me know if you need more details here.
    Regards, Sai Krishna.

  • How to create a new line item automatically in CRMD_ORDER

    Hi,
    While creating a sales order in CRMD_ORDER, after user enters a line item say 'xxxx' and press 'Enter', we need to create a new line item say 'yyyy' dynamically.  Any ways of how to achieve this functionality?
    thanks in advance,
    amar.s

    Hi Amar
    You can use structured products:
    Step1:COMM_PR01
    Open Product xxxx > Relationships > Tab Component > Select Relationship type = STRSET Set > Assing product yyyy
    Step2: IMG > CRM > Transactions > Define Item Categories
    Open you item category and in Structure scope field select option A Single-Level Explosion of structured products
    Step3: IMG >  CRM > Transactions > Define Item Category Determination
    create new entry
    Transaction type =
    Item   category group = Category group of xxxx product
    main item cat = item cat of xxxx product
    item cat =  item cat of yyyy product
    now when you enter product xxxx , product yyyy will be automatically added
    Hope it helps
    Rupesh

  • Reconfigure sales BOM deletes line item and creates new line item

    We are having issue with Sales BOM. Once sales BOM is reconfigure, line item is automatically deleted and creates new line item. These changes are not captured by reporting tool. Is it standard SAP behavior? if its not standard behavior, how to fix this issue?

    Hi,
    If i am not wrong, i assume you are using site instead of plant.   If it is plant , then "yes", we can have a order with same material being line item 10 and 20 with different plants.  Reg delivery, if the plants are configured to a same shipping point then you will have one delievery.  if the plants are configured for a different shipping point , then delivery will be split up.
    Reward if it helps,
    Thanks & regards,
    CLN

  • How to add an item automatically to a sales document

    Hi
    My requirement is that whenever I create a sales document one of the item (material) should be added automically to the sales document. How can I achieve this.
    Thanks for your help
    Regards
    Javed

    Hi Javed,
    If this is the requirement and you dont want to do it through item proposal etc, you can very well do it through transaction variant using tcode SHD0. Here you can populate the value of the material, grey it out and create a transaction variant. Then assign this transaction variant to the document type in VOV8. Now whenever you want to create that document type, the material code will be automatically populated.
    For Transaction variants, you can go through the following links.
    http://www.sap-basis-abap.com/sapbs010.htm
    http://husnie.wordpress.com/2007/12/21/changing-the-sap-standard-transaction-variant/
    http://www.sap-basis-abap.com/sapbs010.htm
    The 2nd link was especially good.

  • Sale Order Item Quantity Not Populating When Create A Sale Order Using BAPI

    I am having a problem when creating a sale order using BAPI
    BAPI_SALESORDER_CREATEFROMDAT2
    Problem is that sale order item quantity field is not populating
    code is as follows
    ORDER_ITEMS_IN-ITM_NUMBER = '0010'.
    ORDER_ITEMS_IN-MATERIAL = '000000000010000262'.
    ORDER_ITEMS_IN-TARGET_QU = 'LB'.
    ORDER_ITEMS_IN-TARGET_QTY = 1.

    Hi,
    Try populating ORDER_SCHEDULES_IN table in the bapi field REQ_QTY.
    Regds,
    Rudra

  • Line item data is not saving while creating a Sales order using Interactive

    Hi all,
    I am creating a sales order Using Interactive forms. In the form i am having Header data and line item data.I had created two structures one for Header data and one for Line item data. For entering  the LINE ITEM DATA i had created a Dynamic table with Buttons ADD ROW and DELETE ROW.
    User will Add the Row or Delete the Row based on the requirement.
    My issue is When ever the user clicks the SUBMIT button after entering the header data and 3 line items data , Sales order has been created with only first line item and the remaining two line items are not created.
    My Interactive form is like below
    HEADER DATA
    DOC_TYPE
    SALES_ORG
    DIST_CHN
    DIVISION
    PURCH_NO
    PARTN_ROLE
    PART_NO
    LINE ITEM DATA
                             ITEM_NO      MATERIAL          PLANT          QTY        COND_TYPE            COND_VALUE
    ADD ROW
    DELETE ROW
                                                                                    SUBMIT
    My  code for the method ONACTIONCLICK is like below
    method ONACTIONCLICK .
    data:
          Node_Adobe       type ref to If_Wd_Context_Node,
          Node_Zsaleheader       type ref to If_Wd_Context_Node,
          Elem_Zsaleheader       type ref to If_Wd_Context_Element,
          Stru_Zsaleheader       type If_Main=>Element_Zsaleheader,
          Node_Zsaleitem       type ref to If_Wd_Context_Node,
          Elem_Zsaleitem       type ref to If_Wd_Context_Element,
          Stru_Zsaleitem       type If_Main=>Element_Zsaleitem.
      data: header_data type BAPISDHEAD.
      data: item_wa type BAPIITEMIN.
      data: item_data type table of BAPIITEMIN.
      data: partner_wa type BAPIPARTNR.
      data: partner_data type table of BAPIPARTNR.
      data: sales_order type BAPIVBELN-VBELN.
      data: Errorlog type BAPIRETURN1.
    navigate from <CONTEXT> to <ADOBE> via lead selection
      Node_Adobe = wd_Context->get_Child_Node( Name = IF_MAIN=>wdctx_Adobe ).
    navigate from <ADOBE> to <Zsaleheader> via lead selection
      Node_Zsaleheader = Node_Adobe->get_Child_Node( Name = IF_MAIN=>wdctx_Zsaleheader ).
      Node_Zsaleitem = Node_Adobe->get_Child_Node( Name = IF_MAIN=>wdctx_Zsaleitem ).
    get element via lead selection
      Elem_Zsaleheader = Node_Zsaleheader->get_Element(  ).
      Elem_Zsaleitem = Node_Zsaleitem->get_Element(  ).
    get all declared attributes
      Elem_Zsaleheader->get_Static_Attributes(
        importing
          Static_Attributes = Stru_Zsaleheader ).
      header_data-DOC_TYPE = Stru_Zsaleheader-DOC_TYPE.
      header_data-SALES_ORG = Stru_Zsaleheader-SALES_ORG.
      header_data-DISTR_CHAN   = Stru_Zsaleheader-DISTR_CHAN.
      header_data-DIVISION = Stru_Zsaleheader-DIVISION.
      header_data-PURCH_NO = Stru_Zsaleheader-PURCH_NO.
      partner_wa-PARTN_ROLE   = Stru_Zsaleheader-PARTN_ROLE.
      partner_wa-PARTN_NUMB = Stru_Zsaleheader-PARTN_NUMB.
       append partner_wa to partner_data.
        Elem_Zsaleitem->get_Static_Attributes(
        importing
          Static_Attributes = Stru_Zsaleitem ).
      item_wa-ITM_NUMBER = Stru_Zsaleitem-ITM_NUMBER.
      item_wa-MATERIAL   = Stru_Zsaleitem-MATERIAL.
      item_wa-PLANT = Stru_Zsaleitem-PLANT.
      item_wa-REQ_QTY = Stru_Zsaleitem-REQ_QTY.
      item_wa-COND_TYPE   = Stru_Zsaleitem-COND_TYPE.
      item_wa-COND_VALUE = Stru_Zsaleitem-COND_VALUE.
      append item_wa to item_data.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'
      EXPORTING
        ORDER_HEADER_IN           = header_data
      WITHOUT_COMMIT            = ' '
      CONVERT_PARVW_AUART       = ' '
    IMPORTING
       SALESDOCUMENT             = sales_order
      SOLD_TO_PARTY             =
      SHIP_TO_PARTY             =
      BILLING_PARTY             =
       RETURN                    = errorlog
      TABLES
        ORDER_ITEMS_IN            = item_data
        ORDER_PARTNERS            = partner_data
      ORDER_ITEMS_OUT           =
      ORDER_CFGS_REF            =
      ORDER_CFGS_INST           =
      ORDER_CFGS_PART_OF        =
      ORDER_CFGS_VALUE          =
      ORDER_CCARD               =
      ORDER_CFGS_BLOB           =
      ORDER_SCHEDULE_EX         =
    endmethod.
    PLEASE SUGGEST ME IF ANY CODE CHANGE IS REQUIRED
    Thanks in advance
    Ajay

    Hi,
    The item data is not read because, the dynamically added rows should also reflect back to the Web Dynpro context. When the user clicks on Add Row, use the Onsubmit event to add a empty line to internal table and then bind it to the context. And if the user removes a row, remove a row from internal table and bind it back to the context.
    You may refer this article.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/802f0ed1-a17a-2c10-7db4-d515a5b047ed
    Regards,
    Runal

  • Based On E-Mail Sales order automatically Created

    Hi,
    Customer will send the Email to Client for his / Her Sales Order (PO Order from Customer Side ) once client will get the Email from customer side, system will generate the popup Menu in that system has to show Details what customer wants with Accept for Sale order, check before Sales order confirmation ( Details ) & Reject
    Once Accept the sales order system will automatically create a sales order and in that same customer mail system will send the Sales order confirmation O/P
    Is it possible to Map  into SAP?
    If yes Please Guide me How to Map into SAP
    Regards,
    Prasanna

    Hi,
    You may configure an Inbound Idoc with sales order details like customer, material, quantity and expected delivery date, etc.
    Since it is a third party system, you will have to map the fields and determine how it will be populated.
    After that you may create sales order using BAPI_SALESORDER_CREATEFROMDATA or BAPI_SALESORDER_CREATEFROMDAT1.
    Regards,
    Amit

  • Creating a sales order with no items in stock

    Is their a way to prevent an Item from being placed on a Sales order when there are no Items in Stock? When a Item shows up on the PICK Ticket with a quantity OH of "0" It should not be on the Sales Order or the Pick Ticket.

    Hi Lewis,
    If you go to administration - system initialistaion - document settings
    on general tab check the Block Negative Inventory and choose block release.
    the system can allow you create the sales order but it will not allow you release the stock.
    i hope this will solve your problem if you have any question please do mention.
    Regards,
    Shahid

  • How to create sales order Automatically with reference to contract?

    how to create sales order automatically through batch or online? can anyone please suggest what needs to be change in SAPMV45A program?

    Hi,
    Wt am able to understand from the above question is, you want to create automatic sales order against contract on a day to day basis by doing batch program, hope am wright.
    See you can do it in two ways.
    1. By using BDC, in SHDB T code record how exactly you will do transaction and then give it to your abaper rest he will do. he will write a program and he will schedule that program every day night.
    2. By using BAPI. Just check in there are many threads are there which gives sales order bapi. Tell your abaper to map that bapi and tell them to schedule back ground job.
    Hope this will help out in solving your problem.
    Regards,
    Nagesh

  • New Line Item to be created in sale order

    Hi,
    Client requires a new line item to be created in sale order for particular regions only..
    Scenario 1 :
    For a particular region Additional Tax shud be calculated on Basic Price .
    Scenario 2 :
    For a particular region Cess on Vat need to incorporated.
    Client wants to maintain condition records in Cond Type :UTXJ and also the client shall maintain a 2 different Tax Codes for above each scenarios,  In future in case Additional Tax or Cess on Vat is applicable to other regions it shud get posted in their respective G/L's
    Plz suggest...
    Thanx...

    It would be wonderful had you shared your suggestion in this forum itself rather sending to personal mail ids which is against the rules and regulations of this forum.
    I request you to dont do that please.

  • While Sales Order Change , need to create Billing plan Item wise

    Hi ,
    We are using BAPI_SALESORDER_CHANGE for changing item category as well as parallely need to create billing plan item details (FPLT-FKDAT, FPLT-AFDAT, FPLT-NFDAT), Hence Please tell me the Procedure.
    Example: Billing Plan is Depending on Item Category, In my scenario , initially Item category do not have Billing Plan Tab, When we go for BAPI_SALESORDER_CHANGE for changing Item Category to Supported Billing Plan, So How can we update (FPLT-FKDAT, FPLT-AFDAT, FPLT-NFDAT) in Billing Plan Tab for every sales order item.
    Regards
    Jana

    Hi Ravi,
    Can You explain in detail.
    Regards
    Jana

  • Creating new sales-order item with text using BAPI_SALESORDER_CHANGE

    Hi all.
    I want to create new sales-order item in an existing sales-order by using BAPI_SALESORDER_CHANGE. This works fine.
    I also want to enter item-texts for the new item in the same call, but this doesn't work.
    When I call the BAPI I do not assign an item-number for the new item, thus I have no item-number to assign to ITM_NUMBER in table ORDER_TEXT.  IF ITM_NUMBER is empty, it's treated as a header text....
    Any clues?
    Regards
    /Elisabet

    increment the last itemnumber and pass it to that.
    if they are following a sequence 10,20,30.
    find the next sequence and send it to the ITEMNUMBER field.
    or else you add the text after the Function call.

  • Probelm in document flow if sales order created with Propose item

    Hi,
      I am facing one pronlem  I have created some sales order  as one sales order was there as 100030636  then i have created new sales order by pressing the icon propse item ->sales document default material with quanity  then ref. to this in new sales order  all item with quanity as per order comes in the new order 100030637    but when i check the document flow of order it is showing as below
    100030636  being proseesd
    100030637  OPEN,
    as there si no link between those to  just to copy all the material from old SO i have use propse item , so how this link can be removed  so that in the document flow of 100030637  the order 100030636  should not come.
    regards,
    zafar

    Dear Zafar,
    Check if there is a copy control between your sale order types in VTAA.
    If yes, then in the item category, uncheck 'Update document flow' and then check.
    Thanks & Regards,
    Hegal K Charles

Maybe you are looking for

  • Ipod touch is frozen on apple logo & does not show up in itunes or computer

    My ipod touch 4G is frozen on th apple logo. I can't simply restore it because it doesn't show up in itunes (lastest) or in computer (I have vista). I tryd using the apple online troubleshooter but nothing works. Please help!

  • What is the best way to send auto mail with excel(generated by query) attachment?

    Hello, Need to generate first data from stored procedure and the save it to an excel file and then send mail with the same excel file. So am searching for the best way so that i could do all process in a single task with daily or monthly schedule. As

  • Simple Question on using an iPod nano v iPod

    I do not have an iPod, but am considering getting one. I have about a 10 gb library of music and have been using a 256 mb mp3 player for the last couple of years. So my process for getting music has been to pick what 50-60 songs I want to hear and lo

  • Date validation via minValue in UI

    Hi, I am new in ADF so looking for some help. I have 2 inputDate in UI with behavior startDate and endDate. I am validating the date value with minValue property on endDate, like endDate should not be less than startDate. It is working fine and behav

  • Qustion about the transparent table PRPS

    Hi experts,   I have a question about this table PRPS.   When I use SE11 to search some entries from this table,first,I input value for the field POSID on the selection screen,I can find out the entries;Then I copy the value of the field PSPNR and in