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

Similar Messages

  • How do i create a new line item (say 20) in reference to line item 10

    Hi all,
    I am trying to map a scenario where i want to create a new line item with reference to an existing line item. Where do i get this option in SD, and how could i go about it?
    Thanks & Regards
    Ravi

    > In ECC6 if u go to VA01 and enter the SP and SH,
    > Press Propose Item Icon, then one window will pop-up
    > asking for Sale Document Number, enter the Number and
    > select- selection list, there  u will get all the
    > line item of the Sale Doc. Select and copy Material
    Hi i am on SAP 4.7. How could be the same handled here?

  • How to add a new line item to a Purchase Requisition number

    Hello All,
    Can anyone please provide me with some FM or BAPI to add a new line item to an existing Purchase Requisition number.
    Can it be done using BAPI_REQUISITION_CHANGE; if yes, then how do I pass the parameters into the BAPI tables..?
    Useful pointers would be appreciated...!!
    Thanks & Regards,
    Tarun Gambhir

    @Gautham,
    Thanks for the quick reply.
    I want to update the table EBAN, so should I use the parameter table XEBAN to put in the new line item and then execute..
    Also to fill up this table I need to pass certain value, so can I use BAPI_REQUISITON_GETDETAIL and pass the same details as found from the same BAPI and create a new line item...
    Regards,
    Tarun Gambhir

  • How to add a new line item when i click on UPDATE in orderpage B2B webshop?

    Hi Gurus,
    I need to add a new line item based on some condition when i click on update in the order page in b2b web shop. Is there any way to pass some parameters to the BADI crm_isa_basket_items and create a new line item when i update? If so can you please tell the parameters that i need to pass to the badi.
    Any help will be highly appreciated!!!!!
    Thanks in advance,
    Lakshman.

    You can put condition when you call java script function while clicking on "update" button.
    On order.jsp  update button call "submit_refresh()" java script function. You can check your condition over here.
    You can find this function in "orderTools.js" file.
    And when you enter item in last line on order page and click on the update button it will automatically add new empty lines on your order page as per your selected new line items from drop down box.
    Or may be you can call your custome action class when you click on update to check particular condition.
    I hope it will help you.
    Thanks and Regards.
    eCommerce Developer

  • Create a new line item in sales order

    Hi,
    I have to create a new line item in a sales order. The scenario is that if we donot find the desired quantity from a plant. Then we have to go ahead and pick the remaining quantity from another plant and automatically create a new line item.The new plant is picked from a custom table so u need not worry about it.
    According to me I will have to use the BAPI for it but one constraint is that while creating a sales order the order number assignment is not done until saved. So what can be done in the case if its a new document.
    Kindly let me know if there is any appropriate user exit or if someone has worked on a similar requirement.
    thanks
    Varun

    Hi,
    Thanks for your response. I have tried to use these exits already but the problem dat comes here is dat when we try to use the BAPI we donot have any sales document created in the first instance(i.e. while creating an order) so the BAPI returns error and when i tried to populate the itabs in the program directly the new values just wont get processed.
    I think like: in case its a new document and we face this scenario I can just terminate the document creation and create a new document using the BAPI with proper plant assignments.But i am doubtful about the stability of this process.
    Kindly comment.
    Thanks
    Varun

  • How to make a new line item appear in a sales order in VA01 transaction?

    Dear All,
    I am trying to create a SO with single line item with quantity 100.
    Upon hitting the 'Enter' key, if the available quantity is less than the requested quantity (say 20), it takes me to an availabilty control screen which has a push-button 'One-time delivery' on the application tool bar.
    Upon clicking on this button, it takes me back to the main screen of VA01 where I currently see only one line item with quantity 100 and confirmed quantity 20.
    My requirement here is to make two line items appear, one with quantity 20 and the other with quantity 80, once I navigate back to the main screen of VA01 after clicking on the push-button 'One-time delivery'.
    Please provide me your valuable inputs. Any kind of help is highly appreciated.
    Useful answers never go unrewarded.
    Regards,
    Sreekanth Reddy B.

    Hi Sreekanth ,
    creating line items based on the confirmation qty can be done thru config, not thru ABAP,standard SAP will gives you options to create a new line item for unconfirmed qtys.
    check with ur functional consultant or try to post in SD /APO forums.
    regards
    Prabhu

  • How to create a new line in label in Xcode

    How to create a new line in label. for example I have two buttons & one label. when i press first button, l want to change the label text to "Hello World". then when I press the second button, on the same label I need to display"Good Bye" on the next line in xcode 5?
    I want to display the lablel like below:
    Hello World
    Good Bye

    I am using Xcode to develop an app for iOS.
    I tried using multi-line label & belwo is my code.
    - (IBAction)change:(UIButton *)sender {
        self.Screen.text = @"\nHello World";
    - (IBAction)newChange:(UIButton *)sender {
          self.Screen.text = @"\nGood bye";
    everytime when i pressed the button, it replacing the whold lable text instead of adding the second line.

  • How to insert a new line item in VA01/VA02 by using ABAP code?

    Hi Gurus
    i have a very tough requirement. the customer wants to insert a free goods after an item has been populated in VA01/VA02 automatically according to some certain rules. the input material may be a main material of a sales BOM.
    for example. let's suppose there is a material A who has two sub-material B and C which is maintained in a sales BOM via CS01/CS02. when the material A has been input in the line item in VA01/VA02, its quantity input and after the ENTER key has been clicked, another material D may be displayed in a new line as a gift if the condition met.  the condition relates to customer/material/quanity and these information are stored in a Z-table.
    on the other hand, if the material A is only a single material(not a BOM), the gift(material D) will also be filled automatically if the condition met.
    i have already enhance the FM cs_bom_explosion to filfill the requirment for BOM materials. whereas it is very hard to find the enhanment point for the single material.
    so my question is where is the correct place for me to insert the ABAP code, which decides whether the gift should be given or not and furthermore inserts the new line item into XVBAP. i tried to use MV45AFZZ, whereas the data is always inconsistant if a new line has been inserted. it is very strange that there is no temperary internal table storing line item data input in the table controal of VA01/VA02. system reads the line item data , line by line, via a system kernal function call.
    any hints are welcome. thanks

    HI Stephen,
    I have the same prolem. I modified the 5 global tables, but I don't see the new line in the screen.
    Can you help me with some details?
    Thx!
    Mihaela

  • How to create a new menu item.. please help

    hi every one..,
    i bought a new 30GB ipod .., i would like to create a new menu item in the ipod and wanna generate all my content whichis in my database to this newly created menu item in my ipod....
    any reply to this will be greatly appreciated..
    thanks in adavance
    Prem
    AMD athlon 64. 2400+   Windows XP Pro   1.8GHZ, 512 MB RAM

    Prem,
    First of all, Welcome to the Apple Discussion Forums!
    If you get no response here you may want to post your question over in the iPod Discussion Forums for the quickest response.
    Pick the forum of the iPod in question (Usage).
    Just thought that might get you a better/quicker response than here.
    good luck,
    littleshoulders [:-)

  • How to Insert the new line items in Billing

    Hi Friends,
    I have an issue in Billing process.
    When the user is creating the billing document from Delivery document, then based on some conditions, I have to split the line item into 2 different line items(We have to change the Quantity and value).
    Please let me know what are all the possible options.
    Regards
    Elini.P

    Many times, there is no new line (unless there is some sort of list in the paragraph). Since Word (actually most editors now) word wraps automatically, the paragraph is usually (essentially) one long line that the editor wraps for you.
    But, to tell you the truth, I don't see anywhere in that code where you are even attempting to find newline characters. What, exactly, are you trying to accomplish. I.e. what is your desired result (not the process you are envisioning to get there).

  • How to create a new line in TEXT_ITEM in WAD ???

    Hi all,
    I would like to create an online help on my WAD application. Thus, I'm using TEXT_ITEM to write/display my help but forum text is lost everytime. How can I do something like that in a TEXT_ITEM ?
    - blablabalabla
    - blablabalabla
    At the moment my text is always displayed like (without the breakline ...)
    - blablabalabla- blablabalabla
    Thanks for your help

    This is my XHTML code.
    When I insert text in the TEXT_ITEM webitem, I have tried CTRL+ENTER or ENTER only, my text is displayed on 3 lines, I click on Ok, the editing windows is being closed, if I open it again, my text is displayed on one line again ... (same result in web )                                           
    <bi:TEXT_ITEM name="TEXT_HELP_INPUT" designheight="169" designwidth="387" >
         <bi:TEXT_BINDING type="CHOICE" value="TEXT_CONTENT" >
              <bi:TEXT_CONTENT value="- blablablabla line1 - blablablabla line2 - blablablabla line3" />
         </bi:TEXT_BINDING>
         <bi:WIDTH value="387" />
         <bi:HEIGHT value="169" />
    </bi:TEXT_ITEM>
    I have also tried
    <br/> <br> \n \r
    in the editing windows but HTML tags are encoded and \n \r ignored.
    Thanks for your help

  • Create new line item while saving a new order

    I have a requirement to create a new line item with different item category while creating an order.
    i.e
    if the item category is ICT1, then create a new line item like item 1 but with item category ICT2.
    Also in the conditions tab, we need to update the condition type with  different values for both existing and new item.
    All this has to be in VA01 i.e on save.
    I tried to append lines of structure XVBAP at SAVE_DOCUMENT _PREPARE by changing the item no and item caegory. This works fine. But, how can I get other table details like XKOMV(which stores pricing condition details) for the new item?
    Please can you suggest any other exit/subroutine for this?
    or any other alternative solutions

    Hi,
    Try to use this EXIT:
    'EXIT_SAPMM06E_013'     Update Customer's Own Data in Purchasing Document
    The Badi and exit contains same parameter.
    Thanks,
    AMS

  • ME21N add new line item when creating a PO

    Hi guys,
    I am new to badi & oop.
    I want to add a PO line item after clicking the save button in ME21n.
    I found the BADI IF_PURCHASE_ORDER_MM.
    I have coded in the method POST by using method create_item.
    However, it still does not work? Any ideas how to use this method to create the new line item or any sample code?
    Please help! points will be rewarded.
    Many thanks...

    Hi Sen,
    You mean by executing the BAPI call? Maybe you did understand my question wrongly.
    What my requirement is that, user will be keying in details for PO and its line item in ME21N.
    And upon saving, need to auto add in an additional line to the PO. Eg user key in 3 line items, the BADI/userexit suppose to add a new line item to it.
    The bapi that you proposed, creates PO from d scratch right?
    I guess it can't just create an PO item with that bapi unfortunately.
    Any other help? I need a help in coding this create_item method in interface class IF_PURCHASE_ORDER_MM.
    Please help.. I have an urgent requirements.
    Many thanks in advance.

  • Substitution to create new line item

    Hi,
    I am looking for a way of creating an additional line item when posting an FI document (incoming payment) based on one of the documents actual line items.
    (well, actually the customer is looking for this...) ;o)
    Something like:
    IF line item account number EQ 1234 THEN
       Check how many invoices are paid by this transaction
       Check something in SD via the invoice number for all line items
       Based on findings, create a new line item.
    END IF.
    Can I do this via a substitution and user exit?
    Did anyone ever do something like this?
    Thanks in advance!
    Dirk

    Hi,
    Good evening and greetings,
    I dont think it is possible through substitution...Please go through the following
    FBICRC002POPULATE_LINEITEMS
    Please reward points if found useful
    Thanking you
    With kindest regards
    Ramesh Padmanabhan

  • How to add new line item based on main item using crm_order_maintain

    Hi All,
    can you please provide a way to create a new line item based on main line item and save in crm transaction( in house repair order) by using crm_order_maintain(from SAP GUI).
    Thanks,
    vinod.

    Hi Vinod,
    The relationship with main item is stored with CRMD_ORDERADM_I- Parent.
    You need to pass the guid of main item to orderadm_i-parent. This will keep the relationship with main item.
    Thanks
    Ajay

Maybe you are looking for

  • Audio Splits in Source Monitor malfunction (CS6)

    Malfunctioning of Audio Splits in Source Monitor Steps to reproduce: 1.Open a Video+Audio Clip in Source Monitor 2.Clear In and Out 3.Mark Audio Split In and then Split Out 4.Try to Go to Audio Split Out Results: after Marking Audio Split Out, Video

  • Lion and bootcamp with Win 7

    I have an Intel iMac with the latest Leopard software.  I mainly use this computer to run Windows 7 via Bootcamp.  IF I installed Lion, would it effect my present Bootcamp Windows partition?  I read somewhere that a buyer of Lion can install the one

  • Dateofbirth and start date not same for infotype 2

    Hi Gurus, Recently we have applied supportpacks for 4.6c  in development.I am testing for hiring action.What i observed is end date for these infotypes changed to 31.12.1999 instead of 12.31.1999 and in infotype 2 employee dateofbirth  and start date

  • BthA2DP.sys BugCheck

    OS: Windows 8.1 x64 Steps to reproduce: Connect Bluetooth Headphones, etc Start 32 Bit WDM/KS audio output stream on BT device Start any other BT output stream using the Global Audio Engine, e.g. by clicking on the System Tray Volume Slider control,

  • Help with MacBook Pro Trackpad- Input Chinese Option

    I'm trying to use the Chinese input trackpad option where you write characters on the trackpad and then select them, but whenever I select a character, it doesn't show up on the screen. It used to work before. How can I fix this?