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

Similar Messages

  • Debugging user exit

    Dear Experts,
                     I found that the User Exit code for Transaction data coming from R/3 to BW is not working properly. I have to debug it. How do I debug it? Can somebody refer me to any documentation or tell me the method used to debug user exits? I know how to debug Update and Transfer rules.. but not user exits?
    Thank you.

    For update and transfer rules:
    1) Load data till PSA.
    2) Go to monitor and select details tab.
    3) Open Processing node and on a data packet node right click and select simulate update.
    4) On the next screen select the data provider and mark the update debugging in update rules and/or debugging in transfer rules
    5) On the lower part select all records or selective records.
    6) In the update rules, the program will first stop at a point where the different debugging points can be turned on or off. Some are on and some are off. Change them according to your requirements.
    Debug User Exit: Assuming you want to debug extraction exit. Put a break point in the code and run in RSA3. If you are trying in production system, then select the enable debugging option in RSA3 and run the extractor.

  • Unable to debug an exit in CALL CUSTOMER FUNCTION 003

    Hi Guys,
    I have an exit EXIT_SAPMV45A_003 that is called by CALL CUSTOMER FUNCTION 003. I had placed a break point at
    CALL CUSTOMER FUNCTION 003 and the debugger stops here but i am unable to debug inside this to reach into
    the code in EXIT_SAPMV45A_003 even after setting the system debugging on & Update debugging
    ON.
    Can someone help me with this?
    thanks
    Dan

    You have to include that Enhancement of that exit in the Project and Activate that project in the CMOD.
    The Enhancement for the exit EXIT_SAPMV45A_003 is V45A0003.
    Create a project in CMOD
    And inclue V45A0003 in the project.
    Activate the Project.
    Now, it will stop at break point.
    Regards,
    Naimesh Patel

  • 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

  • Debug for User Exit

    Hi,
    How to Debug User Exits ,Pls Explain step by step?
    Thanks,

    Hi,
    Please find step by step on how to debug:
    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.
    Regards
    Kiran Sure

  • User Exits for Purchase order Header Text Validation

    Hi Experts,
    I need user exit for validate a  Long text in Purchase order header data for a Particular Doc type.
    We are using 4.6 B so badi is not available .
    So pls tell me user exit for the same or any other method as i was unable to find user exit for this scenario.
    Note :  This valiadation should trigger whhile creating  PO.
    Warm Regards
    Santosh Kumar
    Edited by: Santosh L on Mar 19, 2010 9:58 AM

    i have used concept of global memory through call stack

  • Java User Exit - File header failed to parse tokens

    I'm getting an OGG-01389 ... File header failed to parse tokens.  File /u01/pump/aa000000, last offset 916, data: 0x   394: <256_char_alpha_num_omitted>
    The doc for OGG-01389 just has:
      Cause: There was an error while parsing the trail header.
      Action: Contact Oracle Support.
    In my log4j, I can see that javawriter.c finds all of the com.goldengate.atg.* classes and methods that it's looking for, with a "Loaded all classes for Java User Exit" log entry.  I also see the following entries from javawriter.c in the log, prior to any indication of error:
    Now loading callback methods
    Calling 'main' with JVM options: [blah, blah, blah]
    setProperty: key=JAVACHKPT, value=true
    Running in JAVA checkpointing mode
    Checking for checkpoint file
    Checkpoint file does not exist
    Java Writer Initialized
    ... then I get the following log output from javauserexit.c ... still looking good:
    (javauserexit.c:389)  [INFO]: Initialized User Exit
    (javauserexit.c:563)  [DEBUG]: User exit: EXIT_CALL_CHECKPOINT
    ... then back to output from javawriter.c :
    (javawriter.c:104)  [DEBUG]: get_current_time
    (javawriter.c:104)  [DEBUG]: get_current_time
    ... and then failure ... coming from javauserexit.c at the line indicated:
    (javauserexit.c:885)  [INFO]: User exit: EXIT_CALL_FATAL_ERROR.
    ... thinking it could have something to do with defaults being set for checkpointing, I tried the following in GGSCI prior to starting the extract in question:
    GGSCI > alter extract uePump, extseqno 0, extrba 0
    EXTRACT altered.
    GGSCI > start uePump
    EXTRACT UEPUMP starting
    ... but I get the same failure as above.
    Earlier in the log, I can see that all of the following goldengate properties are being set to defaults, since I have not specified values for them ... should I? :
    goldengate.userexit.rawchars               ... defaulting to false
    goldengate.userexit.buffertxs               ... defaulting to ops
    Checkpoint file prefix set to: userexit_
    goldengate.userexit.includebefores     ... defaulting to true
    goldengate.userexit.noignorerecs        ... defaulting to false
    goldengate.userexit.noop                    ... defaulting to false
    goldengate.userexit.nosend                 ... defaulting to false
    goldengate.userexit.nosendcols           ... defaulting to false
    Thanks for any info / advice.

    Nevermind.  I was "accidentally" working off "old" srcDb exttrail extract and resulting remote pump rmttrail extract.  Since the src was built by the default GG 11.2 format (because that's the version of GG running there on the DB server), the remote pump extract that my user exit was ingesting was  also the11.2 format.  Just added the "format release 11.1" to the exttrail of the source, and re-flushed everything and my OGG-0138 goes away.
    Sorry about the noise!

  • BADI/user exit for transcation code "BP" in CRM

    Hi Experts,
    Is there a BADI / user exit that is triggered after successful saving/updating of Business Partner using transaction code "BP"?
    We want to send general infos such as partner number, Name, Birth date, etc. about the business partner being created/updated using IDoc.
    We are using CRM WinClient 4.0.
    If you know  the steps on how this requirement will be done, kindly post them.
    Thank you very much.

    I don't have any CRM system at hand, but I'm sure there are some BAdI's for this. Look in SE18 for BP or BUS, and i'm sure  you will find something.
    One suggestion though: Before going for the BadI, try and see if CRM also uses change pointers for sending Idoc's . This case you wont need any user exits / badis, an probably no programming at all.
    Transaction
    BD50: Activate Change Ptrs for Mess. Type
    BD61: Activate Change Pointers - Generally
    and use report RBDMIDOC for triggering IDoc.

  • Adobe Premiere Elements 11 unable to launch - User receives Debug & Runtime Errors

    Adobe Premiere Elements 11 unable to launch - User receives Debug & Runtime Error.  The Adobe program launches and the Premiere Elements splash screen displays.  Once the "Loading ImportQuicktime.pm" function completes the following errors display:
    The program has been re-installed without success.  The only way to open the program is to "Run as Different User" windows 7 function, using the local admin account.  The Preferences Folders have been deleted and recreated without success.  Any information for this error will be great.  Thank you for your time.

    Hi UBDEV,
    Thanks for posting on the Adobe forums.
    Please tell us if this system is on Network, if yes please make sure that My Documents Folder should be on the local drive not on the Network drive.
    Regards,
    Sandeep

  • BAdI: or User Exit for Campaign Creation   IN CRM 5.0

    Hi all,
    we are working in CRM 5.0,
    we have a Requirement like :
    when we create the campaign it should check higher level project ID (marketing Plan ID)
    if it is there it should permit for create campaign else it ll show error...
    Any BAdI: or User Exit for Campaign Creation?
    I ll geive reward points....
    Rhanks & Regards,
    Ganesh

    IN WHICH TRANSACTION U R CREATING CAMPAIGN ??

  • BADI/User Exit for WBS element creation (CRM to R/3)

    In CRM 4.0 once a Campaign or Trade Promotion is created, a WBS is also automatically in R/3 (tcode CJ20N)
    I have a requirement to fill out the 'user fields' at the WBS element level when the campaign/TPM status is set to Release.
    I also need to fill out the 'company code' at the Project Definition level.
    Could you let me know if there's a badi or user exit that i can use in order to achieve these requirements?
    Your help will be much appreciated.
    Thanks
    Elynor

    Hi Tomasz,
    Thanks for your reply. Could you give me a hint on how to use these Badis since the passing parameters cannot be changed?
    A sample code would be helpful
    Many Thanks.

  • Java User Exit for Variant Function logic in CRM

    Hello Experts,
    We have implemented Variant configuration in ECC with some variant functions / function modules.  Now we have to implement the corresponding Java class in CRM for the knowledge base & version to work. 
    Can anyone help me out to find the correct userexit where I need to implement this Java class consisting the variant function logic.
    Thank You
    Satish

    I don't have any CRM system at hand, but I'm sure there are some BAdI's for this. Look in SE18 for BP or BUS, and i'm sure  you will find something.
    One suggestion though: Before going for the BadI, try and see if CRM also uses change pointers for sending Idoc's . This case you wont need any user exits / badis, an probably no programming at all.
    Transaction
    BD50: Activate Change Ptrs for Mess. Type
    BD61: Activate Change Pointers - Generally
    and use report RBDMIDOC for triggering IDoc.

  • User-exit / BADI to control BP replication from CRM into R/3

    Hi,
    I have a scenario where besides the entries maintained in PIDE for replication from CRM into R/3, I need to control the replication or not concerning another field in CRM BP Master data.
    It's something like this:
    I need to replicate CRM prospects to R/3, but not all of them. This should be done only when a specific field from the BP master data is filled.
    I have to set the entry prospect --> ZXXX (account group in R/3) in PIDE transaction. But them I need something more to check the field in BP master data and prevent the "not prepared" prospects to be sent do R/3.
    Do I have any option to filter the replication from CRM into R/3 based in this field?
    Another possible option could be the development of a user exit or BADI that controls the BP replication to R/3. Does anybody knows a user exit where I can do this?
    Thanks a lot!
    Susana Messias

    Let me add my thanks to Sukant as well. My requirement was to exclude certain Business Partner Groupings from being uploaded to R/3. I was hoping that the filters applied in R3AC1 would actually have some effect, but they didn't. I don't understand that part yet. SAP must have had something in mind when they allowed filters for both directions of data transfer in R3AC1.
    Anyway, as Sukant suggested, I created a ZBUPA_MWX_BDOC_CREATE_MAIN function module and simply added the following code snippet:
    * Start of custom code to check whether BP grouping = 0003/0008
      LOOP AT ct_bp_extern into ls_one_bp.
        IF ( ls_one_bp-central_data-common-data-bp_control-grouping NE '0003' ) AND
           ( ls_one_bp-central_data-common-data-bp_control-grouping NE '0008' ).
          DELETE TABLE ct_bp_extern[] FROM ls_one_bp.
        ENDIF.
      ENDLOOP.
    * End of custom code to check whether BP grouping = 0003/0008
    Of course I had to create a copy of the function group, copy the includes and global variable declarations from the main program etc. But I was hoping that SAP would make such a simple filter more configurable rather than require coding, no matter how simple. If someone else with more knowledge comes across this thread in the future, please update it to let us know if we are asking for too much to have the filter option provided in R3AC1 actually work (for CRM --> R/3 data transfer).

  • Does MV45AFZZ user exit trigger when CRM sales order is replicated into ECC

    Hi All,
    When a Sales order is created in CRM, it is replicated automatically using BDOCS from CRM into ECC.
    I have requirement to code the logic during the process, when sales order is replicated into ECC.
    So I need to know the BAPI which is actually triggered to create sales order in ECC, while replication takes place.
    If I could atleast know, if USEREXITS in MV45AFZZ would trigger or not, when CRM order is replicated into ECC, then I could determine, If I could code my logic in those user exits.
    Please help me on this.

    please check this link
    keremgomi=wordpress=com
    Rgds
    Raj

  • CRM - Pricing User Exit in Java - BADI CRM_COND_COM_BADI

    Hi All
    I have to convert some user-exit from Abap to Java in order to work in CRM Pricing Scenario (I use VMC technology based on Web AS 7.00).
    In the manual attached to note 809820 (New userexit concept for pricing)
    I find this chapter but I don't understand how to work with BADI <b>CRM_COND_COM_BADI.</b>
    <b>My objective is to create Java user-exit using Custom Tables and Fileds.</b>
    <b>Passing additional information to pricing</b>
    To summarize, if the information used in a requirement is not depending on the current calculation result, then the information can be passed to the pricing engine. This is the best way to avoid e.g. DB or JCo calls from the user exits.
    Nearly all application scenarios using the pricing engine provide a way of filling additional attributes.
    1. Create a field catalogue entry for the additional attribute
    2. Program the filling of that attribute value
    The application calling the pricing engine and the way it is allowing customer code to fill or influence attributes is not part of this document. Here is only a short list of documentation to start with (also various notes exist):
    Application Description
    CRM Online Order Processing
    Implement BADI CRM_COND_COM_BADI. Note 850077
    Mobile Solutions Implement VBA user exit methods on SPCDOCHANDLER or SPCITEMHANDLER.Note 677314 and Note 934216
    Best regards
    Davide Ivanov
    [email protected]

    Hi davide,
    The BADI CRM_COND_COM_BADI is used for filling the pricing communication structure.
    If you have added any field at header level of the field catelog that will available in the changing parameter of the method HEADER_COMMUNICATION_STRUCTURE.
    If you have added any field at item level of the field catelog that will available in the changing parameter of the method ITEM_COMMUNICATION_STRUCTURE.
    Additional fields added at catelog can be filled with the values using this BADI.
    Thanks & Regards,
    Raghuram. K.R.

Maybe you are looking for

  • I tunes Software won't work

    I have service pack 2 installed a have the latest itunes and ipod shuffle software insalled, but still i tunes will not open this error message keeps comming up"iTunes has encountered a problem and needs to close. we are sorry for the inconvenience."

  • Numeric column, last digit of a numeric field is replaced by zero

    I have a annoying issue, this started when we upgraded to oracle10g and win 2k3 The code downloads the rows and loads into text file.. But sometimes the last digit of numeric field is replaced by zero.. e.g the value of field is 123.13 then will be d

  • Smartforms-Junk Characters being printed with text

    Hi, I have two issues regarding smartforms 1.Whenever I add any text in the smartform in the text editor ,for example, "test", the print preview shows as above, BUT in the printout it comes as #test#. 2.Similarly, when I use READ_TEXT function module

  • Urgent : MDB stops listening to the queues after some time  !!!

    Hi, I am using OJMS with OC4J 10.1.2 and db 9.2.0.5. I have a web application which send messages into the queue very frequently. But the problem is the MDBs stop listening to the queues after some time (1-2 days) and no more messages will be dequeue

  • On-Prem Lync 2013 moving to Lync Online (Office 365)

    We have an office of about 130 users, all of whom use either Lync 2010 or Lync 2013 client to connect to Lync Server 2013 (on-prem). We have recently signed up for Office 365's E3 plan which includes Lync Online, which we plan on using in favor of on