Copy texts from parent line item to substituted line item in Sales order

Hi Guys,
I want to copy texts from parent line item to substituted line item in a sales order where the material is substituted by SCM.Can you guide me which FM can be used in which user exit or any new suggestion?
Thanks
Swathi

Hi,
do you want to set long text or just short one? Obviously you can not use this BADI to set different fields than are available in the method interface. But I found thread with a similar problem here on SDN.
Re: Automatic Population of Texts during Sales Order Processing
If you call subroutine on commit, it should be working.

Similar Messages

  • How to Automatically copy text from PO Line to Fi Doc

    Hello Friends,
    can any one help me on this to resolve the issue.
    How I can Automatically copy text from PO Line to Fi Doc and replicate text from fi doc controlling reports .
    t-code- me23n
    the Header text has to copy in to FI document, accounting doc, profit center doc.
    FI When  GR posted  (WE ) PO  header text (Tab)  -à must be to copied to GR Finance document header  and
    PO  item  Text must be Copied to à Finance Document  Lint  item text
    Rgards!
    skr

    Hello,
    I got the BADI - AC_DOCUMENT and under IF_EX_AC_DOCUMENT~CHANGE_AFTER_CHECK i have to use my code. can any one send me some sample code plz.
    here i have to pass the po number and get the bktxt value.

  • Copying text from CMIR (KNMT) to the Sales Order Line Item

    We need to copy text from the CMIR (KNMT) to the Sales Order Line Item with two steps in the access sequence. First to look up by the Ship to Partner Function.  If doesn't exist, then look up by Sold to Partner Function.  Have setup a new text id (ZPRN), a new access seq (9011).  The access seq has one seq =5 for KNMT, ZPRN, all languages and that saves fine.  When I set the Partner Function to be SH.  I get the following error msg:
    "The Language does not come from the partner function AG for MVKE".
    Any ideas?  This access seq does not reference MVKE. It only references KNMT.
    Thanks!

    Hi Lisa,
    Just stumbled on this post, as I am searching for something similar.
    What you are attempting to do isn't possible in config.
    This is because as standard Customer Material Info Records are not even considered for ship-to party in the sales order.
    They work for sold-to only.
    Therefore, this funny error message is SAP's way of saying, "Why are you trying to enter a partner here, because the data is determined for sold to only?"
    You can change this with development for other fields (ie, to determine delivery plant, tolerances etc at ship-to) by using
    the exit MV45AFZB with the USEREXIT_CUST_MATERIAL_READ form.
    However, even if you do this, Text Determination is still sold-to only and still doesn't behave.
    I am currently looking myself for a solution for this problem and I will let you know what I find.
    Cheers
    Chris

  • I did a COPY of some text from a web page, and then did a PASTE into notepad.exe (Windows). The text from each line was duplicated -- on the line! Instead of "Fred", it became "Fred Fred".

    I just recently installed Firefox for the first time. It seems nice and quick. The version is reported as: "10.0.1".
    I wanted to save some text from a web page, so navigated to that page, selected the text, and pressed the Control-C combination to COPY the selected text to the buffer. For example, the text I selected looked something like this:
    Harry
    Ron
    Hermione
    Hagrid
    Albus
    NOTE: Each line of text has a small icon to the left of the text.
    It is not reasonable to COPY and PASTE each line individually, as there can be hundreds of lines of data. I recall, however, that
    doing a COPY and PASTE on this data into Microsoft's Excel will produce cells which have the icons included in the cell, but unfortunately one cannot can't get rid of them! At least I've never found a way to remove them, but that's another issue. :)
    Once I'd done the COPY operation I switched to a Notepad window and did a PASTE operation. To my surprise, the text from each line was duplicated. It looked like this:
    Harry Harry
    Ron Ron
    Hermione Hermione
    Hagrid Hagrid
    Albus Albus
    Thinking that there might be something unusual about the web page I looked at the source, but it appeared "normal" -- that is, as expected.
    Note: I have done this operation several times before, and have never seen this occur before.
    Note: In the actual data some of the lines have quoted text in them. Curiously there is weird behavior on these lines. In some cases the entire line is shown only once. (These occur at the top of the line, and the quoted text is at the beginning of the name.)
    When quoted text appears "later" in the name, in some cases the quoted text is duplicated, and in other cases the quoted text is missing altogether! I have also noticed an error with the quoted text, and so will be reporting that to the web site which generates the HTML.
    Note that each line of "text" is "anchor text", so if I click on a name the browser navigates to a page for that name.
    I believe that the problem is that the COPY operating in Firefox is not simply copying the visible text, but also the ALT=
    Below is a sample of what the source HTML looks like:
    <a class="lnk" target="_blank" href="http://details.aspx?id=Harry">
    <img width="16" height="16" alt="Harry" class="tb_icon" src="http://.../Harry.gif"/>
    <span>Harry</span></a>
    <br/>
    (Because of the true length of the lines in the source HTML, I have stripped out the actual URL of the site.)
    To make sure I wasn't imaging this difference I repeated the process within Internet Explorer. In that browser I did not get duplicated data.

    Try:
    *Extended Copy Menu (fix version): https://addons.mozilla.org/firefox/addon/extended-copy-menu-fix-vers/

  • Copy down Ship-to Partner from main item to sub-items on Sales Order

    This is my first post on the forums here.  I'd appreciate any help you can give on my issue below.
    I have a requirement to copy down the ship-to partner from the main item to sub-items during sales order create or change.  Currently I have code in include MV45AFZB within user exit USEREXIT_FILL_VBAP_FROM_HVBAP as follows:
    <i>* Need to be able to copy the ship-to of a BoM parent down to the
    respective BoM children if the parent has a different ship-to
    from the header.
    data:  wa_xvbpa like vbpa.
    Clear: wa_xvbpa.
    read table xvbpa into wa_xvbpa with key posnr = hvbap-posnr
                                            parvw = 'WE'.
    A BoM parent line has a different ship-to from the header.
        if sy-subrc = 0.
          read table xvbap with key uepos = hvbap-posnr.
    See if current line is the child of that BoM parent
            If xvbap-uepos = hvbap-posnr.
              move wa_xvbpa-kunnr to xvbpa-kunnr.
              move xvbap-vbeln to wa_xvbpa-vbeln.
              move xvbap-posnr to wa_xvbpa-posnr.
              move 'WE' to wa_xvbpa-parvw.
              modify vbpa from wa_xvbpa.
            endif.
          Endif.</i>
    This isn't working for me.  At one point, I was able to copy the ship-to down to the first sub-item but not any subsequent ones.  I'm sure I need to add some code to another sales order user exit to get this to work, but I'm at a loss at this point.   Has anyone had to do this or something similar before? 
    Thanks very much in advance for your help.
    Angela

    Hi,
    Can you check few more things and tell me?
    - In this exit, does XVBPA and XVBAP contains all the line items. ( main and sub items ).
    - In Sales order creation time, do these table have VBELN populated when this exit triggers.
    - If you modify XVBPA or XVBAP in this exit, do they get overwritten after that.
    Try this code. See if it works.  Let me know if you still have a problem.
    DATA: wa_hvbpa LIKE vbpa,
          wa_xvbpa like vbpa.
    CLEAR: wa_hvbpa, wa_xvbpa.
    * check if HVBAP and VBAP line items are not same
    IF vbap-posnr <> hvbap-posnr.
    * read the ****-to partner from main-item
      READ TABLE xvbpa INTO wa_hvbpa WITH KEY posnr = hvbap-posnr
                                              parvw = 'WE'.
      IF sy-subrc = 0.
    *   read the line item data for sub-item based on main item
        READ TABLE xvbap WITH KEY posnr = vbap-posnr
                                  uepos = hvbap-posnr.
    * See if current line is the child of that BoM parent
        IF sy-subrc = 0.
          MOVE wa_xvbpa-kunnr TO xvbpa-kunnr.
          MOVE xvbap-vbeln TO wa_xvbpa-vbeln.
          MOVE xvbap-posnr TO wa_xvbpa-posnr.
          MOVE 'WE' TO wa_xvbpa-parvw.
          MODIFY vbpa FROM wa_xvbpa.
        ENDIF.
      ENDIF.
    ENDIF.
    Regards,
    RS

  • Can not copy text from AI CC or AI6 in to the file name

    I have an AI file with 80+ UPC codes that I need to separate in to individual files. Each UPC has a descriptor but when I copy the text and then try to paste it as file name it will not paste. I use this same process regularly in InDesign when I design print ads. Each print ad has a unique item number that prints with the copyright line so I simply copy and paste that information when I do the save.
    Under File Handling and Clipboard both PDF and AICB are on. I've tried this in AICC and AICS6. I also tried different files. Same issue. Any suggestions? I really don't want to have to type 80 some descriptions which are very lengthy. 

    I can not copy the text from Illustrator in to any OS X application/function (filename, Mail, Text Edit, ect). I can copy in to InDesign, Photoshop, Flash, and other other Adobe product. I can copy in to Word as well. I guess my work around will be Word.
    And the opposite is true. I can copy text from any other Adobe application to any OS X application/function with no issues.
    I guess my work around will be to OCR the text from Acrobat and open in Word. The descriptors have to be 100% accurate and some of them are pretty long.

  • Copy text from multiple fields to one field

    I would like to copy text from multiple fields into one field. Each of these smaller fields will only be allowed to have one character. The larger field will not be able to be edited.
    So far, I have thought of creating a naming heirarchy for these fields. I was going to then call upon the array of the parent and set the value of the parent to equal this array.
    var parent = this.getField("everything");
    var array = everything.getArray();
    var v;
    for(parent=0; parent<array.length; parent++)
    v = a + " " + v;               //Im guessing this line is incorrect
    parent.value = a;
    Any suggestions? or a better way of doing this.
    Thanks

    The code sample you provided is using AcroForm scripting and will not work in this form. There is another post similar to this one...have a look at this one it might help you out. It is doing the opposite of what you want but the concept of the loop and how each field is addressed inside ofthe loop is what you wil need.
    http://forums.adobe.com/message/2954517#2954517
    Paul

  • How do I copy text from one layer to  another?

    I have Googled this but not a single answer seems to work.
    I am using Photoshop CS4 on OS X 10.6.7.
    OK, so  I  have a layer that  has some text in it.  I would like to  be able to  simply copy that  text  from one layer  to  another, but this seems to  be impossible as the Edit Paste menu item is grayed out after I have copied it in to the clipboard.  I can paste it into  the SAME layer, but not into another layer.
    This is how I am trying to  do  this.
    In the layer  with the text, click on the "T" icon to  the left.
    Click on the text, in the layer that I  want to  copy. 
    I select the text (either  by  clicking and dragging or pressing Command-A).
    Next I press Command-C.
    Then I  click on the layer In the Layer Panel) where I want to  paste the text.
    Pressing Command-V is impossible because the Edit-Paste menu option is grayed out!!!!
    WHY??????
    Perhaps more importantly, HOW do I copy text  from one layer to  another?

    First thing you can simply right click on the Text Layer and choose Duplicate Layer.  But that will create a new Text Lay
    er identical to the one you have.
    To answer your question in your case....  Create the Text Layer.   Make a New Layer.  Or have the layer you want to paste into visible.
    Highlight the text layer in the Layer Palette and Ctrl+Click (Win) Cmd+Click(Mac) so that you see marching ants walking around your text.
    Edit>Copy.
    Then highlight your Layer you want to paste into and hit Edit>Paste or Cmd+V / Ctrl+V.

  • Copying Text From Sales order to Billing Document

    Hi all,
    I have searched all posts for my issue but found nothing so that i am posting this issue.
    I want to copy the Some text form sales order to billing document is there any cnfig to do this
    order is there any exit for billing in which i can write code to copy text from sales order to billing document.
    please provide me a solution.
    Thanks in adavnce.
    Vinod.

    Hi,
    Use the same t-code VOTXN to do access sequence assignment.
    When you choose text object Billing Doc (header/item), there is 3 folders in dialog structure:
    - Text procedure
    - Access sequence
    - text procedure assignment
    In the text procedure folder, select related text procedure, then assign the created access sequence to respective text id.
    Hope this help.
    Cheers,

  • Problem while copying Text from Jtext Area ..

    I am trying to copy text from a JtextArea onto any Text Editor .. What happens is that the pasted text in the Text Editor eg : TextPad, JCreator etc .. has extra Carriage Return appended at the end of everyline (line separator to be exact).
    Eg :- Actual Text on Text Area :
    Executing PU for PMGS.................
    Completed PMGS PU successfully.
    - When Pasted on a Text Editor Blank Document becomes :
    Executing PU for PMGS.................
    Completed PMGS PU successfully.
    I am not being able to understand how this extra CR (Carriage Return gets added .. Looking for an urgent solution to this problem ,,

    rathor5 wrote:
    When I am copying a song from my pc to lumia 620 . It automatically create 3 or 4 links of that song in "music+video" hub . I have already refreshed my phone but the problem is still persists.
    Do you already have the amber update on your Lumia? Pre-amber solution for that is to perform a complete hard reset of the device - so make it sure to do a backup first.
    Good luck

  • How do I copy text from a Spotlight search result quicklook window?

    Is it possible to copy text from the quicklook windows that appear when you hover over a Spotlight search result? It would be useful to be able to copy, say, a phone number or email address straight from the address book card that appears in Spotlight. The only options I see are to display the text in large type and to Facetime (for phone numbers) and to perform mapping functions for addresses; simple copying seems to be disabled for some reason.
    I am using Spotlight in OS 10.7.5.
    Michel Chaouli

    Try this:
    set the clipboard to item 1 of (get name of (static text of group 104 of UI element 1 of scroll area 1 of group 4 of window "Account Summary" of application process "Safari"))
    (10906)

  • Can Pages copy text from one page to another automatically?

    Can Pages automatically copy text from one page to another?
    For example recurring text in a document e.g. addressee details or a date (not today's date).
    I want to type the topic title of one letter and have it automatically filled into the correct field in the next page which will be a letter to a different recipient.
    The letter text will be different for each recipient so mail merge probably won't work.
    Thanks
    Andy

    Thanks that worked great!!!(for the first line)
    Now why wont it populate more than the one other text field?
    F.Lic.Table1.Row1.agt_ssn_lic.rawValue = xfa.event.newText;
    F.PAGE3.agt_ssn_1.rawValue = xfa.event.newText;
    F.PAGE4.agt_ssn_2.rawValue = xfa.event.newText;

  • Can't copy text from InDesign to other applications

    Hi there,
    Whenever I try to copy text from InDesign to any other applications, it simply fails. When I get to my text editor, email program, Illustrator or Photoshop, it's like the clipboard is empty.
    I'm able to copy shapes and other objects, though. I can also copy entire text boxes, but if I'm copying to Illustrator, for instance, all the lines of text are separated. It's treated as an object and is pretty useless for typical formatting needs.
    I'm on Mac OS X Mountain Lion, using InDesign CS5.
    Can anyone help?
    Thanks!

    Hi all,
    Thanks for replying!
    I tried unchecking "copy PDF", and also quit the only slightly-clipboard related app I use, Quicksilver, but it didn't fix the problem.
    Does anyone have any other ideas?

  • Cannot copy text from DRM-free PDF on PC

    I can on my Mac. Both use Adobe Reader v11.x. I think the behaviour started when I updated to version 11 on the PC.
    I cannot copy text from DRM-free PDFs that I read. I can switch to the Select Tool cursor but drag-select does not work as it did before. Double-click can highlight (and copy) a word. A triple-click can do so for a line. This is clumsy and inefficient and I cannot grab more than a line of text.
    File > Properties: Security shows 'No Security'. I am stumped. Is there some detail I am missing? (I downloaded and switched to FoxIt Reader to take notes now but prefer my knowledge of navigation shortcuts in Adobe Reader.)

    Hi jroth,
    How are you "re-printing" the PDF? Once you have a PDF file, it shouldn't be necessary to re-create it just because you've made changes. You could simply save the file at that point. But it sounds like you're concerned about preventing changes to the comments. If that's the case, rather than reprinting, you could assign some document permissions to the PDF to prevent people from changing the content. To assign that security, choose File > Properties and click the Security tab.
    I'm guessing here, because I'm not sure what process you're using, but it sounds as though that second iteration is being printed as an image. That would change the searchable text to an image, and could certainly cause the issue you're encountering.
    Best,
    Sara

  • Copy text from a PDF to word. Just get Symbols

    Hello,
    I have a public PDF with no Copying Restrictions. When I try to copy text from the PDF highlighted text to WORD I only get unreadable garbage.
    I can select the desired text and copy it into word but when I paste the text it is pasted like symbols and lines.
    I tried Special Paste and does not works. It says the font is a Gill Sans something (with numbers and so on), no really a font it seems but when i change it to Arial i still get symbols.
    Any help or ideas,
    Cheers,
    Sebastian

    I have this exact same problem.  It is very frustrating.  How is it not possible to "grab" onto the text in the pdf ??!!
    I am looking at it.  I can see it.  I can read it.
    I can highlight the individual letters and words with the mouse pointer. (So it's not just a "picture")
    With a pdf editor, I can even make the text bold, italic, or increase the font size.
    SO WHY CAN'T I COPY THE TEXT!   AAARGH!
    No, the file is not protected.
    Yes, I have tried saving as different formats.  (The "save as tiff file workaround" idea is  very time consuming and greatly degrades the quallity.)
    The font is shown as being: "Arial083.313"
    Something in the pdf program is recognizing the text, translating the 1's and 0's (that make up all computer files) into the letters that display on the screen that I can read and select with the mouse. So why can't that same "something" allow me to copy it?  So frustrating.
    Somebody please help.  If you can solve this problem you are awesome.

Maybe you are looking for

  • IMessage confusion! HELP!

    Hello all! I have an iPhone 5, which is on my families plan which contains 5 iphones all linked by the same apple id. for some reason, my mother and father's messages are getting mixed up. say I send my father a text message, he will get it, but so w

  • Restore from time machine after clean install of Mavericks

    I decided to do a clean install of Mavericks to get rid of all the very old files hiding in my system folders.  I made a startup disk following online instructions, rebooted from the USB drive and wiped the drive and reinstalled Mavericks.  Then I pl

  • 3TB Time Capsule Disk Error

    Just bought a new 3TB 4th Gen Time Capsule.  Have managed to get the wireless network up but cannot find the disk for time machine back up.  It comes up with an disk error message. Am I missing something or is the Disk damaged?  I thought is was supp

  • My podcast artwork is not showing in the iTunes store or in the Podcasts app

    My podcast, the Legal Seagull, was recently posted to iTunes. The problem is that the artwork is not showing in the iTunes store or on the iPhone's Podcasts app. Once you actually download the episodes, the image does appear. I verified that my image

  • SQL Plus REport Error

    Hi, There is an SQL Plus REport which was developed by someone else a couple of years ago. And now i pulled the code to make a few changes in the columns and put it back. Before i made the change i ran the report from the Oracle applications and ther