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

Similar Messages

  • Trigger delta and extract header and item texts for sales order

    Hi,
    I need to force a delta as well as extract the header and item texts when any (and only) change is made on the sales order texts.
    Nothing else is changed on the order except the header or item texts.
    Please advise how this can be achieved in the user exit of the VA02 transaction. Please suggests suitable FMs that could be explored.
    Thanks
    Shreyas

    Hi,
    I need to force a delta as well as extract the header and item texts when any (and only) change is made on the sales order texts.
    Nothing else is changed on the order except the header or item texts.
    Please advise how this can be achieved in the user exit of the VA02 transaction. Please suggests suitable FMs that could be explored.
    Thanks
    Shreyas

  • Header and Item Texts for Sales Order

    Hi,
    Can any one help me on Header Text and Item Text...........
    <b>STXH & STXL</b>
    TDOBJECT :__________
    TDID:_____________
    TDNAME :_______________
    Regards,
    Raghunath.S

    Hi
    Double click on the related text
    it will open Text editor
    from Menu GOTO-> header
    for SO HEADER Texts
    then you see the 4 paramters like OBJECT (VBBK),ID,OBJECTNAME (sales Order No) and LANG
    FOR SO ITEM texts
    OBJECT (VBBP table), ID, OBJECTNAME(SO no plus ITEM No) and LANG
    You have to pass these 4 parameters to READ_TEXT fun module to fetch the corresponding texts
    see the doc on READ_TEXT
    READ_TEXT
    READ_TEXT provides a text for the application program in the specified work areas.
    The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.
    After successful reading, the system places header information and text lines into the work areas specified with HEADER and LINES.
    If a reference text is used, SAPscript automatically processes the reference chain and provides the text lines found in the text at the end of the chain. If an error occurs, the system leaves the function module and triggers the exception REFERENCE_CHECK.
    Function call:
    CALL FUNCTION 'READ_TEXT'
    EXPORTING CLIENT = SY-MANDT
    OBJECT = ?...
    NAME = ?...
    ID = ?...
    LANGUAGE = ?...
    ARCHIVE_HANDLE = 0
    IMPORTING HEADER =
    TABLES LINES = ?...
    EXCEPTIONS ID =
    LANGUAGE =
    NAME =
    NOT_FOUND =
    OBJECT =
    REFERENCE_CHECK =
    WRONG_ACCESS_TO_ARCHIVE =
    Export parameters:
    CLIENT
    Specify the client under which the text is stored. If you omit this parameter, the system uses the current client as default.
    Reference field: SY-MANDT
    Default value: SY-MANDT
    OBJECT
    Enter the name of the text object to which the text is allocated. Table TTXOB contains the valid objects.
    Reference field: THEAD-TDOBJECT
    NAME
    Enter the name of the text module. The name may be up to 70 characters long. Its internal structure depends on the text object used.
    Reference field: THEAD-TDNAME
    ID
    Enter the text ID of the text module. Table TTXID contains the valid text IDs, depending on the text object.
    Reference field: THEAD-TDID
    LANGUAGE
    Enter the language key of the text module. The system accepts only languages that are defined in table T002.
    Reference field: THEAD-TDSPRAS
    ARCHIVE_HANDLE
    If you want to read the text from the archive, you must enter a handle here. The system uses it to access the archive. You can create the handle using the function module ACHIVE_OPEN_FOR_READ.
    The value '0' indicates that you do not want to read the text from the archive.
    Reference field: SY-TABIX
    Default value: 0
    Import parameters:
    HEADER
    If the system finds the desired text, it returns the text header in this parameter.
    Structure: THEAD
    Table parameters:
    LINES
    The table contains all text lines that belong to the text read.
    Structure: TLINE
    Exceptions:
    ID
    The text ID specified in the parameter ID does not exist in table TTXID. It must be defined there together with the object of the text module.
    LANGUAGE
    The parameter LANGUAGE contains a language key that does not exist in table T002.
    NAME
    The parameter NAME contains the name of a text module that does not correspond to the SAPscript conventions.
    Possible errors:
    The field contains only blanks.
    The field contains the invalid characters ‘*’ or ‘,’.
    OBJECT
    The parameter OBJECT contains the name of a text object that does not exist in table TTXOB.
    NOT_FOUND
    The system did not find the specified text module.
    REFERENCE_CHECK
    The text module to be read has no text lines of its own but refers to the lines of another text module. This reference chain can include several levels. For the current text, the chain is interrupted, that is, one of the text modules referred to in the chain no longer exists.
    WRONG_ACCESS_ TO_ARCHIVE
    The exception WRONG_ACCESS_TO_ARCHIVE is triggered if an archive is accessed using an incorrect or non-existing archive handle or an incorrect mode (that is, read if the archive is open for writing or vice versa).
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Header Text and Item Text for Sales Order

    Hi,
    Can any one help me on Header Text and Item Text............ ASAP.
    <b>STXH & STXL</b> 
    TDOBJECT :
    TDID:
    TDNAME :
    Regards,
    Raghunath.S

    Hi Raghunath,
    Go to the text <b>in plain page mode</b>, and then you do via the menu '<b>GoTo</b>' -> '<b>Header</b>' and you get the parameters you need ( object, name, id, ...).
    Repeat this operation for each text.
    <u>Tips :</u> If you want to handle those text, use FM : READ_TEXT, EDIT_TEXT, and SAVE_TEXT...
    Hope this helps,
    Erwan

  • Transaction to Mass Update Header and Item text in Purchase Order

    Dear All
    Whether any Transaction in SAP to mass update the Header and Item text in Purchase Order.
    One Single Text For Ex :" This is a Dummy PO" .
    This text needs to be updated in large number of POs.
    Please let me know your views
    Reg
    Shyam

    Hi Shyam,
    You can make use of BAPI_PO_CHANGE for this. See the documentation of this BAPI in SE37 for more information.
    "You can transfer header and item texts in the PoTextHeader and PoTextItem tables. You import texts
    for services in the PoServicesText table. Texts can only be replaced complete."
    Regards,
    Purnima.

  • How can we revise the pricing both at header and item level of sales order?

    Dear All,
      Now there's one issue of the pricing to me. i want to revise the pricing both at header and item level of sales order. but after i finished the cutomize and tested it, it's more different as i thought. i found that the pricing can revise at the one side only,for example, if i revise the pricing at item level and it's grey and can't be revised at the header. on the other hand, it's the same result what's happened at item.
      So, in my opinion, we can't revise the pricing both at header and item, right? if not, please give me more advices and teach me how to solve the problem. thanks a lot.

    Dear Lakshmipathi,
      Thanks a lot for your kindly and useful answer for me and I learn more for the pricing technology.
      I didn't notice the way that you reminded ago therefore I also saw the button at the condition tab. And your suggestion makes me know more.
      And I had tested the way that you said, I met with a question. Below is my opinion for my testing.
      I had created one SO and the pricing was $10, then I revised the pricing from 10 to 15 by VK11. It can't be updated automatically at SO and I must update it manually by clicking the "Update" button. This is OK for my testing, but I have another question to disturb you for the use of "Active" button. When I click the button and nothing is responsed, it's quite different what you said. So, please give more detail for the Active button. Thanks a lot.

  • Header Text And Item Text in Sales Order

    Dear ALL
    First one:
    I have two different problems with text in sales order, when i create sales order after giving all the information like customer and material.
    If i navigate through the Go To-- > Header ---> Text then there is a dump is any idea what all i need to check?
    Error  Message
    A RAISE statement in the program "SAPLOLEA " raised the exception 
    condition "CNTL_ERROR".                                           
    Since the exception was not intercepted by a superior program     
    in the hierarchy, processing was terminated.                                                                               
    Short description of exception condition:                                                                               
    For detailed documentation of the exception condition, use        
    Transaction SE37 (Function Library). You can take the called      
    function module from the display of active calls.                 
    The termination occurred in the ABAP/4 program "SAPLOLEA " in          
    "AC_SYSTEM_FLUSH".                                                     
    The main program was "SAPMV45A ".     
    The termination occurred in line 27                                    
    of the source code of program "LOLEAU02 " (when calling the editor 270).
    Second one:
    when i am creating the sales order without enter the quantity  , customer and material if i navigate through the Header Text or item  Text i can able to go but there in no dump, the moment i enter the quantity for the material then it over writes all the text in item and header.
    Any suggestions please?
    Thanks & Regards,
    Veer

    Dear Veer,
              Please take the help from the technical people to fix the issue because it may related activation some Z developments which are related to the text.
    Check the text determination procedure configuration settings also whether the text is calling from the Customer master and Material master.
    If the text is calling from the master data maintain the text in the master data then try.
    I hope it will help you
    Regards,
    Murali.

  • Delivery tolerance at header and item level in sales order

    Dear All,
    My client wants to maintain delivery tolerance at both header and item level. NOTE: The tolerance at sales order header is different than the delivery tolerance at sales order item.
    eg if i maintain 3% plus and minus tolerance at item, the header level tolerance can be 2%.
    Also if there are more than 1 line items, the system should give warning message, when it finds that the delivery tolerance at item level can be maintained but that of the header level cannot be maintained and vice varsa.
    Awaiting an early help and thankful for the same in advance.
    Regards,
    Avnesh Kamdar

    Hi Avnesh,
    Delivery tolerance can be made in the customer master,sales org data ---delivery tab.
    Delivery tolerance is always at item level.
    Reward points if it helps.
    Regards
    Karan

  • How to header and item data of sales order using bapi interface

    hi friends,
       i am geetha, i having a problem like how to upload sales oder header and item data through va01 tcode using BAPI FUNCTION MODULES.
    i need bapi function modules for header adn item data  and brief explation on that , how to pass importing and tables  parameters to get exact output .
    regards
    geetha.

    Use : BAPI_SALESORDER_CREATEFROMDAT2
    Sales order: Create Sales Order
    Functionality
    You can use this method to create sales orders.
    You must enter at least sales order header data (via ORDER_HEADER_IN structure) and partner data (via the ORDER_PARTNERS table) as input parameters.
    Enter the item data via the ORDER_ITEMS_IN table. You can allocate item numbers manually, by filling in the relevant fields, or the system does it, according to the settings for Customizing, by leaving the relevant fields blank.
    If you have configurable items, you must enter the configuration data in the ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_PART_OF and ORDER_CFGS_VALUE tables.
    Credit cards can be transferred via the BAPICCARD structure, on the one hand, data for card identification, on the other, data for a transaction which has taken place in an external system.
    Once you have created the sales order successfully, you will receive the document number (SALESDOCUMENT field). Any errors that may occur will be announced via the RETURN parameter.
    If no sales area has been created in the sales order header, then the system creates the sales area from the sold-to party or ship-to party, who has been entered in the partner table. If a clear sales area cannot be created, you will receive a system message, and the sales order will not be created.
    Notes
    1. Mandatory entries:
    ORDER_HEADER_IN : DOC_TYPE     Sales document type
                       SALES_ORG    Sales organization
                       DISTR_CHAN   Distribution channel
                       DIVISION     Division
    ORDER_PARTNERS..: PARTN_ROLE   Partner role, SP sold-to party
                       PARTN_NUMB   Customer number
    ORDER_ITEMS_IN..: MATERIAL     Material number
    2. Ship-to party:
    If no ship-to party is entered, use the following: Ship-to party =
    sold-to party.
    3. Commit control:
    The BAPI does not have a database commit. This means that the relevant application must leave the commit, in order that can be carried out on on the database. The BAPI BAPI_TRANSACTION_COMMIT is available for this.
    4. German key words:
    The following key words must be entered in German, independantly of
    the logon language:
    DOC_TYPE     Sales document type, for example: TA for standard order
    PARTN_ROLE   Partner role, for example: WE for ship-to party
    Further information
    You can find further information in the OSS. The note 93091 contains general information on the BAPIs in SD.
    Parameters
    SALESDOCUMENTIN
    ORDER_HEADER_IN
    ORDER_HEADER_INX
    SENDER
    BINARY_RELATIONSHIPTYPE
    INT_NUMBER_ASSIGNMENT
    BEHAVE_WHEN_ERROR
    LOGIC_SWITCH
    TESTRUN
    CONVERT
    SALESDOCUMENT
    RETURN
    ORDER_ITEMS_IN
    ORDER_ITEMS_INX
    ORDER_PARTNERS
    ORDER_SCHEDULES_IN
    ORDER_SCHEDULES_INX
    ORDER_CONDITIONS_IN
    ORDER_CONDITIONS_INX
    ORDER_CFGS_REF
    ORDER_CFGS_INST
    ORDER_CFGS_PART_OF
    ORDER_CFGS_VALUE
    ORDER_CFGS_BLOB
    ORDER_CFGS_VK
    ORDER_CFGS_REFINST
    ORDER_CCARD
    ORDER_TEXT
    ORDER_KEYS
    EXTENSIONIN
    PARTNERADDRESSES
    Exceptions
    Function Group
    2032

  • Price and item proposal for Sales order bom

    Good day everyone,
    I've created a sales order bom for a material, when I create a new sales order for this material, SAP give me all the materials listed in the bom, may I ask is there anyway to do the setting as below:
    1: Gross price (PB00) for material that come from BOM explosion having different price as the material that enter manually (without BOM).
    2: Could BOM explosion happen in item proposal? With this, I could send out the item proposal to my customer before the actual sales order.
    Thank you very much for you help.
    Best regards,
    Lee
    Edited by: CK Lee on Mar 31, 2011 2:46 PM

    Good day everyone,
    I've created a sales order bom for a material, when I create a new sales order for this material, SAP give me all the materials listed in the bom, may I ask is there anyway to do the setting as below:
    1: Gross price (PB00) for material that come from BOM explosion having different price as the material that enter manually (without BOM).
    2: Could BOM explosion happen in item proposal? With this, I could send out the item proposal to my customer before the actual sales order.
    Thank you very much for you help.
    Best regards,
    Lee
    Edited by: CK Lee on Mar 31, 2011 2:46 PM

  • Creating line item in a sales order by user exit

    Hi
    I have to create a line item through user exit "userexit_save_document_prepare" when saving the sales order.I am doing this by appending a row to the internal table XVBAP in the user exit.
    The row is getting appended to the internal table but the line item is not getting created in the sales order .I dont getting any error also.
    Can anyone tell me what could be the reason for this and is there any other means by which i can create a line item through the user exit.

    You may also need to add an entry to the internal table XVBEP for the schedule lines.

  • Z-Report for PR using ES language not getting the Header and Item text deta

    Hi,
    We have developed Z report for PR report and we ahve used ES and EN language, but when i select language ES and execute the report then we are not getting the Header and Item text data,
    Secondly when We select language EN and execute the report then we are getting the Header and Item text details.
    Please guide me.
    Thanks
    Shital

    Have you maintained Tetexxt in ES language or is it that you are expecting  on selecting ES the text from En will get coverted to ES and display in your report?

  • Tables for Purchase Requistion Header and Item Texts

    Hi,
    In which Tables does Purchase Requistion Header and Item Texts will be stored.
    Thanks in advance

    Not sure , you can try with T166K , T166P

  • What table stores delivery header and item texts?

    Hi Gurus,
    Which table stores header and item text of delivery? We use VBBP text object and provide test id, language to read the texts using function module 'READ_TEXT'.
    Can you please tell me which table store the texts?
    Best regards,
    Pavan

    >
    Pavan1 wrote:
    > Hi Gurus,
    >
    > Which table stores header and item text of delivery? We use VBBP text object and provide test id, language to read the texts using function module 'READ_TEXT'.
    >
    > Can you please tell me which table store the texts?
    >
    > Best regards,
    > Pavan
    This stores in text objects so you need to pass
    Here is simple thing to find what to pass to the read_text function module.
    Go to delivery - If you want to find header text - GOTO (on application menu) - Header -texts - Double click on the text where you enter text - GOTO (on application menu) - Header - This will give you a popup kind of screen where you can find the
    text name (if it is header - only delivery number and if it is item - deliverynumber + item number ) , lang, Text id, Text object
    This will give you the required parameters... .

  • How to upload the Header and Item texts

    Hi ,
    I need to upload the Header and Item texts , what is the process to upload.................................
    Regards,
    Raghunath.S

    hi,
    see the sample code.
    report ZVENDOR_BANK
           no standard page heading line-size 255.
    *-----tables declaration
    tables:lfa1,lfbk,t100.
    *-----data declaration
    data:begin of it_dummy occurs 0,
           dummy(100) type c,
         end of it_dummy.
    data:begin of it_lfa1 occurs 0,
           lifnr like lfa1-lifnr,
           ktokk like lfa1-lifnr,
           name1 like lfa1-name1,
           sortl like lfa1-sortl,
           land1 like lfa1-land1,
         end of it_lfa1,
         begin of it_lfbk occurs 0,
           lifnr like lfbk-lifnr,
           banks like lfbk-banks,
           bankl like lfbk-bankl,
           bankn like lfbk-bankn,
           koinh like lfbk-koinh,
         end of it_lfbk.
    data:bdcdata like bdcdata occurs 0 with header line.
    start-of-selection.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
      FILENAME = 'C:\Documents and Settings\Rvelagapudi\Desktop\vendor.txt'
         FILETYPE                      = 'ASC'
         HAS_FIELD_SEPARATOR           = '#'
        TABLES
          DATA_TAB                      = it_dummy
       EXCEPTIONS
         FILE_OPEN_ERROR               = 1
         FILE_READ_ERROR               = 2
         NO_BATCH                      = 3
         GUI_REFUSE_FILETRANSFER       = 4
         INVALID_TYPE                  = 5
         NO_AUTHORITY                  = 6
         UNKNOWN_ERROR                 = 7
         BAD_DATA_FORMAT               = 8
         HEADER_NOT_ALLOWED            = 9
         SEPARATOR_NOT_ALLOWED         = 10
         HEADER_TOO_LONG               = 11
         UNKNOWN_DP_ERROR              = 12
         ACCESS_DENIED                 = 13
         DP_OUT_OF_MEMORY              = 14
         DISK_FULL                     = 15
         DP_TIMEOUT                    = 16
         OTHERS                        = 17.
      loop at it_dummy.
        if it_dummy-dummy+0(1) = 'H'.
          it_lfa1-lifnr = it_dummy-dummy+1(4).
          it_lfa1-ktokk = it_dummy-dummy+5(4).
          it_lfa1-name1 = it_dummy-dummy+9(7).
          it_lfa1-sortl = it_dummy-dummy+16(2).
          it_lfa1-land1 = it_dummy-dummy+18(2).
          append it_lfa1.
        else.
          it_lfbk-lifnr = it_dummy-dummy+1(4).
          it_lfbk-banks = it_dummy-dummy+5(2).
          it_lfbk-bankl = it_dummy-dummy+7(8).
          it_lfbk-bankn = it_dummy-dummy+15(8).
          it_lfbk-koinh = it_dummy-dummy+23(4).
          append it_lfbk.
        endif.
      endloop.
      loop at it_lfa1.
        refresh bdcdata.
        perform bdc_dynpro      using 'SAPMF02K' '0100'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'RF02K-KTOKK'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '/00'.
        perform bdc_field       using 'RF02K-LIFNR'
                                      it_lfa1-lifnr.
        perform bdc_field       using 'RF02K-KTOKK'
                                      it_lfa1-ktokk.
        perform bdc_dynpro      using 'SAPMF02K' '0110'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'LFA1-LAND1'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '/00'.
        perform bdc_field       using 'LFA1-NAME1'
                                      it_lfa1-name1.
        perform bdc_field       using 'LFA1-SORTL'
                                      it_lfa1-sortl.
        perform bdc_field       using 'LFA1-LAND1'
                                      it_lfa1-land1.
        perform bdc_dynpro      using 'SAPMF02K' '0120'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'LFA1-KUNNR'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '/00'.
        perform bdc_dynpro      using 'SAPMF02K' '0130'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'LFBK-KOINH(02)'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=ENTR'.
        data:FNAM(20) TYPE C,
             IDX TYPE C.
        move 1 to idx.
        LOOP AT IT_lfbk WHERE LIFNR = IT_lfa1-LIFNR.
          CONCATENATE 'LFBK-BANKS(' IDX ')' INTO FNAM.
          perform bdc_field       using FNAM
                                        it_lfbk-banks.
          CONCATENATE 'LFBK-BANKL(' IDX ')' INTO FNAM.
          perform bdc_field       using FNAM
                                        it_lfbk-bankl.
          CONCATENATE 'LFBK-BANKN(' IDX ')' INTO FNAM.
          perform bdc_field       using FNAM
                                        it_lfbk-bankn.
          CONCATENATE 'LFBK-KOINH(' IDX ')' INTO FNAM.
          perform bdc_field       using FNAM
                                        it_lfbk-koinh.
          IDX = IDX + 1.
        endloop.
        perform bdc_dynpro      using 'SAPMF02K' '0130'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'LFBK-BANKS(01)'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=ENTR'.
        perform bdc_dynpro      using 'SAPLSPO1' '0300'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=YES'.
        call transaction 'XK01' using bdcdata mode 'A'.
      endloop.
           Start new screen                                              *
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
      CLEAR BDCDATA.
      BDCDATA-PROGRAM  = PROGRAM.
      BDCDATA-DYNPRO   = DYNPRO.
      BDCDATA-DYNBEGIN = 'X'.
      APPEND BDCDATA.
    ENDFORM.                    "BDC_DYNPRO
           Insert field                                                  *
    FORM BDC_FIELD USING FNAM FVAL.
      IF FVAL <> SPACE.
        CLEAR BDCDATA.
        BDCDATA-FNAM = FNAM.
        BDCDATA-FVAL = FVAL.
        APPEND BDCDATA.
      ENDIF.
    ENDFORM.                    "BDC_FIELD

Maybe you are looking for