ME32K: read text before saving

Hi everybody,
I have checked some threads that I think could help me with my problem but I have no luck. My be somebody can help me...
I need to check a specific header text at ME32K transaction before saving. If the user complete it everything is ok, if not an error message appears. I solved this with an exit, but the problem is that the text is not saved at this point, I need to get it from memory and I'm not solving this point.
Do you have any ide to solve this?
Kind regards!

Uhm ok
That exit is developed for PO, so I've inserted my code in that exit:
DATA: L_NAME TYPE THEAD-TDNAME.
  DATA: TLINES TYPE STANDARD TABLE OF TLINE.
  MOVE I_EKKO-EBELN TO L_NAME.
  CALL FUNCTION 'READ_TEXT'
    EXPORTING
*     CLIENT                        = SY-MANDT
      ID                            = 'K01'
      LANGUAGE                      = 'I'
      NAME                          = L_NAME
      OBJECT                        = 'EKKO'
*     ARCHIVE_HANDLE                = 0
*     LOCAL_CAT                     = ' '
*   IMPORTING
*     HEADER                        =
    TABLES
      LINES                         = TLINES
*   EXCEPTIONS
*     ID                            = 1
*     LANGUAGE                      = 2
*     NAME                          = 3
*     NOT_FOUND                     = 4
*     OBJECT                        = 5
*     REFERENCE_CHECK               = 6
*     WRONG_ACCESS_TO_ARCHIVE       = 7
*     OTHERS                        = 8
  IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
