Miro: When enter op number,fill a special value into  SGTXT automatically

Hi guys
   When user inputs the PO number, PO description will be filled into the field TEXT on the line item automatically. So user can view it
  After my testing again and again, I did not find there is an optional user exit or badi(listed below) to meet this requirement.
It would be great enough if you can help me resolving this issue ASAP.
BADI:      invoice_update
User Exit:
LMR1M001            User exits in Logistics Invoice Verification
LMR1M002            Account grouping for GR/IR account maintenance
LMR1M003            Number assignment in Logistics Invoice Verification
LMR1M004            Logistics Invoice Verification: item text for follow-on docs
LMR1M005            Logistics Inv. Verification: Release Parked Doc. for Posting
LMR1M006            Logistics Invoice Verification: Process XML Invoice
MRMH0001            Logistics Invoice Verification: ERS procedure
MRMH0002            Logistics Invoice Verification: EDI inbound
MRMH0003            Logistics Invoice Verification: Revaluation/RAP
MRMN0001            Message output and creation: Logistics Invoice Verification
Thanks a lot.
-Daniel

i have fix the bug.
IF_EX_AC_DOCUMENT~CHANGE_INITIAL
IF NOT sy-tcode = 'MIRO'.
    EXIT.
  ENDIF.
Variant
  FIELD-SYMBOLS: <fs_table> TYPE ANY TABLE,
                 <fs_line>  TYPE ANY,
                 <fs_ktosl> TYPE accit-ktosl,
                 <fs_buzid> TYPE accit-buzid,
                 <fs_sgtxt> TYPE accit-sgtxt.
  DATA: lv_sgtxt TYPE accit-sgtxt.
Get the SGTXT value on the Basic data tab
  ASSIGN ('(SAPLMRMP)XACCIT[]') TO <fs_table>.
Checking the field symbol
  IF <fs_table> IS NOT ASSIGNED.
    EXIT.
  ENDIF.
  LOOP AT <fs_table> ASSIGNING <fs_line>.
    IF SY-TABIX = 1.
      ASSIGN COMPONENT 'SGTXT' OF STRUCTURE <fs_line> TO   <fs_sgtxt>.
      lv_sgtxt = <fs_sgtxt>.
      EXIT.
    ENDIF.
  ENDLOOP.
  IF lv_sgtxt IS INITIAL.
    EXIT.
  ENDIF.
Fill the long text(SGTXT) into the tax item line
  LOOP AT <fs_table> ASSIGNING <fs_line>.
    ASSIGN COMPONENT 'BUZID' OF STRUCTURE <fs_line> TO   <fs_buzid>.
    IF <fs_buzid> = 'T'.
      ASSIGN COMPONENT 'SGTXT' OF STRUCTURE <fs_line> TO  <fs_sgtxt>.
      IF <fs_sgtxt> = space.
        <fs_sgtxt> = lv_sgtxt.
      ENDIF.
    ENDIF.
  ENDLOOP.
Thanks a lot.

