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

Similar Messages

  • 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

  • Adding new line item to the Purchase Requisition

    Hi Guys,
    I have created the PR using the BAPI_PR_CREATE. Now I want to add the new line item to already created PR. I tried with BAPI_PR_CHANGE and BAPI_REQUISITION_CHANGE but nothing worked for me.
    Can anyone help me in this.
    Thanks in advance
    Edited by: jayakrishna.k on Feb 16, 2011 12:07 PM

    Hi,
    Please try MEMASSRQ or change by ME52N
    Regards,
    Manish Jain

  • How can I add a new line item for production order?

    HI all,
    How can I add a new line item for production order through BAPI/FM? Thanks in advance.

    Hi Mil,
      Unfortunetly SAP is not in front of me.
    But if possible go to BAPI transaction , check for any production order's bapi for CHANGE purpose. Where you will be able to add your new line.
    Reward if useful!

  • How to add a new line in SMS(Line Break).

    Hi All,
    I need to send SMS from PL\SQL Procedure
    The problem i have been facing is that the string being passed in as sms content is not parsing a newline character.
    It shows all content in one line.
    I need to break them in several lines.
    Give me a direction how to add a new line in SMS.
    Regards,
    Raj.

    Hi,
    Sure, Here it is
    CREATE OR REPLACE PROCEDURE APPS.AUTO_SMS_RTV_REPORT
    IS
    sender          VARCHAR2(1000);
    recipient     VARCHAR2(1000);
    message          VARCHAR2(4000);
    sub          VARCHAR2(1000)     := 'HELLO';
    dt1          varchar2(1000)     := to_char(sysdate,'DD-MON-YY');
    mailhost     VARCHAR2(30) := '10.7.7.xxx';     
    mail_conn     UTL_SMTP.CONNECTION;
    v_crlf VARCHAR2(2) := CHR(13)||CHR(10);
    CURSOR cur_Rejection_Records IS
                   SELECT DISTINCT
                        rt.VENDOR_SITE_ID               ,
                        pvs.email_address     VENDOR_MAIL_ID     ,
                        pvs.PHONE          vendor_contact_no ,
                        hre.EMAIL_ADDRESS     Employee_mail_id ,
                        hre.FULL_NAME
                   FROM apps.rcv_transactions      rt,
                        apps.po_vendors           pv,
                        apps.po_vendor_sites_all     pvs,
                        apps.mtl_transaction_reasons mtr,
                        apps.fnd_user          fu,
                        apps.hr_employees          hre     
                   WHERE transaction_type = 'RETURN TO VENDOR'
                   --AND        TRUNC(rt.transaction_date) = TRUNC(SYSDATE)
                   AND     rt.vendor_id          = pv.vendor_id
                   AND     rt.vendor_site_id     = pvs.vendor_site_id
                   AND     rt.REASON_ID          = mtr.REASON_ID(+)
                   AND fu.user_id          = rt.last_updated_by
                   AND hre.EMPLOYEE_ID     = fu.EMPLOYEE_ID
                   AND TRANSACTION_ID IN (
                                  11902189,
                                  11902253,
                                  11902148)
    BEGIN
         FOR rec_Rejection_Records IN cur_Rejection_Records
         LOOP
         Begin
              sender     := '<[email protected]>';
              recipient     := rec_Rejection_Records.vendor_contact_no || '@aaaa.com';
              mail_conn := utl_smtp.open_connection(mailhost, 8025);
              utl_smtp.helo(mail_conn, mailhost);
              utl_smtp.mail(mail_conn, sender);
              utl_smtp.rcpt(mail_conn, recipient);
              utl_smtp.DATA(     mail_conn,
                                  'Date: ' || TO_CHAR(SYSDATE, 'Dy, DD Mon YYYY hh24:mi:ss') || utl_tcp.crlf ||
                                  'From: ' || sender     || utl_tcp.crlf ||
                                  'Subject: '|| sub     || utl_tcp.crlf ||
                                  'To: ' || recipient || utl_tcp.crlf ||
                                  utl_tcp.crlf ||
                                  'Dear Supplier,'||CHR(10)|| utl_tcp.crlf ||'\\\0x0A'|| -- HERE I NEED LINE BREAK
                                  'Please.'|| utl_tcp.crlf                          
              DBMS_OUTPUT.PUT_LINE('Yep !!! SMS Sent Sucessfully :) ');
              utl_smtp.quit(mail_conn);
         EXCEPTION
              WHEN UTL_SMTP.PERMANENT_ERROR THEN
                        dbms_output.put_line('Error - ' || SQLCODE || ' - ' || SQLERRM);
              WHEN OTHERS THEN
                        dbms_output.put_line('Error - ' || SQLCODE || ' - ' || SQLERRM);
         END;
         END LOOP;
    END AUTO_SMS_RTV_REPORT;
    /

  • 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

  • How do add a new line in the JavaScript Editor?

    I have a script like this:
    var n = this.getField("score").value;
    if (n >= 0 && n < 5) {
        event.value = "The WP 100% Bond\nThe WP 10% Stock / 90% Bond\nThe WP 20% Stock / 80% Bond";
    I want to output that line like...
    The WP 100% Bond
    The WP 10% Stock / 90% Bond
    The WP 20% Stock / 80% Bond
    But it's not honoring the \n for a new line. How in the heck do you add a new line??? I've tried \r, \r\n, \n\n. All it does is add a character space, and looks like this...
    The WP 100% Bond The WP 10% Stock / 90% Bond The WP 20% Stock / 80% Bond

    You can use \n like you did to indicate a new line, or \r (carriage return). If it's not working, be sure to set the field to multiline on the Options tab of the field properties dialog.

  • Idoc Type to add a new line item to existing Inbound delivery

    Hi Friends,
    we have one requirement.
    In the system Inbound delivery is created through Idoc. Once the inbound delivery is created, we need to change that inbound delivery by adding a new line item to that inbound delivery where the line item belongs to another PO. Means, I have an existing inbound delivery number for a PO having one line item. Now I want to add another line item into the inbound delivery for another PO. I have created the inbound delivery through Idoc using the idoc type DESADV. Now I want to change the inbound delivery for adding the line item. Can anybody please tell me which idoc type should I use for this above highlighted requirement?
    Thanks & Regards
    Satya

    Hi.
    I have one PO 4500000001 for which I have created the inbound delivery 180000001. This inbound delivery has been created through an IDOC. I have another PO 4500000002 having one line item. Now i want to add another line item into the inbound delivery 180000001 for the PO 4500000002 as second line item. To add a second line item to the existing inbound delivery, which IDOC type should I use.
    Hope it clarifies the requriement.
    Thanks & Regards
    Satya

  • Unable to add a new line item to a sales document when hitting save

    Dear All,
    When ever the end user save the sales quotation document, a new line item has to add automatically with a default item with some quantity.
    I am trying to solve this issue with user exit USEREXIT_SAVE_DOCUMENT_PREPARE in SAPMV45A. But it is not allow me to do so. Is there any solution?
    Thanks in advance.
    Regrads,
    Suresh Yerra.

    Write the proper code in USEREXIT_SAVE_DOCUMENT_PREPARE, it will solved.

  • 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 add a new Line in Labeltext of Ribbon button added in runtime ?

    HI , i'm adding a new buuton ribbon to an existing Tab (Edit Tab) , i use the AliasTemplate "o1" , and this is my button :
    The text "Mettre a jour la fiche a partir de la concept Note " is very long i want to add a new line after "a partir" so i will have two lines , this is what i tried but it dosent worked :
    private string btnUpdateForm = @"<Button
    Id=""Ribbon.Tab.GRP.ButtonUpdate""
    Sequence=""17""
    Image32by32=""/_layouts/images/Aidimpact.RibbonWorkflkow/export-icon.png""
    Description=""""
    Command=""Ribbon.Tab.GRP.ButtonUpdate.Click""
    LabelText=""ValValUpdateLabel1
    ValValUpdateLabel2""
    TemplateAlias=""o1""/>";
    private void AddBtnUpdate()
    // Get the current instance of the ribbon on the page.
    Microsoft.Web.CommandUI.Ribbon ribbon = SPRibbon.GetCurrent(this.Page);
    // Prepare an XmlDocument object used to load the ribbon extensions.
    XmlDocument ribbonExtensions = new XmlDocument();
    // Load the contextual tab XML and register the ribbon extension.
    int intLCID = System.Threading.Thread.CurrentThread.CurrentUICulture.LCID;
    if (intLCID == 1036)
    btnUpdateForm = btnUpdateForm.Replace("ValValUpdateLabel1", "Mettre à jour la fiche à partir");
    btnUpdateForm = btnUpdateForm.Replace("ValValUpdateLabel2", "\n \r\n de la Concept Note");
    else
    btnUpdateForm = btnUpdateForm.Replace("ValValUpdateLabel", "Update the form from Concept Note");
    ribbonExtensions.LoadXml(this.btnUpdateForm);
    ribbon.RegisterDataExtension(ribbonExtensions.FirstChild, "Ribbon.ListForm.Edit.Actions.Controls._children");
    Thanks for advance

    Hi,
       i replicated issue , and \n is not affective. So i guess what option you can try is to keep text small and use Alt to show full text. 
    Regards,
    Milan Chauhan
    LinkedIn
    |
    Twitter | Blog
    | Email

  • 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 add a new line in pe51?

    Hi Team,
    I want to add anew field in pe51 form editor.
    for that i want to add anew line in pe51 form
    i went to pe51 tcode and selected background raidobutton.
    but from ther i dont know how to add a line at the required position.
    So please reply me on this as soon as possible.
    Thanks & Regards,
    Kranti.

    Hi Kranti,
    The reason, why you are not able to insert a new line in background could be that the maximum line size defined in attributes is already utilized. Thats why F7 doesn't work.
    1- From main screen of PE51, select your pay slip, click on attributes and than click on change button.
    2- Increase value in lines field and save changes.
    3- Go to background and try to insert new line with F7 keyboard key.
    I hope this is what you are looking for.
    Regards,
    Waqas Rashid

  • REUSE_ALV_GRID_DISPLAY == How to add a new line?

    Hello SDN community,
    I'm using the "REUSE_ALV_GRID_DISPLAY" function with "i_save = 'X'". How can I solve the following problem: I want to insert a new line into the ALV and after a click on the SAVE Button, the internal table should have this new line too?
    Best regards,
    Marius Klaus
    [click for an example picture|http://pic-hoster.net/upload/0a8b8c5c7a38434f4e0010ceb7f6fbe7.jpg]
    Edited by: Marius Klaus on Nov 30, 2009 4:00 PM

    on the click of add button(for adding an line in grid_display)  write the following code.
    t_user_input is the table to be displayed in ALV_GRID.
    DATA : ob_ref_grid TYPE REF TO cl_gui_alv_grid.
      READ TABLE t_user_input INTO e_user_input INDEX  1 .
              MODIFY e_user_input(as per user's requirement)           
              APPEND e_user_input TO t_user_input.
          CALL METHOD ob_ref_grid->check_changed_data .
          CALL METHOD ob_ref_grid->refresh_table_display.
    Regards,
    Shekhar

  • How to add the new line in reciever FCC

    Hi All,
    I have my reciever FCC with me, but I just need to add one more additional line or you can say seprate the first line.
    So how to add extra or new line in the current structure?
    Please let me know if there is any parameter for this.
    Thanks in advance.
    Regards,
    Rahul Kulkarni

    Hi Rahul,
    You can achieve this by endseperatot "nl"
    If record set structure is * means fine, you just add second line field names by using end separator "nl".
    If you added first line names in recordsetstructure add second line names as well and remaining same use end separator.
    Example (below file is having two lines):
    <NameA>
    name,address,id
    empid,sal,region
    <NameA/>
    your FCC will be (according to your requirement the below 3 fileds will be use full).
    Recordsetstructure  - *
    NameA.fieldvalues - name,address,id
    NameA.endseperator - nl
    NameA.fieldvalues - empid,sal,region
    Thanks & Regards,
    A.Neelima.

Maybe you are looking for

  • HP LaserJet Pro 200 M276nw - Scan to Computer problems

    So I've got an HP LaserJet Pro 200 M276nw. Have trouble activating the scan to computer option. Here's my setup: One desktop computer and three laptops are connected to a local network. The desktop pc is wired to the network, all three laptops are co

  • Can I install a usb2 card?

    I have a 1.25ghz g4 tower at work and we do back up with an external hd (small company). The hd is only usb. So can I go get a usb 2 card and install it and get the improvement in speed of usb 2? Thanks in advance Imac g4, 12 powerbook 1ghz   Mac OS

  • Nokia 5800 doesn't go online in Maps

     Hello. I've a Nokia 5800 XpressMusic and when I go to Ovi Maps it shows a message "No internet connection. Select 'Options' > 'Tools' > 'Go online' to go online". I did what it said and again there is the same message displayed. I had tried to go to

  • Do I use BPM correlation correctly

    I have a BPM and it calls 3 RFCs Sender -> BPM -> RFC1(sync) -> RFC2(sync) -> RFC3(sync) And the data is master/detail, but the sender send by detail, not master. It means, if a master has 3 details then sender sends 3 messages to BPM. But I don't wa

  • Multiple web galleries in one website

    Hi guys, Is there anyway to have multiple web galleries in one website, ie linked off one page Gallery 1 Gallery 2 Gallery 3 I can rename the swf, and js files and it works fine, but when i rename the gallery.xml file to what i want, it wont work. Ha