ME21N check for header text in user exit

Hello,
Does anyone know if/how I can see header text contents for a PO prior to its saving in ME21N? I have made my other checks prior to saving in EXIT_SAPMM06E_012, but I also want to validate the contents of the header text. This is a 46C system.
Thanks!
Jeff

Hi,
Each text in the tab is stored in the form of longtext you will have to read the texts with function module READ_TEXT. Currently not in front of the system to give you exact paramters for function module. Would suggest putting a break-point at READ_TEXT function module and then start the transaction. You will see that it will stop for reading the texts. The initial select that the text exists or not is on STXH table.
thanks

Similar Messages

  • How to get header text in user exit for sales order

    Hello all,
    My requirement is that I get and modify the header text in user exit when creating a sales order. In the user exit I'll do some validation and put the error code into header text. But I can't use function 'READ_TEXT' to get header text since the text has not been updated into database.
    Can anybody help me? point will be rewarded. Thanks in advance.
    regards,
    --Alex

    Use the following internal tables. These internal tables are declared in include <b>THEADDAT</b>. THEADDAT is an include of  <b>MV45ATOP</b>.
    THEAD,                
    TLINE.                       
    TVCOM,                      
    TTXID,        
    TTXIT,
    TTXOB,              
    TTXOT          
    I hope it helps.

  • Table For Header Text Old Value

    Hi,
    Could Anyone helpme in finding the table for Header text of the PO , as We know  to find the current PO Header Text,by usinf th FM READ_text but i want to to find the header text for the po before Updated , Thanks in advance
    Regards
    Priyanka M Jain

    Hi,
    I believe that you need the text just after entering in PO during the runtime.
    just enter the text and go in the debugg mode, check for table text / textline in the global parameters and you will find the text.
    Hope this helps,
    Raj

  • Need to display error meesage for Tcode MD50, Any User exit???

    Hi,
    For Tcode MD50, We have to give the input  sales order number and Sales Order Item number and press enter, It gives detail output for MRP.
    Here After giving the input sales order number and Sales Order Item number , when we are pressing enter I need to display a error message at status bar based on sales order number.Is there any user exit or badi for the same?
    Please help me. I am using ECC5.0 version

    Hi ,
          These are userexits
    SAPLATPC-LATPCU02     EXIT_SAPLATPC_001     ATP00001     User Exits in the Availability Check
    SAPLATPC-LATPCU02     EXIT_SAPLATPC_002     ATP00001     User Exits in the Availability Check
    SAPLCUD0-LCUD0U08     EXIT_SAPLCUD0_003     CCUX0100     Synchronization of Variant Configuration Initialization
    SAPMM61X     EXIT_SAPMM61X_001     M61X0001     User exits PP-MRP materials planning

  • Condition for header text heading

    Hi
    in sales order smart form i have created text element(include text) for including header text named SPECIAL INSTRUCTIONS. i have proveded all the parameters like text name, text ID, Text object..
    how can i restrict the heading for this text (i.e i want the heading special instructions to be appeared only when the text is maintained for that ID 
    Regards
    DB kumar

    Hi,
    You can not maintain a standard text without a single line.
    But, by default, default paragraph , i.e. (*)  will come in that column which means an EMPTY TEXT LINE is entered.
    If you want to check for the empty text line, then do  th efollowing.
    1. insert code lines . Take a global field : flag type c.
    tables: stxl.
    select single * from stxl where TDNAME EQ 'ZTEST_RAM'.
    if sy-subrc eq 0.
      if stxl-CLUSTR gt 81.  " when no line is maintained , stxl-CLUSTR = 81. else stxl-CLUSTR > 81.
        flag = 'X'.
      endif.
    endif.
    2. For Heading Text ,  Maintain condition with flag as u required.
    Thanks & Regards,
    Ram.

  • Wht is TEXT ID for Header Text in a Purc. Order?

    Hi Experts,
    Am looking to dispaly the header text of my_purchase order into a report, by using READ_TEXT.
    But. am unable to figure out the TEXT ID for this HEADER TEXT for my_PO.
    So,
    1 - Wht is TEXT ID for it? ok, after some reasearch , i came to know that, its F01.......so, how to know the F01 is for header text? i know how to know this for sales order!!
    2 - In which tables stiores all thsese info?
    replies appreciated.
    thanq
    Edited by: SAP ABAPer on Oct 14, 2008 9:27 PM

    Rob's Suggestion is the best way to find that out.
    One other way is to Double click on the Text area. This will open a text editor.
    Then Navigate to Goto->Header. This should give you the required Info.

  • ABAP-Programming for SAP BW u0096 User-Exits und BAdIs

    Hi experts,
    i am a novice und looking for informations about Badi and User-exits for BW .
    i want to learn how to programm extractors.
    Can you you help me by giving me some informations or documents or sap links where i can find informations?
    Cheers

    Dear Mr Herzog,
    Congratulations for the book: Abap Developement for SAP Netweaver BI: User exits and BadIs.
    We're trying to implement the suggestions on the chapter 5.1.1 Interface of function module EXIT_SAPLRSR0_001 (page 136), however, we're having problens with the abap sintax CALL_FUNCTION  l_d_name IF FOUND.
    The command IF FOUND is not accepted.
    It'll be very helpful to avoid issues on tranporting include zxrsru01.
    I appreciate any additional help on how to implement it.
    Best Rgs
    Eliseo Bouzan

  • Table for Valuation Price from USER EXIT - Cost Estimation

    Hi All,
    Can you let us know from where the system picks the price for VALUATION PRICE from USER EXIT when we have following setting in valuation variant
    1.Valuation Price from USER EXIT
    2.Price from Purchasing Info Records
    3. Planned Price 1
    Sub Stratergy.
    1.Effective Price from Purchase Order
    2. Net Quotation Price
    3. Gross Quotation Price.
    Now when we execute CK11N for a material, the system displays a cost price as 316 Euro/ unit.
    But Standard price is 290 euros, info record price is 294 euros & planned price 304 euros.
    Our previous cost estimation ( period 1, current period is 5) was 316 euro/unit (which was not correct), so deleted the cost estimation with CKR1 and try to rerun the cost estimation to update the value (new price), but still the system is picking the old price.
    Can you let us know from where does(transaction code & table) the system is picking the old values.
    In CK11N Material valuation (Valuation tab) its showing as Valuation Price from USER EXIT.
    We have activated Material Ledger with price control "s"and we in ECC 6.0.
    Do suggest.

    Hi,
    Where & how can i find the exit.
    Do suggest.
    Regards,

  • Preflight check for invisible text?

    Hello!
    While there is an indicator for overset text in Indesign preflight, is it also possible to check for "invisible" text?
    This will give a warning if objects, e.g. a picture or colored box, are placed over text (witout text wrap).
    Have a nice day
    Maggern

    I suppose I shouldn't say that, since so many things actually are possible via scripting. I'd ask over in the ID scripting forum (InDesign Scripting). Seems like one approach might be to look for objects that fall within the geometric bounds of a text frame.

  • Problem for Header text of Contracts

    Hi guys,
    a suggest:I have created in customizing a new header text and I want display and manage it on header of contract but when I create the contract see always the standard header texts 'release order text', 'header text','header note' 'pricing type' 'deadlines' but my own header text number 17 there is not.
    i have simply entered in customizing Contract>Texts for Contracts>Define Text Types for Header Texts and I have created the text with sequence numeber 17...how can I display it in header of contract?
    I have seeked for in this forum but in all messages on text I don't find this problem
    Thanks in advance
    Bye

    Hi,
    am adding up...........
    Please refer the below link......
    http://www.sap-advisor.com/abap-coding/sap-text-administration-and-info-records-for-purchase-orders/
    Hope it may help you...
    Venkat.

  • User Exit / BADI for Header Text in IW21

    Dear All,
    I have an requirement to update a header text of IW21 (Creating Notification) with some condition, ie., Header Text should be updated with different text (some information along with entered text) depends on Notification type and Functional Location.
    Is there any User Exit / Badi to do this ?
    Could any one help on this regard ?
    Thanks and Regards,

    Hi,
    Below are the exits for the Transaction Code - IW21.
    Exit Name Description
    IWO10026 User check on setting status 'Do not perform'
    IWO10027 User exit: Generate user-defined settlement rule
    IWOC0002 PM/SM notification: Check whether status change is allowed
    IWOC0003 PM/SM authorization check of ref. object and planner group
    IWOC0004 Change single-level list editing PM/QM/SM ALV settings
    IWOC0001 Create PM/SM notification: Determine reference object
    Check each which can server your purpose.
    May be EXIT_SAPMIWO0_020 might suit your purpose.
    Regards,
    Vijay V

  • Detecting change on header and item texts for sales order in user exit

    Hi,
    In the user exit of VA02, I need to identify/detect if header or item texts for sales order is changed or not.
    Please advise on this.
    Regards,
    Shreyas

    Normally system stores the old values in XTables and new values in YTables.  Check if you have access to these in your user exit.  If you give the user exit name, someone will be able to guide you.
    hith
    Sunil Achyut

  • SAP Standard Workflow for PR Release (with user exit)

    Hi SAP WF Gurus,
    Good day!
    I just wanted to check with you if you have ever used a user exit in the activation of the standard workflow for PR (overall ( release. What we have is a two0step approval process wherein each level has a proxy/alternate approver. We used the available user exit to accommodate this customer requirement since the standard release would only allow us to define 1 approver as a prerequisite for the next level. We were able to execute this on the first level approval; however, we observed that the workflow is not anymore triggered (i.e. does not send work items to agents) for the level 2 release. My questions therefore are:
    1. How to set up SWEC? I already executed SWELS and SWEL to check if the events are being created and event linkage is automatically deactivated after running into an error regarding the binding...My initial SWEC setup is for BANF BUS2105 RELEASED On Change. I am assuming that since the workflow was released from the first level, this should be the starting point
    2. How to rectify the binding error? I already executed automatic binding in the WF header for the start events but still face it
    Your inputs/comments are most welcome
    Regards,
    DeLo

    Just to add:
    The error that I am encountering in the second run/cycle for the PR approval workflow is Import container contains errors (are any obligatory elements missing?)
    Basically, WS20000077 will be executed if an approval level is seen. Once the approval is made, then the workflow is also completed. However, for multiple approvers, I only get to execute successfully the first level approval. The succeeding levels are encountering errors as stated above

  • How check characteristics values in material user exit

    Hi Forum,
    we want to check characteristics values if a new material is created. All the other check we do we use the User exit  EXIT_SAPLMGMU_001 (abap ZXMG0U02). But it is not possible to check the values a user entered here. Do somebody of you have an idea?
    Regards
    Berthold

    try to use:
    BADI_MATERIAL_REF Addition of customer-defined default data for material
    BADI_MATERIAL_CHECK  Enhanced checks for material master table
    WSTRN_STYLE          BAdI to get the text for a char. value defined in check
    BADI_MM_MATNR
    pls. reward points if helpful
    regards
    Roberto

  • How to find T-codes for a list of User exits

    Hi All,
    We have been provided with the list of user exits found in the system. I need to find the T-codes where these user-exits have been used.
    Can anyone provide pointers for this?
    Thanks and Regards,
    Sridevi Sridhar

    use logic of the program....
    *& Report  ZCG_USER_EXIT_FIND
    *&    Utility program to find out the User Exits within a transaction
    REPORT  ZCG_USER_EXIT_FIND.
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
             tables : tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode obligatory.
    select single * from tstc where tcode eq p_tcode.
    if sy-subrc eq 0.
       select single * from tadir where pgmid = 'R3TR'
                        and object = 'PROG'
                        and obj_name = tstc-pgmna.
       move : tadir-devclass to v_devclass.
          if sy-subrc ne 0.
             select single * from trdir where name = tstc-pgmna.
             if trdir-subc eq 'F'.
                select single * from tfdir where pname = tstc-pgmna.
                select single * from enlfdir where funcname =
                tfdir-funcname.
                select single * from tadir where pgmid = 'R3TR'
                                   and object = 'FUGR'
                                   and obj_name eq enlfdir-area.
                move : tadir-devclass to v_devclass.
              endif.
           endif.
           select * from tadir into table jtab
                         where pgmid = 'R3TR'
                           and object = 'SMOD'
                           and devclass = v_devclass.
            select single * from tstct where sprsl eq sy-langu and
                                             tcode eq p_tcode.
            format color col_positive intensified off.
            write:/(19) 'Transaction Code - ',
                 20(20) p_tcode,
                 45(50) tstct-ttext.
                        skip.
            if not jtab[] is initial.
               write:/(95) sy-uline.
               format color col_heading intensified on.
               write:/1 sy-vline,
                      2 'Exit Name',
                     21 sy-vline ,
                     22 'Description',
                     95 sy-vline.
               write:/(95) sy-uline.
               loop at jtab.
                  select single * from modsapt
                         where sprsl = sy-langu and
                                name = jtab-obj_name.
                       format color col_normal intensified off.
                       write:/1 sy-vline,
                              2 jtab-obj_name hotspot on,
                             21 sy-vline ,
                             22 modsapt-modtext,
                             95 sy-vline.
               endloop.
               write:/(95) sy-uline.
               describe table jtab.
               skip.
               format color col_total intensified on.
               write:/ 'No of Exits:' , sy-tfill.
            else.
               format color col_negative intensified on.
               write:/(95) 'No User Exit exists'.
            endif.
          else.
              format color col_negative intensified on.
              write:/(95) 'Transaction Code Does Not Exist'.
          endif.
    at line-selection.
       get cursor field field1.
       check field1(4) eq 'JTAB'.
       set parameter id 'MON' field sy-lisel+1(10).
       call transaction 'SMOD' and skip first   screen.

Maybe you are looking for