Similar Messages

  • Invoice and Invoice amount in FI/CO When enter check number

    Hi  All,
       I have a requirement like this. We have custom t-code ZF04 ( FAST CASH ) to post payments to customer accounts. In this t-code, we have one field for Check#.  When they enter Check# number and click on 'SEARCH' icon i need to display list of invoices and amounts with in a check.
    I have no idea about tables,. Where to look? What tables do i need to look when enter check number, which returns invoice details.
    Please let me know ASAP....
    I appreciate your help!
    Thanks,
    Suneetha

    Hi,
    One question - Are you getting customer payment trrough <b>LOCKBOX</b>? If yes, then following are the tables
    Check tables <b>FEBKO</b> and <b>FEBEP.</b> The field is <b>FEBEP-CHECT</b> for check number. For this check number take <b>FEBEP-KUKEY</b>. With this KUKEY read table FEBRE. <b>FEBRE-VWEZW is the invoice number</b>.
    So, sequence is
    1. Put Check# --> FEBEP-CHECT  and get FEBEP-KUKEY
    2. Put FEBEP-KUKEY into --> FEBRE-KUKEY
    3. FEBRE-VWEZW is invoice no.
    If you are not using LOCKBOX, How are you getting customer payment? Let me know so i can give you exact answer.
    Regards,
    RS

  • Material desc automatically filled when enter material number  using SM30

    Hi all,
    I have  created Z table with fields material number(MATNR) and material description. Iam maintaing table using SM 30 transaction. If  I enter material number  the material description automatically filled when press enter button.
    Is there any solution for this
    Thanks
    Sudarsana

    Hello,
    whenever you create a maintainance for a table an SAP program is generated which will have the name SAPL(name of the function group to which the table is assigned)....you can go directly to the program inside SM30 by clicking on the top menu -> system -> status ->program name and screen number
    inside SM30 go to the screen where you have to see the description(based on 1step and 2step ) and note the screen number and program name
    once you go the program -> go to the particular screen -> and confirm the screen
    inside the PAI or PBO
    write the code :
    if Material number is not initial.
    select and put material description into the screen field for text.
    else.
    clear the value for text in screen field
    endif.
    Disadvantages : whenever you create a new maintainance by using the table maintainance generator the code is over written
    solution:the screen code will be always over written..but inside the SAPL program when you create the PBO/PAI make an include and save it...when regenerating the include will not be over written but you will have to go to the screen flow logic and give the name of the PBO/PAI modules
    A table once finalised will not require regenerating the maintainance again but this is a draw back ...but the solution just provided is the widely accepted and followed one
    Reward if useful
    Regards
    Byju

  • Error when entering serial number to redeem digital copy.

    I recieved an error when entering the serial number for my digital copy of Juno and have been unable to download the digital copy into itunes.
    However I have since recieved a reciept from apple for the "purchase". Can the serial number be "unclaimed" so I can reenter and redownload the the file. Or will "check for purchases" simply restart the download if I have the Juno disk in the drive.

    The error was "Unable to connect to iTunes Music store .....". Which was not the case since I could quite happily move round the rest of the store.
    I haven't attempted "checking for purchases", since I just thought of it whilst writing the original post, and I am not at my home PC.
    But thanks for the sarcastic response anyway . I was hoping someone who had had a similar problem to me would be able to say. "Yep check for purchase will restart download process" or otherwise say nope , you've got to call apple. Hence the original question.
    Message was edited by: mlockley

  • BBP_GET_STATUS_2 only works when entering SC number

    Hi all.
    SRM 4.0.
    I am seeing some strange behaviours in my system these days. The job BBP_GET_STATUS_2 is set up in batch to run every 5 minutes, but now I am seeing issues where the documents are not properly updated in SRM.
    The case is that in the user's Goods Receipt screen they have the list of purchase orders that are relevant for GR - once the GR has been posted, the PO will disappear from the screen. However, nowadays many POs do not automatically remove themselves from the users' GR screens. When I run the job BBP_GET_STATUS_2 manually and entering the SC number(s) everything works. So it seems the job is not working very well if no SC numbers are maintained in it.
    Has anyone else seen this type of strange behaviour? It seems strange to me that this should not be working in batch runs where it would make no sense to type in the SC numbers.
    DM

    Hi there.
    I have a batch running every 5 minutes with the steps
    CLEAN_REQREQ_UP
    BBP_GET_STATUS_2
    and the spool list tells me:
    Update Successful
        ...            6.466  Data Records Updated (SC Rows)
        and                0  Data Records Created (References)
    So this should be fine, right? But it is still not removing the purchase orders from the GR screen after this. What could be causing this?

  • Getting Message "the code you entered is invalid. Please try again" when entering serial number.

    I keep getting the message "The code you entered is invalid. Please try again" when I enter my serial number. My hard-drive/computer was completely wiped but I bought Adobe CS and still have my proof of purchase. I am unable to redeem my purchase and re-download.

    Which product and version does this concern?  What do you mean  when you say "unable to redeem my purchase" ?
    If the code you are entering is not a set of 24 numbers (only numbers), 6 sets of 4 digits,  then it is not the serial number.

  • When entering a number to dial, how is a + entered in the number?

    This must be an easy question to answer - unfortunately I can't! I have a need to enter a PLUS in front of an international phone no. The ZERO button doubles a the + button but I can't figure out how to not enter the zero. I looked in the manual and don't see any info on this.
    Thanks, Bob

    Thanks for the prompt answer.
    These APPLE forums are great!

  • Freehand MX Shuts Down After entering serial number

    I have located the page on the Adobe site with all the serial numbers for unsupported Macromedia apps. When enter the number for Freehand MX, after following the instructions, Freehand immediately shuts down. When I try to reattempt this, there is an existing serial number in the fields and it starts with WPD700. I see no suggested serial numbers on the Adobe page starting with WPD....could I have a student version? Does that matter? Thanks!

    I used this link to get the serial numbers...
    http://helpx.adobe.com/x-productkb/policy-pricing/macromedia-legacy-activation-error.html

  • How to assign values to textbox automatically when cursor position changed

    I want to get values based on the values entered in the one textbox when we change the cursor position the value to be automatically loaded in to other text box is it possible please help me .....

    You still haven't explained what a text box is.
    Repeating what you've already said in "BOLD" text doesn't make the question any clearer.
    What does the changing cursor position have to do with anything. I can use the arrow keys to move the cursor without changing the text.

  • I cannot use the Lion up-to-date program! I bought my MBP on June 8 and when entering the serial number says ineligible! Thanks!

    Thats the deal, i am a qualifiyng user for the Up To Date Program, and when entering the serial number of my MBP it says i am ineligible. I already tried with the form that had to be filled up if the direct method didn`t work and it has the same issue. My only possible explanation is that it seems they recently added a date limit for the submission of an order to get Lion free (July 19), which makes me be very disappointed with Apple because in the first communication about the up to date program they listed: "Customers who purchase a qualifying Mac between June 6, 2011 and the date when Lion is available in the Mac App Store will have 30 days from Lion’s official release date to make a request" .
    Please help me, I am from Chile and my sister bought the MBP to me by the Apple Online Store, so I can`t personally go to an Apple Store to explain my problem.
    THANKS!

    Muchas Gracias!
    Pero dejame hacerte otra pregunta... No entiendo porque sale ahora lo de "submit before july 19th" si es que en un principio dijeron que uno tenia 30 dias desde que saliera Lion para los que compraran despues del 6 de Junio. Esa es mi gran angustia en verdad, no me importa esperar, pero me daria mucha rabia haber perdido la oportunidad de descargarlo gratis. Tu llenaste alguna orden o algo similar antes del 19 de Julio? Yo no hice nada parecido, sin embargo cuando me meto a la parte de la garantia con mi serial number me sale que mi MBP esta activo y registrado y todo.
    Disculpa las molestias, y nuevamente muchisimas gracias!
    P.D: No puedo llamar a Apple porque aca en Chile no esta la Apple Store oficial, es un "authorized reseller" y se llama MACONLINE, asi que no se si ellos me puedan ayudar.

  • When entering my phone serial number it shows "We're sorry, but this is a serial number for a product that has been replaced. Please check your information and re-enter your serial number. If your information is correct, you may need to contact us."

    Hi,
    I had purchased an iPhone 5 last month and got the OS updated to iOS 7, yesterday.
    The data cable was of very bad quality and when I took it to the retailer for replacement, they said that its not covered under the one year warranty.
    Secondly, I have also been experiencing network coverage issues with this phone. So, I decided to contact apple care through the web. When entering my serial number/IMEI it says, "We're sorry, but this is a serial number for a product that has been replaced. Please check your information and re-enter your serial number. If your information is correct, you may need to contact us."
    Does anybody have any idea what the reason behind this could be.
    - First time with iPhone and frustrated.
    Briju

    If you purchased the iPhone from Apple or an authorized Apple reseller,
    contact them for assistance. If you purchased elsewhere, go back
    to that retailer and get them to give you a new iPhone or your money
    back.
    If you have checked the serial number carefully and re-entered it
    and that gave you the same error message, contact Apple if purchased
    from Apple or authorized retailer; otherwise you have been scammed
    and need to pursue the matter with the business you obtained the
    iPhone from.

  • How do I make form or table where certain numbers update according to a formula when the user enters one number?

    Hi, I am an amature website designer and have made a website
    using dreamweaver. I am very lost when it comes to doing tougher
    things in dreamweaver. I want to create a small form or a table
    where there will be 7 or so numbers that are generated based on
    simple formulas for each one once you enter one number. Can someone
    please help me with this task whether it is in dreamweaver or even
    making it out of flash or anyway that this would be the easiest to
    make possible. Thanks

    Here's a very simple form you could use to perform a
    calculation, it this case, squares the input value and writes it
    back to another input field... Hopefully you can use this as a
    pattern to apply your own algorithm. You'll need to do validation
    to assure the entered fields are appropriate for the calculation
    (required fields are entered).
    Hope this gets you started.
    ================================================
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta content="text/html; charset=utf-8"
    http-equiv="Content-Type" />
    <script type="text/javascript">
    function squareit() {
    var num = document.getElementById('myinput');
    var res = document.getElementById('myresults');
    res.value = Math.pow(parseFloat(num.value), 2);
    </script>
    </head>
    <body>
    <form id="myform">
    <label for="myinput">Number: </label><input
    id="myinput"><br/>
    <label for="myresults">Result: </label><input
    id="myresults"><br/>
    <input type="button" value="Calculate"
    onclick="squareit()"/>
    </form>
    </body>
    </html>

  • How to stop iphone 4s from putting a space after the second digit, when entering a text number from the keypad

    How do I stop the iphone 4s from putting a space after the second digit, when entering a text number from the keypad. Entering a text number on the key pad like 61998 comes out on the screen as 61 998 and the sms fails to go.

    The space (or lack thereof) should have no effect on whether or not the SMS goes through. The spacing is intended to make it easier for the human eye to comprehend the number. I'd start by resetting the network settings in General>Reset>Reset Network Settings.

  • Distribution Window Closes when entering a large number of Distributions

    When entering distributions (around 20-30 or so, but no specific number) for an invoice, the distribution window closes without warning. The distributions are saved but the process is unreliable. See the attached documents for the errors given.
    The first error is not really an error so much as the message Oracle gives when it is trying to catch up, "Press cancel to end this database operation". This message will linger for about 3-5 seconds then the message along with the distribution window suddenly close.
    When you go to click on the distribution button immediately after the window closes a second error appears: APP-SQLAP-97734: The system cannot generate distributions for line 1 because: Verify line does not contain distributions: line already has distributions"
    There is no specific dollar amount or number of distributions where this error occurs. It does not happen all the time when we have a large amount of distributions but enough to make entering a large amount of distributions a cautious activity slowing data entry.
    Any Ideas?

    Hello.
    Have you checked MOS DOC Id 823787.1 ?
    Hope this helps.
    Octavio

  • How do i get the date when enter a week number

    Hi, can anyone tell me how do i get the date when enter a week number??
    let say, i enter week number 4 and year 2008
    result=26-01-2008
    thanks..

    import java.util.Calendar;
    public class testCalendar {
         public static void main(String args[]){              
              int year=2008;
              int week =5;
              Calendar now=Calendar.getInstance();
              now.set(Calendar.YEAR,year);
    now.set(Calendar.WEEK_OF_YEAR,week);
              System.out.println(now.getTime());          
    hai, anyone know why i can't get the result:27-01-2008
    i always get two day later. That is 29-01-2008
    no wonder how i change the week number and year.
    for example: week=7, year=2007
    expected result:11-02-2007
    but the result is 13-02-2007
    thanks..
    Edited by: Angel_Wei on Sep 1, 2008 11:58 PM

Maybe you are looking for