Is it safe/okay to use RSNAST00 program in a user-exit?

Hi Experts,
I got a business requirement and its:
After SAVEing the sales order......by using the user-exit USEREXIT_SAVE_DOCUMENT I have to trigger custom IDOC (currently its in the system and using for some other application) outbound direction to XYZ logical system.
But, the functional spec is asking me to to use RSNAST00 program in the above said user-exit.
So pls clarify,
1) Is it safe to use this RSNAST00 program in the user-exits?
2) If so, Wht is the best/safest approach to use it? is it by using SUBMIT AND RETURN statement? or do we have any other?
3) Actually, guess this is not good approach (achieving via ABAP workbench/triggering IDOC outbound by custom code of user-exit) to meet this functionality.......its a configuration task need to done by functional guy.

Thank you Vinod.
If thats the ONLY concern, then I can write a seperate FM, where in I will use SUBMIT RSNAST00 AND RETURN statements, and I will call this FM in a SEPERATE / BACKGROUND TASK, which works in a seperate LWU.
Pls. shade some light
Thank you

Similar Messages

  • Trigger a waiting ABAP program from a User Exit of CO01

    Hi all,
       We would like to launch a ABAP program from a User Exit (EXIT_SAPLCOZV_001) of CO01, this ABAP program has a special characteristic: using Function Module RFC_PING_AND_WAIT, so this program will be existing until terminating event coming.
        Our purpose is terminate CO01 normally before finishing of ABAP program. We don't know if it's possible?
        Actually:
           1. when we use SUBMIT ..., the process will stop CO01 (stop not normally) and then launch ABAP program. => This is not suitable for our purpose.
           2. when we use SUBMIT ... and RETURN, CO01 will wait for finishing of ABAP program => This is not suitable for our purpose too, because we wish CO01 terminated normally when ABAP program is still existing and waiting for its terminating event.
    Do you have a solution that is suitable for our purpose, could you please help us?
    (The context is below:
    Time:  Begin-->CO finished> ABAP finished-->    
       Launch CO01 --> Call User Exit --> Call ABAP program for waiting --> CO01 saved normally.
    > ABAP program still waiting ---> waiting for terminating event       
    Thanks a lot,
    Vinh Vo

    Hi,
         Try with the function module BP_EVENT_RAISE, it takes eventid, and eventparm as import parameters in the User exit.
    1) With Eventid, you create a background job of the ABAP program and schedule it. Eventparm can be the Production order number.
    2) So when ever the Event is triggered the FM gets triggered and which in turn run the ABAP program, so the foreground the CO01 transaction runs without waiting for the ABAP program to complete.
    Regards
    Bala Krishna

  • How to get the program where the User exit is use

    Hi,
       Could anyone let me know how to get the program which is using the user exit
    EXIT_SAPLFMR4_002 .
    Thank you.
    Donny~

    You can do a where used on the functino module EXIT_SAPLFMR4_002 in SE37.
    In this case, you user exit is called from a function module FMRE_FI_BELEG_CHECK.  Which in my system, doesn't appear to be called directly. It could be called dynamically.
    Regards,
    RichHeilman

  • Using Field-Symbols in a user exit to change the importing parameter

    Please don't ask why but I need to use a user exit, changing the importing parameter.  I decided that I could do this using field-symbols.
    Please excuse my ignorance but I have never used field symbols for something such as this.
    Here is my goal:  Loop through an internal table (im_document-item).  When I find what I need I want to make a change to this line (not so hard if I am looping into a field symbol) and also append a line to the end of the table im_document-item.
    I have the following so far:
      DATA: wa_item TYPE accit,
            wa_item_out type ACCIT_SUB.
    FIELD-SYMBOLS: <document> type acc_document,
                   <accit> TYPE ACCIT.
    LOOP AT im_document-item ASSIGNING <accit> where saknr = '0000211000'.
    * Modify the curent line
    wa_item = <accit>
    * Append a new line into table im_document-item.
    ENDLOOP.
    How can I use field-symbols to append a line to this table?  Please note that the table in question (im_document-item) is an importing only parameter.
    Regards,
    Davis

    that will allow me to append an initial line with <accit> pointing to the line. Therefore I just have to modify <accit> and the new line will then have my changes?
    Yep, that is exactly it.    So after the APPEND statement, simply fill the fields of the <accit>.
    append initial line to im_document-item ASSIGNING <accit>.
    <accit>-field1 = 'Blah'.
    <accit>-field2 = 'Blah'.
    Regards,
    Rich Heilman

  • I'm using the EXIT_SAPLV56U_004 for my user exit of transaction VT02N

    Hi all,
             In the function module EXIT_SAPLV56U_004 .There are I_XVTTK Shipment Headers (Current), (old).....
    so which table  i have to use according to my requirement for further coding in that function module...
    Thanks & Regards,
    Santhosh kumar.R

    Hello,
    Please put a break point in the code of exit and see the value flowing into the exit field under different scenarios..you will be able to understand the population of fields ...when they will occur
    This way the data credibility can be assured..Pls try if it can be used
    Regards
    Byju

  • ABAP program error for user EXIT

    Hi, I wrote code in  EXIT_SAPLRSAP_001
    When check and active it there were no syntax errors but when go rsa3 and check it gives an error at the follwing line
      it_mcekpo[] = c_t_data[].
    Runtime error: The internal talbles are neither compitable nor convertable.
    I have defined it_mcekpo as below:
    DATA  BEGIN OF IT_MCEKPO OCCURS 1.
            include structure mcekpo.
    DATA  END   OF IT_MCEKPO.
    But when I double click on 'c_t_data[]' , I get a message "object not defined, do you want do define".
    Can some one tell me how should I define this, what aption I should choose and what is the strcture.
    I am trying to add afnam, banfn and bednr from ekpo table to MC02M_0ITM (2LIS_02_ITM).
    And is there any naming convention for 'it_mcekpo' and 'c_t_data'?
    Any help is appreciated.
    (This is my first userexit)
    data: begin of it_ekpo occurs 0,
          ebeln like ekpo-ebeln,
          ebelp like ekpo-ebelp,
          afnam like ekpo-afnam,
          banfn like ekpo-banfn,
          bednr like ekpo-bednr,
         bukrs like ekpo-bukrs,
      end of it_ekpo.
    when '2LIS_02_ITM'.
      it_mcekpo[] = c_t_data[].
      select ebeln ebelp afnam banfn bednr bukrs
      from ekpo  into table it_ekpo
        for all entries in it_mcekpo
        where ebeln = it_mcekpo-ebeln and
              ebelp = it_mcekpo-ebelp.
    performance imprv.
      if not it_ekpo is initial.
         sort it_ekpo by ebeln ebelp.
      endif.
      loop at it_mcekpo.
        read table it_ekpo with key ebeln = it_mcekpo-ebeln
                                    ebelp = it_mcekpo-ebelp
                                    binary search.
        if sy-subrc = 0.
          it_mcekpo-zzafnam = it_ekpo-afnam.
          it_mcekpo-zzbanfn = it_ekpo-banfn.
          it_mcekpo-zzbednr = it_ekpo-bednr.
         it_mcekpo-zzabukrs = it_ekpo-bukrs.
       endif.
       modify it_mcekpo.
    endloop.

    Hi,
    TRY the below code :
    TYPES BEGIN OF TYPE_02ITM.
         INCLUDE STRUCTURE MC02M_0ITM.
    TYPES END OF TYPE_02ITM.
    TYPES:  BEGIN OF TYPE__ekpo,
    ebeln like ekpo-ebeln,
    ebelp like ekpo-ebelp,
    afnam like ekpo-afnam,
    banfn like ekpo-banfn,
    bednr like ekpo-bednr,
    bukrs like ekpo-bukrs,
    end of type_ekpo.
    CASE I_DATASOURCE.
    when '2LIS_02_ITM'.
    WHEN '2LIS_02_ITM'.
    DATA:
      ITAB_EKPO TYPE STANDARD TABLE OF TYPE_EKPO
           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    DATA:
      ITAB_02ITM TYPE STANDARD TABLE OF TYPE_02ITM
           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    ITAB_02ITM[] = C_T_DATA[] .
    select ebeln ebelp afnam banfn bednr bukrs
    from ekpo into table itab_ekpo
    for all entries in ITAB_02ITM
    where ebeln = ITAB_02ITM-ebeln and
    ebelp = ITAB_02ITM-ebelp.
    performance imprv.
    if not itab_ekpo is initial.
    sort itab_ekpo by ebeln ebelp.
    endif.
    loop at ITAB_02ITM.
    read table itab_ekpo with key ebeln = ITAB_02ITM-ebeln
    ebelp = ITAB_02ITM-ebelp
    binary search.
    if sy-subrc = 0.
    ITAB_02ITM-zzafnam = itab_ekpo-afnam.
    ITAB_02ITM-zzbanfn = itab_ekpo-banfn.
    ITAB_02ITM-zzbednr = itab_ekpo-bednr.
    ITAB_02ITM-zzabukrs = itab_ekpo-bukrs.
    endif.
    modify ITAB_02ITM.
    endloop.
    c_t_data[] = ITAB_02ITM[].
    With rgds,
    Anil Kumar Sharma .P

  • What user exit to use in F110?

    Hi everyone!
    In F110, I need to check if Posting Date used is equal to Run Date.
    What user exit should I use to write this logic?
    Thank you!

    hi,
    try these exits put break-point and check.
    FDTAX001      Enhancement to Transaction FDTA (event after the download)
    FEDI0002      Function exits for EDI DOCS in FI - Incoming pyt adv.notes
    FEDI0003       Function exits for EDI docs in FI - Save PEXR segments
    FEDI0004      Function exits for EDI docs in FI - particular events
    FEDI0006      Function Exits for EDI-docs in FI: Save IDCR Segments
    RFFOX003      Frame for user exit RFFOX003 (in program RFFOM100)
    RFFOX041      Framework for user exit RFFOX041 (in program RFFOBE_I)
    RFFOX042      Framework for user exit RFFOX042 (in program RFFOBE_E)
    RFFOX043      Framework for user exit RFFOX043 (in program RFFOBE_D)
    RFFOX061      Frame for user exit RFFOX061 (in program RFFOCH_P)
    RFFOX062      Frame for user exit RFFOX062 (in program RFFOCH_P)
    RFFOX063      Frame for user exit RFFOX063 (in program RFFOCH_P)
    RFFOX064      Frame for user exit RFFOX064 (in program RFFOCH_P)
    RFFOX065      Frame for user exit RFFOX065 (in program RFFOCH_P)
    RFFOX066      Frame for user exit RFFOX066 (in program RFFOCH_P)
    RFFOX071      Frame for user exit RFFOX071 (in program RFFOCH_U)
    RFFOX072 Frame for user exit RFFOX072 (in program RFFOCH_U)
    RFFOX073 Frame for user exit RFFOX073 (in program RFFOCH_U)
    RFFOX074      Frame for user exit RFFOX074 (in program RFFOCH_U)
    RFFOX075      Frame for user exit RFFOX075 (in program RFFOCH_U)
    RFFOX081      Frame for user exit RFFOX081 (in program RFFOF__T)
    RFFOX082      Frame for user exit RFFOX082 (in program RFFOF__T)
    RFFOX100      Frame for user exit RFFOX100 (in program RFFOUS_T)
    RFFOX101      Frame for user exit RFFOX101 (in program RFFOUS_T)
    RFFOX102      Frame for user exit RFFOX102 (in program RFFOUS_T)
    RFFOX103      Frame for user exit RFFOX103 (in program RFFOUS_T)
    RFFOX105      Frame for user exit RFFOX105 (in program RFFOUS_T)
    RFFOX200      Frame for user exit RFFOX200 (in program RFFONZ_T)
    RFFOX210      Frame for user exit RFFOX210 (in program RFFOAU_T)
    RFFOX211      Frame for user exit RFFOX211 (in program RFFONZ_T)
    RFFOX230 General program for user exit RFFOX230 (in program RFFOJP_L)
    RFFOX240      Enhancement for User Exit 240 (RFFOAT_P)
    RFFOX250      Enhancement for User Exit 250 (RFFODK_E)
    RFFOX901      Framework for user exit RFFOX901 (in program RFFOM100)
    RFFOX902      Framework for user exit RFFOX902 (in program RFFOM100)
    RFFOX104      user exit
    thanks.

  • User Exit OR Badi for MK01 transaction (used for saving vendor amster data)

    Hi All,
    I have a requirement where I have to call my workflow, when we create the Vendor using my custom transaction (ZMK01, which is a copy of standard transaction MK01).
    For Workflow triggering I am using FM 'SAP_WAPI_CREATE_EVENT' in the user exit  'EXIT_SAPMF02K_001' but this is only for checking the data on saving Vendor Master.
    So I want to use FM 'SAP_WAPI_CREATE_EVENT' at right place. For that , I need User-Exit or BADI which is used for saving vendor master data.
    Could anyone please help me to find out the user exit or BADI for save event of vendor master data using transaction MK01.
    Looking forward to your advise and thanks in advance.
    Best Regards,
    Mamta

    Hi ,
    I forgot to activiate the project linked with User exit 'EXIT_SAPMF02K_001' .
    so problem is solved now
    Thanks,
    Mamta

  • User Exit to be used in Substitution

    Hello,
    We have recently got an requirement from one of the clients as they want to copy the material description to the GL text field (against Doc Type WA & WE) . I am able to find that this can be achieved by way of creating substitution, but I wander which user exit to be used for this purpose.
    Its been my experience that when ever a question of user exit arise I go blank as which user exit to be used, where will I get all this information with clear update motioning the purpose or use of each SAP delivered user exit.
    I have tried goggling it out but I was not able to find much use full  stuff. Please share your expertise.
    Thanks a ton in advance,
    Regards,
    Shilpa

    Hi Shilpa,
    there is no hard code rule to use the specific user exit for substitutions, attached screen shots will help you to resolve the issue.
    Step 1: Go to the t.code: OKC9, specify the controlling area and event 0001.
    Step 2 :  Create the substitution and select the step (attachment 1)
    Step 3: below mentioned screen shot specify the any existing user exit (naming conversion starts with U) by F4 option and double click on the particular exit
    Step 4: you can see the Report ZGGBS800, here you can create the user exit next free number starts with U naming conversion, once it's created the replace the existing user exit in the substitution rule.
    Hope this will help you to understand the user exit process in substitution rule.
    Note: Only substitution rules there is no hand code rule for user exit, for other transactions we need to check the SAP delivered exits.
    Make sure that substitution rule must be activated once exit created
    Thanks & Regards
    Srinu

  • Using HR_INFOTYPE_OPERATION dont call user exit

    Hi ,
    I need to write BAPI that create entry in infotype .
    I am using FM "HR_INFOTYPE_OPERATION" ...
    This FM don't call the user exit EXIT_SAPFP50M_002 ....
    Am i using the FM correctly ?
    How can i use the FM with the user-exit .
    Thanks .

    Hi,
    Why do you want to call user-exit. What it your requirement?
    Regards,
    Atish

  • User exit in Z program

    Hello all,
    I have copied a standard program to a Z program.
    The standard program as a user-exit, but in the Z program this user-exit won't work. Does anyone know what i have to do so it will work?
    Thanks in advance,
    Nuno Silva

    Hi
    User exit is similar piece of code wirtten in the funtion module.
    so if you copied a standrad program into a Z program the user exit will get triggerd if it not got triggred. Copy that function module into a Z funtion module and try to call that Z functionmodule in your Z program.
    Regards,
    Kiran.

  • Use of BAPIs in user exit macros

    Is it ppssible to use BAPIs in user exit macros in the APO MacroBuilder?
    Thanks for any advice on this...

    Hi,
    Not sure what function you want to acheive, but basicly you can use any code in the user-exit macro's customizing code, but at last you must fill in the spcified return value to make the user-exit macro work.
    Best Regards,
    Ada

  • Use CREATE_TEXT on VA01 user exits

    Hi,
    I need to write item text using FM CREATE_TEXT in VA01 user exits. The FM required VBELN and I don't have when creating order.
    How can I create item text in VA01 user exits ?
    Thanks,
    Quincy

    Hi,
    i have a similar requirement where i need to copy custom populated fields of vbap table into item->text->item notes tab.
    i tried with both create_text and save_text. but i couldn't see the item in the item->texts->item notes.
    here is my code:
    CONCATENATE vbap-zzrelid vbap-zzsorg2 vbap-zzsorg3
                  vbap-zzsorg4 vbap-zzsorg5 vbap-zzsorg6
                  vbap-zzsorg7 vbap-zzsorg8 vbap-zzsorg9
                  vbap-zzsorg10 INTO gt_textname.
      gt_textobject-tdid  = c_0002.
      gt_textobject-tdname     = gt_textname.
    gt_textobject-tdobject   = c_vbbp.
      gt_textobject-tdspras    = sy-langu.
      APPEND gt_textobject.
      CONCATENATE 'relationship Owner:' vbap-zzrelid INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 2 :' vbap-zzsorg2 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 3 :' vbap-zzsorg3 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 4 :' vbap-zzsorg4 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 5 :' vbap-zzsorg5 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 6 :' vbap-zzsorg6 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 7 :' vbap-zzsorg7 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 8 :' vbap-zzsorg8 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 9 :' vbap-zzsorg9 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 10 :' vbap-zzsorg10 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
    CALL FUNCTION 'SAVE_TEXT'
          EXPORTING
            header          = gt_textobject
            savemode_direct = 'X'
          TABLES
            lines    = gt_text
          EXCEPTIONS
            id       = 1
            language = 2
            name     = 3
            object   = 4
            OTHERS   = 5.
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    kindly resolve the problem with the above code.
    Thanks,
    Preethi.

  • I have Iphone5, i make video calls using line program, i want know video calls is safe or anybody can see my video call??

    i have Iphone5, i make video calls using line program, i want know video calls is safe or anybody can see my video call??
    some friends told me that there is hackers can have all my data, photos, videos, listen and record my voice and video calls. is this right?

    some friends told me that there is hackers can have all my data, photos, videos, listen and record my voice and video calls. is this right?
    Not on an Apple device, no.
    Things are not the way popular movies and TV shows would have one believe.
    Apple goes to extremes to ensure your personal information remains protected, to a far greater extent than any other consumer product manufacturer on Earth.
    Your FaceTime videos, Messages, and everything else you do with your iPhone are as secure as your iCloud credentials.
    Anyone with your iCloud or Apple ID credentials has complete and unfettered access to everything associated with them, equal to that of your own, so keep them secure. Never divulge them to anyone you would not trust equally with your wallet, your girlfriend / boyfriend / spouse / child / Lamborghini etc.

  • Firefox crashes when I try to use DataLoad, and I was able to use this program a month ago.

    In the recent past I have been able to use a program called DATALOAD (shareware) to load data into Firefox web forms (specifically web based sales tax returns).
    However, now every time I try it now Firefox crashes, so I am forced to use IE (which I hate). The last time I used Dataload was in April 2011 (for my quarterly tax returns).
    On of the latest updates to Firefox must have a conflict with this program.
    Can you please research to see what changed in Firefox to make it crash when using Dataload? I do not want to use IE if I do not have to.

    Hmmm, That is very odd. What is the link you are using? Are you logged
    in to YouTube?
    Many site issues can be caused by corrupt cookies or cache.
    * Clear the Cache and
    * Remove Cookies<br> '''''Warning ! ! '' This will log you out of sites you're logged in to.'''
    Type '''about:preferences'''<Enter> in the address bar.
    * '''Cookies;''' Select '''Privacy.''' Under '''History,''' select Firefox will '''Use Custom Settings.''' Press the button on the right side called '''Show Cookies.''' Use the search bar to look for the site. Note; There may be more than one entry. Remove '''All''' of them.
    * '''Cache;''' Select '''Advanced > Network.''' Across from '''Cached Web Content,''' Press '''Clear Now.'''
    If there is still a problem,
    '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]''' {web link}
    While you are in safe mode;
    Type '''about:preferences#advanced'''<Enter> in the address bar.
    Under '''Advanced,''' Select '''General.'''
    Look for and turn off '''Use Hardware Acceleration'''.
    Poke around safe web sites. Are there any problems?
    Then restart.

Maybe you are looking for