Now I'm go to the header text, do a modification to the text ID K01 and press the CHECKING in order to trigger the exit.
If I run the process above in debug way, in table TLINES I can see the current text (so all modifications I've done)
Max

Similar Messages

  • Read header text before saving delivery during creation

    Dear All,
    Could you please suggest, how to read the header text before saving the delivery during creation.
    Regards,

    I dont think you can do it before saving the delivery but you can after saving the delivery.
    Check out the program MV50AFZ1 - There are two user exits "userexit_save_document" and "userexit_save_document_prepare" .
    To read the text (as far as i know), you will need the document number (user READ_TEXT function module).
    Document number is not available in user exit  "userexit_save_document_prepare" but it is available in "userexit_save_document" .
    I dont know what is your requirement but you can choose from the above options. You can read the text from save_document user exit but the delivery was already saved.
    good luck

  • Prin preview of item text before saving PO

    Hello,
    when I create a PO I can use the print preview of the PO before actually creating/saving the PO. However if I do this I can't see the item text. The item text is only visible in the print preview after the PO is saved.
    Do you know if it is possible to change this so I can see the item text before saving in teh print preview?
    Thanks
    Sofia

    You need to take ABAPer help and see the Print pre-view parameters maintained for the Script/Smartform for the PO Output Type you are using..
    If possible try to include the Item text into those parameters..
    As far as I know only for MEDRUCK script, we can see the print pre-view..

  • Tcode FV50: How to find long text in FI Document line item Before Saving.

    Hi,
    How to find long text in FI Document line item.
    During Parking of the FI document through Tcode FV50 i m giving the some text in the long text not in the text field.
    I would like to validate the Long Text Before Saving in user exit "U300" under  the  "Sunstitution" .
    Please anybody can be help me out where exactly this long text is going to be stored or in which internal table or memory id.
    Please give me the answer as soon as possible .
    Note:- Read_Text function module is not useful. Because Read_text useful after saving document.

    Hi Amit,
    In application area FINANCIAL ACCOUNTING , go for node LINE ITEM. Here create a step & maintain the prerequisite as per your requirement & in the check you can mention the code or you can direct it to a custom program like ZFI_RGGBR000.
    Here while maintaining the check you will get structures BKPF & BSEG in which you will get the desired field you are looking for.
    Just try to explore in your system how the other validations are maintained.
    After you are done with all your code, you have to run the regeneration program RGUGBR00.
    Here utmost care should be taken while running regeneration program, you should select all the checkboxes in the selection screen except  GENERATE SETS, GEN SUBSTN ROUTNS IN ALL CLNTS  & TRACE PROG. GENERATE CALLS .
    Hope this make your doubt clear.
    Regards
    Abhii

  • How to read header text in MM contract (ME31K/ME32K) before saving record?

    Hi All,
    In ME31K / ME32K (Contracts), before saving the contract I would like to check if the user has entered header text in the contract or not.
    I am using customer exit MM06E005.
    Can anybody help me with this?
    Thanks in advance.

    Try creating dummy text id which will be part of text determination procedure @ Customers sales text & document header text.
    else, maintain the SO10-text against this text ID. whenver user createds quotation this text will be defaulted irrespective of the cusotmer.
          then based on if user want to modify the text they have to enter manually in this text id. print this text in header.
    Regards,
    Reazuddin MD

  • How to read the status changed in crmd_order txn before saving it to DB.

    hello all,
    My requirement is to perform some checks after the user changes the status
    ( Before saving it to DB i need to do some checks )
    I could find the BADI and Fm's for checking conditions.
    My question is i need to check for a particular status change how do i trace that that particular status which i need to capture has been changed??
    i could see some FM's but it is only fetching the staus save in DB.
    how do i trace the status just after user changes before saving it to DB.
    it's an urgent requirement............pls help me on this..........
    pls get back to me if u want more  details.........
    Thanks,
    Shiva.

    Hello.
    Have you figured this out yet?  We are having the same problem.

  • How to check schedule line PO text before PO saving.

    How can i check the schedule line PO text before po saving. My idea is add a trigger in user exits. but i don't know how to check this data. I can't check the table stxh or stxl because those data are stored after PO saved. I think before that the data is stored in memory or somewhere. Could you give me some advise? thanks

    Hi
    Search for a correct user exit or BADI and you can check the text of the PO schedule line
    Use the READ_TEXT fun module to fetch the text by passing the parameters OBJECT,OBJECTNAME,ID and LANGUAGE and fetch it and check it
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Pop up Window before saving remembering the need (forcing) to fill required fields in a form

    Hi!
    I searched the "old" forum and have very good help from UVSAR but unfortunately I'm not able to access my message sent to that forum anymore.
    [I could never thank all the people who answered because I keep receiving "Your submission has triggered the spam filter and will not be accepted.""]
    I've have never use Java scripts in my life: I started about three days ago.
    1) I'm using Adobe Acrobat Pro X (Windows 7)
    2) I've created a form using Microsoft Word and save it as a pdf file.
    3) After I created a form using Acrobat Pro X;
    3.1.) This form it's not going to be submitted over Internet. It will be send by e-mail to some persons. They will receive it, fill in the form and send it back to me via e-mail. Note: I will save it with extended rights in order to allow to be read with acrobat reader (I'm the only one of the group having Professional edition).
    4) In that form I've created some text fields (for now it's just what I need - no radio buttons, dropdown
    menus, and so...)
    5) Choosed Properties and marked 7 fields as "required";
    6) Used a script I found in here: http://forums.adobe.com/thread/784322 (thank you for the authors of the thread)
    if (!event.target.valueAsString) {
    app.alert("My text My text", 3);
    7) This script allows me to remember people to fill that 7 specific fields (when using mouse or tab).
    8) So... What I really need? Here are the reasons for my request for help:
    8.1.) When people use the Acrobat Reader Save button (not a button I created inside the form) it will pop up an alert message. Users will receive a pop up window telling them they need to fill those fields before saving the form and send it back to me. Can someone share a script, please? Thanks in advance.
    8.2.) Is there a way to colorize the fileds that need to be filled? Again I only learned where to insert a java script yestaerday sou I'm not able to write one. I'm sorry for my newbie questions.
    8.3.) Last question: In one of the fields there will be an e-mail address. On the end of the form I want to create a button like "Send by e-mail" and When someone press that button the e-mail will be sent to the address that was written in the earlier specific field. How can I do this (link a button to an e-mail address in a specific field)? Can someone help me with a script or ideas? Hope I was clear.
    8.1.) UVSAR sent me the following code that works fine untill I save the document for the first time. Affter that he never shows me pop up window again.
    var isFilled = true;
    for (var i=0;i < this.numFields;i++){
    var f = this.getNthFieldName(i);
    if (this.getField(f).required && !this.getField(f).valueAsString) isFilled = false;
    if (!isFilled) app.alert("You must complete all the required fields");
    8.3.) With the help of UVSAR I used:
    var mailto = this.getField('emaddr').valueAsString;
    if (mailto!='') this.mailForm({ bUI:true, cTo:mailto, cSubject:"This is the subject", cMsg: "This is the body of
    the mail." });
    else app.alert("Cannot submit form until the email address field is completed");
    but gives me an error (Note: I named the filed with e-mail "emaddr")
    Once again Thank you so very very much to all the kind people who take their time to share knowledge...
    I'm not a native speaker, sorry for some errors
    Best regards
    AC

    Hi Winnie
    Unfortunately I have been sick and did not read the message before. I apologize.
    I have not received help beyond what is on the page. But when I get I tell you.
    I hope you can get answers. If you receive, I ask that you share with me.
    thank you very much
    best regards
    AC
    Date: Mon, 27 Feb 2012 09:33:10 -0700
    From: [email protected]
    To: [email protected]
    Subject: Pop up Window before saving remembering the need (forcing) to fill required fields in a form
        Re: Pop up Window before saving remembering the need (forcing) to fill required fields in a form
        created by Win_Form in Forms - View the full discussion
    Hi ACI wonder if you can share any responses on to your question above?I too have never used a script but, I have the same problems as you in regards to building a form. And wants to have the same 'protection' and message reminders for the end users. Any information, including a script and/or a contact email of experts you can share with me will help tremendously. Thank you so much in advance. Winnie
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4232307#4232307
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4232307#4232307. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Forms by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Save text and read text

    Hi all.
    i have a requirement to copy shipment instructions text from delivery to shipment in struction text in shipment when a delivery is added to a shipment.
    i can read the shipment text corresponding to the delivery using the fm read_text but when saving it to shipment i am facing a problem.
    my shipment number is not geneerated at that time.so how can i get the text read using read text to be seen in the shipment before it is saved.
    is there a way out?'
    regards

    Hi,
    Till the time it gets created you can not save text, because you need to have object name to pass into save_text function module.
    Regards,
    Satish

  • Can not under save as type, is not showing extentions before saving

    Can not under '''save as type''', is not showing '''extensions''' before saving / Options '''Save as type''' show only '''Vueprint''' or '''All files'''. Neither allow the visual aid. Thank you for your time.''''''bold text''''''
    Please advise. Don Fl

    If you have upgraded to Mountain Lion, Save As… has returned to the File menu when you hold down the Option/alt key. But you don't really "save" as other file types, you translate & export as Word or RTF or text or PDF & that is easily done by going to File > Export or Share > Export.
    Also, please do us all a favor & don't use all capitals in your posts, either the body of the post or the title. All caps is the internet equivalent of shouting & is very hard to read.

  • Hello, I am trying to use a photo,that I've opened up in pages on a blank landscape, taken from my camera roll and use it as album cover art. All the custom text's will not paste when I copy.  Pic and texts are saved as a PDF, how can I paste the doc ?

    Hello, I am trying to use a photo,that I've opened up in pages on a blank landscape, taken from my camera roll and use it as album cover art. All the custom text's will not paste when I copy.  Pic and texts are saved as a PDF, how can I paste the doc ?

    Hello, I am trying to use a photo,that I've opened up in pages on a blank landscape, taken from my camera roll and use it as album cover art. All the custom text's will not paste when I copy.  Pic and texts are saved as a PDF, how can I paste the doc ?

  • Read text from purchase order.

    I have few queries regarding texts in a document.
    1. How do i identify the id for a text of a line item in any PO document?
    2. Secondly a pgm is using read_text to get this text. before which 'stxh' is queried. But when i debugged i found that for a particular document there is no entry in this table though there is a text in the document and hence doesnot perform a read_text. The text is auto generated through info records. How to retrieve this text?
    Ans wil be appreciated and rewarded

    Hi Ravikumar thanks for u quick reply.
    This is wht is currently coded.
    concatenate values to get item text for read text function
       invar3+0(10) = invar1. "PO number
       invar3+10(5) = invar2. "PO line number
       SELECT SINGLE * FROM stxh WHERE tdobject = 'EKPO'
                                   AND tdname   = invar3
                                   AND tdid     = 'F01'
                                   AND tdspras  = sy-langu.
       IF sy-subrc = 0.
         invar4 = invar3.
    reading the text for the document items.
         CALL FUNCTION 'READ_TEXT'
           EXPORTING
             id       = 'F01'
             language = sy-langu
             name     = invar4
             object   = 'EKPO'
           TABLES
             lines    = it_itab.
    I have seen some PO's which have info rec texts in that, which gets pulled by the above code...first thing is its id is F02 which exist in STXH table also there is other text with F01 id, and hence the table it_itab gets both these text hence no pbm.
    but i came across a PO which has only one text which is info rec text with id F05 and is not store in stxh and hence doesnot get pulled by read_text fm. How do i change my cod to get this text which should not hamper other PO's as well.
    As mentioned in above msgs, this F05 could be retrieved by providing object name as EINE.
    anyhelp will be appreciated and rewarded.
    thanks

  • Check on vendor email address change before saving PO

    Hi All,
        I need to check Is there any change in Vendor Email address in PO before
    saving. I am trying to find userexits.
    I found some like EXIT_SAPMM06E_012, But here I am not getting complete
    Vendor address...
    Req: I am maintaing multiple email address for Vendor at PO header level.
    Here is the path:  PO Header --> Address tab --> Click on Address Details
    --> Here we can maintain(Insert/ Delete/Change) multiple e mail address.
    So I need to check is there any change in email address before saving.
    Could you please any body help me on this....
    Thanks
    Rays

    Hello Rays,
    One base question,
    Are you going to check the vendor email address manually before saving the PO?
    The vendor address in the puchase order is copied from the vendor master so you can maintain email address (single or multiple) in the vendor master before creating the purchase order. At the time of purchase order creation/save, you can change the default email address and use this to trigger PO to vendor.
    By the way, user exit EXIT_SAPMM06E_012  (Check Customer-Specific Data Before Saving) is used for custom field not for SAP std field.
    Hope this helps.
    Arif Mansuri
    Reward the points if answer is helpful.

  • How do I add a validation prompt before saving a form?

    Hello
    I have a registration form for a family camp. The first page collects the personal information and the second page calculates a financial total. I don't have LifeCycle and designed this using Adobe X Pro. I use a third party data extractor tool for forms returned to move the typed information into Excel. The problem I'm running into is a lot of people don't scroll and complete the second page of the form before saving and submitting it. This results in incomplete information when we extract to Excel and more work for us to process the application.
    My thoughts are this could be partially remedied if the user received a prompt when they go to save the form or after a certain field was completed (perhaps clicking the "I agree" button) that asks them to double check to make sure they completed the second page. Similar to how if they try to type in letters in the phone number field they receive a message that they can only use numbers.
    The problem I'm having is I have no idea if we can create a prompt when someone goes to save the form, or if I can trigger a prompt for after someone completes a particular field and how to go about doing either? Does anyone have any suggestions on how I can accomplish this or where I can look to for some further help?
    Thanks!
    Neil
    PS Here's the form I'm working on - http://accwesterncamp.com/wp-content/uploads/2015/03/Western-Camp-Application-2015-Fillabl e.pdf

    Sorry for the link that turned bad above. Here's a functional one: http://accwesterncamp.com/wp-content/uploads/2014/10/Western-Camp-Application-2015-Fillabl e.pdf
    Ultimately I have decided against continuing to work with a PDF fillable. The functionality I ultimately wanted was too cumbersome. In doing additional research I came across Adobe Forms Central which is being decommissioned. In the FAQ section I found a recommendation for an online form design service called Cognito which I ultimately decided to go with. This service allows registrants to register multiple people, pretty robust form logic, and process payment all at one go. The cost is very small too. If you would like to see how the digitization and online processing of the form turned out you can see it here: http://accwesterncamp.com/registration/
    Thanks for all the help and recommendations in the forum though!

  • Incorrectly coloured text when saving to .PDF using Photoshop CS4

    I am using Photoshop CS4 on Windows 7, and have designed my own business card.
    When saving to .PDF to send to printers I am finding that a small section of text is saving with a white section to it, for example out of the 3 lines of text on the card the bottom left hand corner of the & sign I have in the design is coming out white, the rest of the text is a golden colour.
    I have tried searching on this forum and on google but can't seem to find anyone with my actual problem so unsure where to go.
    Any help much appreciated.
    Thanks

    Mylenium wrote:
    Well, you could change the native text color instead of using layer styles, could you not?
    Mylenium
    Or make the Type and Hyphen layers into a single Smart Object and clip a yellow layer to it.

Maybe you are looking for

  • How do I connect my new iMac to Apple TV

    I recently bought a new iMac and I want to connect it to my old Apple TV from 2008. How does iTunes see the Apple TV?

  • How do i set-up ipad nano for other user?

    Hi, I want to buy my boyfriend an ipod nano for his birthday and set it up for him with all my music. I have a mac and he has a pc. How do i ensure that when i plug the nano for the first time it doesn't wipe all my songs? also can i set it up for hi

  • OEM and TNS-01169

    I'm trying to connect to a 10gR2 database (via OEM) that has a password protected listener. After configuring/starting dbconsole, OEM shows that the database instance is up, however I'm getting TNS-01169 "Listener has not recognized the password". I

  • COM_PARTNER_BADI

    Hi All, I am implementing the BADI for partner determination. I am using the Method 'DETERMINATION_ADD_IN_2'. When I enter sold-to-party and press enter this method triggers. I thought i can pass the partner functions to the export parameter of this

  • LabVIEW Software Programmer and Project Lead in Overland Park, KS

    JET Engineering Inc. is a System Integrator for test measurement and control. Corporate office located in Cedar Rapids, IA with branches in KS, MO, NE.  Looking to expand into the Overland Park, KS area. ISO 9001:2008 certified. Job Summary:  Custome