Debugging a Hierarchy user exit ZXRSAU04

Guys,
We have added custom code to the hierarchy user exit ZXRSAU04. I am trying to debug it by right clicking the datapacket and then doing a simulate update. I am getting the message "simulated hierarchies cannot be edited". I added an endless loop in the exit ZXRSAU04 and then loaded a hierarchy. It didn't stop there. If anyone has debugged a hierarchy user exit, please let me know the steps for debugging it. We are on BW version 3.1c.
Thanks,
SSB.

Was this ever solved? I know it was a long time ago, but I am having a similar problem while trying to update my Merchandise Hierarchy.
I have implemented the code found here : http://www.element61.be/e/resourc-detail.asp?ResourceId=189
However, I don't believe my ABAP is running, which would put in the new values. I have inserted a never-ending loop in the code, and still that is not hit, neither are any of the debug points inserted at various points in the include files.
Cheers,
Andrew

Similar Messages

  • Debugging inbound idoc user exit

    Hi all,
    I have a client who wishes to do some data validation when creating an inbound idoc.  We've identified the appropriate user exit and set a break-point in it, but how do I get the inbound process to stop here so I can see the data coming through, particularly since the process is initiated from a source external to R/3.
    The file data is coming from a warehouse management system into XI, and then being passed from XI through to the function IDOC_INPUT_DELVRY.
    Cheers,
    Stephen

    go thru the below information.
    IDOCs:
    - IDOC is an Intermediate Document'. It is simply a data container used to exchange information
    between any two processes that can understand the syntax and semantics of the data.
    An IDOC is created as a result of executing an Outbound ALE or EDI process.
    In an inbound ALE or EDI process, an IDOC serves as input to create an application document.
    -When an IDOC is created in the system , an unique number(16 Digits) is assigned to it.
    This number is unique with in the client.
    - IDOCs are independent of the sending and receiving systems.
    - IDOCs are independent of the direction of data exchange.
    - In the IDOCs, data is stored in text format.
    - IDOC will wait until the Remote System is Active.
    *IDOC Definition Components
    - Basic Idoc Type: Basic Idoc type defines the structure and format of the business document
    that is to be exchanged between two systems. Basic Idoc type can refer to an SAP provided
    basic IDOC type or a customer developed basic IDOC type.
    - A basic IDOC type has the following characteristics:
    Name : A basic Idoc type can be assigned upto a thirty character name.
    List of permitted segments: The segments make up the IDOC structure.
    Hierarchy of segments : The hierarchy of segments specifies the physical sequence and
    any parent - child relationship in the segments.
    Mandatory Vs Optional Segments : When used in the IDOC type, each segment has
    an attribute that defines whether the segment is option or mandatory.
    Minimum/Maximum range for each segment: It defines the maximum and minimum
    number of timesa data record corresponding to a segment cn exist in an IDOC.
    - Segments : A segment defines the format and structure of a data record.
    Segments are reusable componets. A segment consists of various fields that represent data
    in data record.
    IDOC Run time components:
    - A unique IDOC number 16 digits is allocated.
    - One control record is attached to the IDOC.
    - Segments translate into data records.
    - Status records are attached.
    - Sytax rules are checked.
    IDOC Record Types:
    1. Control Record : The control record contains all of the control information about an IDOC,
    this information basically includes the IDOC number, sender and receiver information,
    and information such as the message type it represents and the IDOC type.
    - there is only one control record per IDOC.
    - The stucture of the control record is the same for all the IDOCs and is defined by SAP.
    - The structure of the control record is defined by the data dictionary structure EDI_DC40.
    - The control record is stored in the EDIDC table.
    2. Data Record : Data records contain the application data. A data record has two sections
    Administrative Section and a Data section.
    - The Administrative section cotain the segment name, client, IDOC number, segment number,
    hierarchy level information.
    - The Data section of a data record is a stram of 1000 bytes where the actual data resides.
    - The data record is defined by the data dictionary structure EDI_DD40.
    - Data records for IDOCs stored in the EDID4 table.
    3. Status Record : Status records are attaced to an IDOC throughout the process as
    the IDOC achieves different milestones or encounters an error. At every milestone a statu code,
    date and time are assigned.
    - Status codes 01 to 49 are reserved for OUtbound process, 50 and above are reserved for
    inbound processes.
    Message Type: Identifies what type of information transformed between logical systems or partners.
    Message type is not a local object type , it is transportable.
    Port : A Port defines the medium in which data is exchanged between the two systems in
    the ALE process, IDocs are transferred via memory.
    1. TRFC ports are used for ALE communicaion.
    2. File Ports used by EDI
    3. CPI-C ports used to communicate with R/2 systems.
    4. Internet ports used to connect with Internet Applications.
    5. ABAP-PI ports used to process data via the ABAP programming interface.
    6. XML ports used to process files in XML format.
    Partner Profiles:
    A partner profile has three views, which maintain different parameters for the partner.
    1. The General Parameters View : Values are stored in table EDPP1.
    2. The Outbound Parameters view : Values are stored in table EDP13, except for the
    Message control parameter , which are stored in table EDP12.
    3. The Inbound Parameters View: Values are stored in table EDP21.
    Transaction Codes :
    WE31- Segment Creation
    WE30 - IDOC structure
    WE81 - Message type creation
    WE82 - Link between Message type and IDOC type.
    WE21 - Creation of POrt
    WE20 - Partner Profile creation
    WE19 - Test tool for IDOC Processing.
    SALE - ALE (Application Linking and Enabling) settings
    Go through the link for basics related to IDOCs:
    http://help.sap.com/saphelp_nw04/helpdata/en/0b/2a6cdd507d11d18ee90000e8366fc2/plain.htm
    Check these links.
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.sappoint.com/abap/ale.pdf
    http://www.sappoint.com/abap/ale2.pdf
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sappoint.com/abap.html
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.docs
    Please check this PDF documents for ALE and IDoc.
    http://www.sappoint.com/abap/ale.pdf
    http://www.sappoint.com/abap/ale2.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEIO/BCMIDALEIO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEPRO/BCMIDALEPRO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFAALEQS/CABFAALEQS.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDISC/CAEDISCAP_STC.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDI/CAEDI.pdf
    Check below link. It will give the step by step procedure for IDOC creation.
    http://www.supinfo-projects.com/cn/2005/idocs_en/2/
    Check these out..
    Re: How to create IDOC
    Check below link. It will give the step by step procedure for IDOC creation.
    http://www.supinfo-projects.com/cn/2005/idocs_en/2/
    ALE/ IDOC
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.sappoint.com/abap/ale.pdf
    http://www.sappoint.com/abap/ale2.pdf
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sappoint.com/abap.html
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.docs
    go trough these links.
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.sappoint.com/abap/ale.pdf
    http://www.sappoint.com/abap/ale2.pdf
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sappoint.com/abap.html
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    You need to excahnge data between systems you need an interface as medium for data transfer.
    IDoc also treat one of the interface options for data transfer.
    Check this link
    http://www.thespot4sap.com/Articles/SAP_ALE_Other_Concepts_Conclusion.asp
    IDOC Debugging:
    1) We generally go for customized IDocs if none of the SAP standard IDoc does not suit our need/business process. Creating is custom IDoc should be a very stringent process. The SAP standard IDocs should be rigorously checked (if any user exits can be of our help or IDoc extension will solve the purpose).
    2) WE19 is the test tool by which we can create IDocs to see whether our functionality is working. It is mostly used to debug inbound function modules.
    For outbound function module debugging you can use the following:
    1) RBDMIDOC - for master IDocs configured via change pointers.
    2) RSNASTED - for transaction IDocs with output/message control.
    3) RSEOUT00 - For IDoc whose status is "to be processed".

  • FM in update task - How do you debug for a user exit (IW32)

    Hi,
    I am working on user exit IWO10009, fm EXIT_SAPLCOIH_009, transaction IW32.
    The user-exit should be called any time an order is saved with parts added to the component tab.
    The import structure of the user exit is CAUFVD, which doesnu2019t contain the items in the component. Instead, I have to go into table RESB and get the components.
    However, when I go into RESB from inside the user-exit, the added components have not yet been added to the table.
    As such, I was thinking of creating a Z function module in update task to process this code after the order is saved & RESB is updated.
    2 questions
    1 u2013 Is this the best way of accomplishing this?
    2 u2013 How do you debug FMu2019s in update task? I have set a breakpoint & have switched system debugging on from inside the debugger, but it doesnu2019t stop inside the fm.
    Please help.
    Thanks,
    John

    Hi,
    to debug update task you need to switch on "update debugging" not the "system debugging" from the menu Settings->update debugging.
    -Ramesh

  • How to get the values from form calls in user exit?

    Hi all,
    I am not getting a specific value readily in an user exit.
    ?Can any one tell me how to find what are the fields,tables available in various form calls(visible while debugging) in an user exit.
    For example sapxkl is one ofthe callls...(sapxkl)<table>[] will hold some data.how to find what r the values available for <table>.
    Thanks.
    Edited by: sanjay_ask on Apr 16, 2010 10:43 PM

    HI ,
    Use this line of code
      field-symbols: <l_fs> type any.
      data: l_value type char20.
    Get Plant
      l_value =  '(SAPLCEI0)GV_WERKS'. " Here give the program name and variable name
      assign (l_value) to <l_fs>.
      v_werks = <l_fs>.         " Instead of V_werks use you internal table
    Thanks
    Subhankar

  • User exit not being called

    Hi,
    We have implemented user exit EXIT_SAPLMRMH_015, include ZXM08U26.
    Problem 1:
    When we tested in development system by processing a Idoc in debug, mode this user exit got called and the code in the user exit (include ZXM08U26) was executed.
    Now we moved our changes to the quality system. Again we tested in quality by processing a idoc in debug mode. The user exit is getting called, but the code is not getting executed ( its not going inside include ZXM08U26). Why?
    Problem 2:
    In quality when I try to put break points in include ZXM08U26, a message pops up saying "The position of a breakpoint could not be ascertained". Why cant I put breakpoints?
    The project (in CMOD) and the include (ZXM08U26) are all active in quality.
    Thanks in advance.
    Mick

    When you create/change a project, you must create a correction. This correction contains only the attributes and the SAP enhancements associated with a project, as well as a program that is automatically started with the transport and activates the project in the target system.  Since activating a project affects all components, you should transport all components associated with a project at the same time, in other words with the same transport request. To ensure that the project is activated automatically in the target system, the correction that contains the program concerned must also be in the same transport request. If this is not the case, or the project has not been activated in the target system for other reaons, you can also activate it by manually starting the program (RSMODACT).

  • User Exit M06B0002 - EXIT_SAPLEBND_001

    Hi,
    We are using a release strategy that should check the field "Quantity" in the purchase requisition (MEREQ3321-MENGE).
    The Release Strategy is using a communication structure called CEBAN in which this field does not exist.
    We would like to populate the field CEBAN-USNR1 with the value in the field "Quantity" in the Purchase Requisition (MEREQ3321-MENGE).
    We activated user exit EXIT_SAPLEBND_001 and we try to import the value from EBAN-MENGE. The problem is that EBAN-MENGE is not filled until the document is saved.
    We don't know how to import the value of the "quantity" field into the CEBAN communication structure so that the release strategy can work.
    The CEBAN communication structure does not have key fields to help...
    Does anyone have an idea on how to do that ?
    Thank you very much.
    Best regards,
    Remi

    In SAP standard user exit, we cannot access information which is not defined in the import parameter of user exit.
    To overcome this problem, we can use following technique for accessing information outside of the User exit scope.
    For Example:
    In partner determination user exit EXIT_SAPLV09A_004 we cannot access document type or any sales document header information.
    Go in debugging mode inside the exit. Click "Calls"..
    When you check calls in user exit, then you will find SAPMV45A where VBAK or other sales document information structure are avaliable. then you can use this informaiton as follows:
    Example:
    CONSTANTS: C_VBAK(14) TYPE C VALUE '(SAPMV45A)VBAK',
    FIELD-SYMBOLS: <FS_VBAK> TYPE VBAK.
    ASSIGN (C_VBAK) TO <FS_VBAK>.
    CHECK <FS_VBAK>-AUART = C_ZSQT OR
    <FS_VBAK>-AUART = C_ZDQT.
    SELECT SINGLE AUART
                          FROM VBAK
                          INTO V_AUART
                          WHERE VBELN = <FS_VBAK>-VGBEL.
    In your case, go in debugging mode of user exit.. EXIT_SAPLEBND_001..
    Click "calls"... check the programs.. and try to find out which program contains the required variable and its value..
    then you can use it as explained above....
    I hope it is solved...

  • BPS Hierarchy - variable exit

    Requirement is to restrict the countries based on the selected Geography, I have created a hierarchy on country and trying to write a hierarchy user exit on country variable . UPF_VARIABLE_USER_EXIT_HIER is the one I am using, Can somebody explain how this works or any better I approach to resolve this issue.
    Thanks

    I am using a variable exit on Geography, to populate based on the entires from previous tab. My initial approach was to create a variable exit on country and then call API_SEMBPS_GETDATA to read the geography from the header and then call API_SEMBPS_HIERARCHY_GET for getting countries to populate. This sounds good but when I tried, API_SEMBPS_GETDATA is kicking me out running into infinite loop. Not sure but I think the reason could be, on the first run the value for country is initial. After failing this approach, I was looking into other alternatives.
    Can you please send me that how to document if possible.
    Your guidance much appreciated

  • Hierarchy BW User Exit code EXIT_SAPLRSAP_004 ZXRSAU04

    Hi All,
    We are loading Hierarchy data in BW using User Exit by taking data from master dat InfoObject.
    As we thought it's working fine; but on every 2nd load it's getting failed (1st load is success, 2nd load failed, 3rd load success likewise; so every alternate load is getting failed). We tried with all the options in Infopackage.
    As per our assumptions and the requirement we could able to load the data through user exit.
    We need your help in the following code where we are missing or we are missing some process in BW.
    We request you please give us suggestions ASAP.
    thanks in Advance.
    *&  Include           ZXRSAU04
    data:y_i_/BIC/PYIOSID type standard table of /BIC/PYIOSID,
         y_wa_/BIC/PYIOSID type /BIC/PYIOSID,
         lwa_upmode type char1.
    data:y_i_/BI0/HCRM_OBJ_ID type standard table of /BI0/HCRM_OBJ_ID,
         y_wa_/BI0/HCRM_OBJ_ID type /BI0/HCRM_OBJ_ID,
         y_wa_hienode type RSAP_S_HIENODE.
    data:y_I_table like standard table of C_T_HIENODE.
    data: y_v_active type char1.
    data:y_v_n(8) type n.
    *refresh C_T_HIENODE[].
    case I_DATASOURCE.
      when '80CRM_OBJ_IDH'.
    To load the data from YIOSID master data into 0CRM_OBJ_ID hierarchy
       delete  C_T_HIENODE where nodeid ne '00000001'.
        select single *
           from /BI0/HCRM_OBJ_ID
           into y_wa_/BI0/HCRM_OBJ_ID
           where nodeid = '00000002'.
        if sy-subrc eq 0.
         move:C_T_HIENODE[] to y_I_table[].
         refresh C_T_HIENODE.
         move  y_I_table[] to C_T_HIENODE[].
         refresh y_I_table[].
          CALL FUNCTION 'RSHIER_HIER_SUBTREE_DELETE'
            EXPORTING
              I_HIEID                   = y_wa_/BI0/HCRM_OBJ_ID-HIEID
              I_DEL_IOBJNM              = y_wa_/BI0/HCRM_OBJ_ID-IOBJNM
              I_DEL_NODENAME            = y_wa_/BI0/HCRM_OBJ_ID-nodename
      I_DEL_DATETO              =
           EXCEPTIONS
             FOREIGN_LOCK              = 1
             HIERARCHY_NOT_FOUND       = 2
             CANCELED                  = 3
             OTHERS                    = 4
          IF SY-SUBRC <> 0.
            MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          else.
            CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
           delete C_T_HIENODE where nodeid ge '00000002'.
            commit work and wait.
           wait up to 15 seconds.
            CALL FUNCTION 'RSHIER_HIER_CHECK_AND_ACTIVATE'
              EXPORTING
                I_HIEID        = y_wa_/BI0/HCRM_OBJ_ID-HIEID
              IMPORTING
                E_ACTIVE_STATE = y_v_active
              EXCEPTIONS
                CANCELED       = 1
                OTHERS         = 2.
            IF SY-SUBRC <> 0.
              MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                      WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       wait up to 3 seconds.
            else.
             commit work and wait.
              CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
            ENDIF.
          endif.
        endif.
        select *
                from /BIC/PYIOSID
                into table y_i_/BIC/PYIOSID.
        if sy-subrc eq 0.
          sort y_i_/BIC/PYIOSID by /BIC/YIOSID OBJVERS.
        endif.
        if y_i_/BIC/PYIOSID[] is not initial.
          move: '0HIER_NODE' to C_T_HIENODE-IOBJNM,
               'OPP_NUM' to C_T_HIENODE-NODENAME,
               '00000002' to C_T_HIENODE-NODEID,
               '02' TO C_T_HIENODE-TLEVEL,
               '00000001' to C_T_HIENODE-PARENTID,
               '00000001' to C_T_HIENODE-childid.
          append C_T_HIENODE.
       move:
             '0HIER_NODE' to c_t_foldert-IOBJNM,
              'OPP_NUM' to c_t_foldert-NODENAME,
              'E'       to c_t_foldert-langu,
              'OPP_NUM' to c_t_foldert-txtsh.
       append c_t_foldert.
          loop at y_i_/BIC/PYIOSID into y_wa_/BIC/PYIOSID.
            if y_wa_/BIC/PYIOSID-/BIC/YIOSID is not initial.
              if y_wa_/BIC/PYIOSID-/BIC/YIOSID gt 2.
                move: '0CRM_OBJ_ID' to C_T_HIENODE-IOBJNM,
                y_wa_/BIC/PYIOSID-/BIC/YIOOBJ to C_T_HIENODE-NODENAME,
                y_wa_/BIC/PYIOSID-/BIC/YIOSID to y_v_n,
                y_v_n to C_T_HIENODE-NODEID,
                y_wa_/BIC/PYIOSID-/BIC/YIOTLEV TO C_T_HIENODE-tlevel,
                y_wa_/BIC/PYIOSID-/BIC/YIOPLEV to y_v_n,
                y_v_n to C_T_HIENODE-PARENTID.
                append C_T_HIENODE.
              endif.
            endif.
          endloop.
        endif.
    endcase.
    *ROSHIENODE

    Hi!
    I had the same problem during this user exit run.
    When load failed a new dump DBIF_RSQL_INVALID_CURSOR appeared.
    My problem appeared because system was loosing cursor during a SELECT...ENDSELECT run.
    I made my SELECTs smaller and everything become fine.
    SDN gives some notes:
    SAP Note Number: 1124093 70SP17: Extraction terminates with DBIF_RSQL_INVALID_CURSOR
    SAP Note Number: 401847   DBIF_RSQL_INVALID_CURSOR during extraction
    SAP Note Number: 675 Unexpected abends in SELECT loops (COMMIT)
    Hope it helps.

  • User Exit - EXIT_SAPLKEAK_001 - Product Hierarchy field

    Dear All,
            I am trying to control the input of the Product Hierarchy in the t-code F-02 - Profitability Segment section. So far i found the user exits - EXIT_SAPLKEAK_001 is related to control the data in the profitability segment in t-code F-02. However, i cant find the product hierarchy field be store in this exits while i debugging this program.
    Please kindly advise .
    thank you very much

    Hi,
    Actually I dont want selection from any view. I want to create search help exit for this custom field. And it should be similar to.. PRODH field. In PRODH the data is coming when we press F4 from T179 table. So in place of T179 the data should come from my custom table.
    This is what my requirement is.. Hope u understand now.
    Thanks,
    Jhings

  • Unable to debug user exit in CRM BW  (EXIT_SAPLRSAP)

    Hi Gurus,
    Please help me to debug user exit in CRM BW.
    I am using below enhancement
    RSAP0001 (Customer function calls in the service API)
    "EXIT_SAPLRSAP_003"
    Datasource is ZSTAONESYS0_TEXT
    The extract structure
    I have modified is "CRM_BIW_ST_T"
    ===========================
    Data Source "I_CHABASNM"
    CASE i_chabasnm.
    ZSTAONESYS0_TEXT -- Data source name
      WHEN 'ZSTAONESYS0_TEXT'.
        CLEAR l_s_crm_biw_st_t .
        LOOP AT  c_t_texts   INTO  l_s_crm_biw_st_t .
          l_tabix = sy-tabix.
          SELECT SINGLE * FROM crm_jest
                   INTO   wa_status
                   WHERE   inact  =  ' '.
          SHIFT wa_status-stat LEFT DELETING LEADING space.
          CLEAR l_stat.
          l_stat = wa_status-stat(1).
          IF  l_stat  = 'E'.
            l_s_crm_biw_st_t-bwstoppt   = wa_status-stat+3(2).
            MODIFY  c_t_texts  FROM l_s_crm_biw_st_t
                                  INDEX l_tabix.
          ENDIF.
        ENDLOOP.    
    ENDCASE.
    ===========
    Should I use a BADI?
    It would be great if you could give me
    relevant definition name for creating new BADI.
    Can I use "CRM_BWA_MFLOW" ?
    I promise to return and reward the answers.
    Really heart warming
    to see the dedication/ participation of
    Bhanu Gupta / A.H.P / Pizzaman and many others
    Thanks in advance, :-D
    AbyJacob, Bangalore
    ===================

    Dear SB,
    I was able to Debug my user exit successfully.
    ==>include ZXRSAU02. "EXIT_SAPLRSAP_003"
    You guys are really a big help
    Keep up the good work.
    Special Thanks to SDN community
    warm regards,
    Aby Jacob, Bangalore

  • User Exit for reading data from a hierarchy in BW-BPS

    Hello Forum,
    How can i fetch all the records from a particular node in a Hierarchy using a user exit in a variable in BW-BPS,
    Plz Help,
    Regards,
    KK

    Hi,
    This is a sample code that may help you.
    DATA: BEGIN OF wa_val,
            from TYPE rsleaffrom,
            to   TYPE rsleafto,
          END OF wa_val,
          tb_val LIKE wa_val OCCURS 0 WITH HEADER LINE,
          tb_grpval_ce LIKE wa_val OCCURS 0 WITH HEADER LINE,
            tb_ce_val   TYPE rshi_t_hienode,
            tb_ce_intervl TYPE rshi_t_interval,
            wa_hiedirkey TYPE rshi_s_rshiedirkey,
            tb_node_val TYPE rshi_t_hienode,
            tb_interval TYPE rshi_th_interval,
            wa_interval TYPE rshi_s_interval,
    SELECT SINGLE hieid objvers FROM /bi0/haccount
                    INTO wa_hiedirkey
                    WHERE nodename = group-name.
      CALL FUNCTION 'RSSH_HIERARCHY_READ'
        EXPORTING
          i_rshiedirkey     = wa_hiedirkey
          i_date            = sy-datum
        IMPORTING
          e_t_rsnodes       = tb_node_val
          e_th_rsinterval   = tb_interval
        EXCEPTIONS
          invalid_hierarchy = 1
          name_error        = 2
          iobj_not_found    = 3
          OTHERS            = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    thanks
    pratyush

  • Debug an USER-EXIT which is present inside an INCLUDE

    Hi folks,
    i want to debug a include ' LVEDFF0E.' which is present in the program  'SAPLVEDF.
    my user exit 'ZXEDFU02' is present in the include LVEDFF0E . This exit is to change the IDOC segmants.
    i want to debug my user exit which is present inside a include.i tried so many times but control is not going to that point.
    can anybody tell me how to debug that exit???
    correct answers will be rewarded.
    Thanks & Regards

    Hi,
    Try this way
    /h> choose "breakpoints" from menu> breakpoint at >function module> enter EXIT_SAPLVEDF_002 and press enter press f8

  • Can we debug the USER EXITs

    Hi,
          This is Krishna. Can we Debug the User exits. If possible, how to debug and what r the user exits can we debug.
      If any one knows, pls help me.
      Thanx in advance.
    Regards,
    Krishna.

    Hi,
    Write one of these statements in ur user exit code.
    break-point
    or
    break <URID>
    Thanks
    mahesh

  • Debug CIF - ECC inbound - User exit CIFORD03 - Planned order to process ord

    Hi
    While Converting planned orders to process orders from APO to ECC, queues are not getting stop in Inbound ECC.. even after setting CIF user as dialog user and maintaining both CIF user and my user ids in /sapapo/c4 to block queues. maintained the same in ECC CIFGPARAMV table.  Outbound queues are stopping in APO, but not able to debug APO outbound queues...
    I want to debug user exit CIFORD03 (EXIT_SAPLCORD_005 ) in ECC . Please reply.
    Thanks
    Sreeni

    Hi Sreeni,
    The setting in /sapapo/c4 against your user ID would be relevant in this case.
    Debugging should be on, and use detailed logging. Also, your RFC user ID should be a dialog user ID or a Service user ID.
    Did you make sure that your user ID and the RFC user ID 'in R/3 for APO' have sufficient debug authorizations (including queue debug authorizations)?
    (You can find out the RFC user in SM59 in APO against the RFC connection that you have for R/3. )
    You should then see a queue stuck in R/3 inbound, where you could enter in debug mode.
    If you go to SMQR in R/3, and see a queue called CF, then it's also possible to deregister this CF queue, and then queues will get stuck in R/3 inbound. You could then use this queue for debug if you have sufficient debug authorizations including queue debug.
    Thanks - Pawan
    Edited by: Pawan Pathak on Feb 16, 2012 1:32 PM

  • Debugging a User Exit

    Hi
    I would like to debug a program, and locate and fix an error in one of the user exits. How can I go about doing this?
    Please help to solve this.
    Regards
    Radha

    Hi,
    Enhancement/Modifications
    1) Execute tcode SMOD to find available enhancement/modifications.
    2) Create a project for the enhancement in tcode CMOD.
    3) You must activate your project first in order to hit a break-point or get into debug mode for your existing enhancements/modifications, if you do not, the best you will be able to do is step through the main program until you hit the call for that particular customer enhancement.
    4) To get into debug, you can enter a hard break-point in the enhancement itself, set a soft break-point with the stop sign, or the long way, before you execute your transaction or while you are in your transaction, you can place a /h in the ok code area (this is the area of your gui where you can type in a tcode). Once you have the /h, hit enter and that will take you into debug, from there, you can do many different things to find exactly what you are looking for.
    User Exits
    1) Identify the main program you want to locate a user exit/debug.
    2) For example, go to SE80 and do a search by program or dev class (SAPMV45A sales order or Dev Class VMOD, most SD user exits are in this dev class). In SE80 if you go by program, most user exit programs end in a 'Z' on a rare occasion 'X' or 'Y'.
    3) If you are looking at including MV45AFZZ, you can see where there are different forms. These forms will get called at times within the program. If you are looking to fill the storage location on the sales order, you will probably want to take a look at the perform that fills in a field in vbap.
    4) If this is what you are trying to accomplish, you will need to do the select against the config Table TVKOL based on the shipping point/plant and possibly storage condition based on your picking strategies.
    5) For the debug part, you can do the same as in the enhancements/modifications but you will not need to activate any projects.
    reward if useful
    regards
    Ravi

Maybe you are looking for

  • Error in component while importing DC

    Hi, I use Netweaver for JDI development for SAP ESS webynpro components. I have recently upgraded my SAP Netweaver from 2.0.9 to 2.0.16. What I find is that, when i Import a DC from the JDI server into my client workspace, it has numerous errors asso

  • Valid Acrobat Pro XI still requires activation after 30 days

    I already asked a similar question in a different sub-forum, but i was recommended to make a new thread here. The problem is this: We need to deploy Acrobat Pro XI to computers that are 100 offline. We used the Adobe Customization Wizard XI to make a

  • Hierarchy infopackage not fetching all data

    Hi All, i am loading hierarchy from R/3, in R/3 there are 93 records but am getting only 3 records. the same source system was mapped to another BW system in that we are getting all 93 records. i have checked transfer rules and infoobjects everything

  • NSLOOKUP is resolving common for all the domains.

    Hi, Here i have the issue in my DNS server which is Server 2008 R2 Enterprise(64bit). My DNS is resolving common IP for all the domains whencheck with nslookup, But users can able to do browsing with my DNS. Only thing is not resolving nslookup. Eg:

  • 1st Gen playback choppy and glitchy all of a sudden

    I have a 1stGen that all of a sudden has very choppy playback when playing movies that are on the hard drive. It's a newer device and had about 10 Gb free on the hard drive. Any suggestions?