User exit export parameter

Hi
Now we setup po mail output. But we found when po relased, the release person become the po mail sender. this is not we wanted. We checked with sap, they mentioned There is a user exit in program RVCOMFZZ 'userexit_komkbea_fill'.  
In this user exit, I could select purhcase group mail address, but which parameter I should export ,then the mail address could be mail sender ?
eg: export      memory id " xxxx" ,  I don't know which memory id name I should export?
Thanks
Alice
Edited by: alice zhang on Jan 28, 2008 3:20 PM

Hi
You need to pass it in the same way as the BAPI parameter - referring to the Data element/structure in that case, to avoid any dumps.
Let me know if any issues.
Regards
- Atul

Similar Messages

  • Export statement in user-exit??

    I have used the following export statement in a user-exit:"EXPORT xaccit TO MEMORY ID 'ZCACHEPPA'."-I have doubt that - will this statement export the contents of the table XACCIT to memory and those contents in the memory will be imported by the IMPORT statement in other user-exit.....??
    If no,then which EXPORT/IMPORT statement should be used....is there any other keyword that can be used to export the contents to the memory?

    Hi
    See the doc related to SAP Memory and ABAP memory
    SAP memory is a memory area to which all main sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session, or to pass data from one session to another. Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters). These parameters can be set either for a particular user or for a particular program using the SET PARAMETER statement. Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement. The most frequent use of SPA/GPA parameters is to fill input fields on screens
    SAP global memory retains field value through out session.
    set parameter id 'MAT' field v_matnr.
    get parameter id 'MAT' field v_matnr.
    They are stored in table TPARA.
    ABAP memory is a memory area that all ABAP programs within the same internal session can access using the EXPORT and IMPORT statements. Data within this area remains intact during a whole sequence of program calls. To pass data
    to a program which you are calling, the data needs to be placed in ABAP memory before the call is made. The internal session of the called program then replaces that of the calling program. The program called can then read from the ABAP memory. If control is then returned to the program which made the initial call, the same process operates in reverse.
    ABAP memory is temporary and values are retained in same LUW.
    export itab to memory id 'TEST'.
    import itab from memory Id 'TEST'.
    Here itab should be declared of same type and length.
    http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm
    ABAP Memmory & SAP Memmory
    http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm
    http://www.sap-img.com/abap/type-and-uses-of-lock-objects-in-sap.htm
    Reward points if useful
    Regards
    Anji

  • Export to memory"  (bukrs) in one user exit and import to memory in other.

    I have to "export to memory"  (bukrs) in one user exit and import to memory in other.
    Does anyone has an example

    in one user exit:
    EXPORT field TO MEMORY ID 'Z_BUKRS'.
    in another user exit:
    IMPORT field FROM MEMORY ID 'Z_BUKRS'.
    what is the problem?

  • User Exit - infotype 105

    Hi,
    I need a user exit that will executed when the user will update infotype 0105.
    I tried to use EXIT_SAPFP50M_002 but this function wasn't executed when updating infotype 0105
    Thanks,
    Ofir

    The User Exit was ZXPADU02..
    I had a mistake in my code.
    I have a problem with this user exit.
    The user exit export current info type record, but this record isn't returning the new e-mail address.
    If I return the e-mail address "manually" (via bapi), I see the old e-mail.
    How can I return the new e-mail address (without using a badi) ?
    Thanks you all again,
    Ofir

  • Using a variable not in the Export,Import, table Parameters in USER EXIT

    Hi all,
       During the Invoice Creation, I need to add an entry in the VBFS table, so that it will be displayed in the system log.  In the FM 'RV_INVOICE_CREATE', the structure corresponding to it is XVBFS.  There is a user-exit   CALL CUSTOMER-FUNCTION '002', in this FM 'RV_INVOICE_CREATE'.  But the import, export or Table Parameters does not have XVBFS.
      How can I use XVBFS inside the User exit?..
    Please help.
    Regards,
    Asha

    Hi,
    I dont know whether this will help u...
    write this in user exit...to access variables/tables of main program..
    FIELD-SYMBOLS: <komv>.
    ASSIGN ('(SAPLMEPO)TKOMV[]') TO <komv>.
    where.. SAPLMEPO is the main program...and TKOMV[] is a internal table in SAPLMEPO.
    regards
    Sukriti....

  • Export/Import Parameters dissapear when using user-exit

    I am using some import/export parameters in a dynamic action when I create a new record (infotype). I am also using a user exit to avoid modifying BEGDA and ENDDA when I modify the record (IPSYST = 'MOD'). Using this user-exit, the parameters dissapear from memory so the dynamic action does not execute well. What can I do to use the user-exit?? Anything to add?

    In the dinamic actions when I create, I delimit records on infotype with export/import parameters defined in infotype Module Pool. When I delete, I avoid deleting the record if it is not the last one. With the user-exit the modification of begda endda in infotype is not allowed. If I use the user-exit, the dinamic actions which use export/import parameters, don't work.
    I have tried to do in MP what I do in user-exit but it is not easy because I haven´t got in PSAVE what I want.

  • Export Control /Legal control: need user exit to customize

    I have a situation where I want to determine the export control license for a sales order. SAP uses the function module RV_EXPORT_CONTROL to carry out the required check.
    The FM uses the country defined for the ship-to-party as the destination country and carries  out checks to determine if there is an embargo for the good in the line item to destination country.
    My requirement is that the actual destination country or the ultimate destination country ( which is known and not same as the country of the ship to party ) be used to carry out the embargo check.
    I could not find any user exit/badi for the same. Is there a way to achieve this functionality. It has been hard coded in the FM. Can we do any customizing settings to achieve this? I could find two partner function EU ( End user for foreign trade ) and UC ( Ultimate Consignee )...can these be somehow used/ configured to achieve the desired functionality? Or is there any other different approach to the issue.
    Currently I plan to copy the standard FM and add my functionality. I will turn off the standard export control and then I i will call the custom FM in the end ( userexit_save ) as the export control is carried out at save.
    Any suggestion/approaches will be appreciated.

    I too have same issue,  from where the Fm  RV_EXPORT_CONTROL is triggering
    Edited by: erakarthi on Jul 14, 2011 8:44 AM

  • Export internal table to memory in User Exit FM

    Hi all,
    My scenario here is to export an internal table in one user exit FM and import it back in another user exit FM.
    I was trying to use
    Export lt_table to memory id 'LABEL'.
    then
    Import lt_table from memory id 'LABEL'.
    But then i hit error in the import statement. How can I rectify this?
    Thanks. Answer will be rewarded.

    Refer to the below related threads
    Export an internal table to memory and import from memory into an internal
    http://help.sap.com/saphelp_erp2005/helpdata/en/fc/eb3bf8358411d1829f0000e829fbfe/frameset.htm
    Regards,
    Santosh

  • 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

  • Problem with User Exit parameter in MD01

    I have done the coding for user exit in MD01. But the exit is not being triggered even when the exit key is specified in the selection screen of the transaction.
    I need to control the material being planned and restrict it to type ROH only.
    Please help me... I need to do this fast

    Hi Sultana,
    The user exit key is stored in table T450U. But the user exit parameter is not stored. Instead, it is entered in the selection screen of MD01.
    Also, You can check the following Transaction codes if they help you to solve yor problem:
    MD20 - Create planning file entry
    MD21 - Display planning file entry
    MDAB - Set up planning file entry in background
    MDRE - Check planning file entry
    Hope it helps.

  • Get parameter in User-Exit

    Hi experts,
    I am performing an enhancement on me21n. I have found the required user-exit and would like to pick up the value from the screen field of material (MEPO1211-EMATN). I have found that that field has a parameter 'MAT' on it. How do i fetch the value from that parameter. I have used the following but it is not working.
    DATA: pmat TYPE mepo1211-ematn.
    GET PARAMETER ID 'MAT' FIELD pmat.
    Thanks in advance guys.

    Hi,
    you can use field symbols to fetch the screen values.
    eg.
    FIELD_SYMBOLS : <FS> type ANY.
    eg. ASSIGN ('<(PROGRAM NAME>)SCREEN FIELD') INTO <FS>.
    if you use SET/GET parameter you are getting values from SAP memory. which means if some other users put values from  another session you will get a different value using SET/GET parameter.
    regards
    aromal

  • Search Help User Exit (if "one" entry in hit list, skip hit list and export)

    Hi everyone,
    I hope you can help me. I spent many hours on this one but I just could not find a solution (by myself and by searching google and searching the SCN).
    Problem like thread subject.
    I have the requirement to create a search help using search help exit. Done so far. My search help works fine. There´s a Sel Opt and I get the hit list with several entries. "But" I have one problem. If there is only one entry I have to skip the hit list and just export the value straight to the caller.
    I just don´t get it to work. I used the function module F4UT_PARAMETER_RESULTS_PUT but there was no value in shlp-interface-value. Record Tab was written, but value is not exported.
    Maybe you got some hints for me?`
    Best regards
    Dominik

    Hi Raymond,
    I passed as followed:
    ***CALL FUNCTION 'F4UT_PARAMETER_RESULTS_PUT'
    ***  EXPORTING
    ***       PARAMETER         = 'DOC_ID'
    ***       VALUE             = ls_disp_data-doc_id
    ***       fieldname         = 'DOC_ID'
    ***  TABLES
    ***       SHLP_TAB          = SHLP_TAB
    ***       RECORD_TAB        = RECORD_TAB
    ***        SOURCE_TAB       = lt_disp_data
    ***  CHANGING
    ***       SHLP              = SHLP
    ***       CALLCONTROL       = CALLCONTROL
    ***  EXCEPTIONS
    ***       PARAMETER_UNKNOWN = 1
    ***       OTHERS            = 2.
    LT_DISP_DATA is filled with one entry only. DOC_ID is the name of the field I want the value to be set.
    Update: It´s fixed. I reset the whole thing. I did set callcontrol-step = 'RETURN' after function call, "but" at the end of the coding there was a leftover from previous tries (an empty if callcontrol-step = 'RETURN' -shell). By setting this condition explicitly the "standard flow" was interrupted.
    So, in short: I had to delete the empty if-condition for callcontrol-step = RETURN and then it worked.
    Thank you all for your feedback, hints and suggestions!
    Best regards,
    Dominik

  • Export from User exit.

    hi Guru's
    I am using this is a user exit:
    DATA: lv_diff TYPE n.
    lv_diff = TRUNC( wmara-mhdhb - lv_mhdhb ).
      EXPORT lv_diff TO MEMORY ID 'ZXXXXX'.
    and importing in a custom program:
    DATA: lv_diff TYPE n.
    IMPORT lv_diff FROM MEMORY ID 'ZXXXXX'.
    Th sy-subrc eq 0 in Export but not at import... I searched the forum and found I am doing right... why is this lv_diff not filled in import program?
    Thanks.

    Hi,
    Try using these statements..
    IMPORT <f1> TO <g1> <f2> TO <g2> ... FROM DATABASE dbtab <ar> ID <key>
    EXPORT <f1> TO <g1> <f2> TO <g2> ... TO DATABASE dbtab <ar> ID <key>

  • EP 6.0 User Export Parameter com.sapportals.portal.navigation:uipmode=2

    When exporting users from EP 6.0  under "User Administration > Export/Import" , I have noticed that the following parameter is being generated in the text file  :
    com.sapportals.portal.navigation:uipmode=2
    I've not been able to find any documentation to what this parameter actually is.
    This only occurs on some users not all users.
    Sometimes the value is =1 and =0.
    This is a sample text file generated :
    User]
    uid=BLOGGJ
    role=
    group=MY_USER_GROUP1;Everyone;GUEST_USERS_COMPANY;Authenticated Users;
    email_address=[email protected]
    first_name=Joe
    last_name=Blogg
    country=GB
    language=en
    time_zone=Etc/GMT
    department=DEMO USET
    com.sapportals.portal.navigation:uipmode=2
    end
    Any help appreciated.

    Hi there
    The import works without problems.
    However, we have Global Work Protect switched on so that it prompts for you to "save" data or "discard" it.
    The "personalize" option to set "work protect" has been disabled so that users cannot set their own own Work Protect Feature.
    It seems that users that were created with uipmode=2, have a personalized Work Protect which over writes the default global settings and does not prompt you to save data.
    When I switched the "personalize" work protect feature back on, this did seem to be the case to check for those users.
    I'm looking for some proper documentation to confirm my findings.
    Any assistance appreciated.

  • User Exit to Export Company Code.

    Hi All
    I am facing this issue, where when the FRA changes the trip form backend and approves, the WBS Elements are not converted properly. Please help me find a User Exit for the same where we can export the Company Code.
    Thanks in advance.
    Harsh

    Hello Shubham,
    check this exit "EXIT_SAPMM06E_012". Reply if this serves your purpose.
    regards,
    Prashant Rathore.

Maybe you are looking for

  • How do I open a .aspx file from my utility supplier? I am not an expert!

    How do I open a .aspx file from my utility supplier? I am not an expert!

  • Change Trading Partner

    Hi, How do you change the trading partner in a posted document?  We want to clear an account but there is a problem with the trading partner in one of the line items and we can not change the trading partner as it is greyed out.

  • Help needed using adobe exportpdf

    The first time I used adobe export pdf it worked well. However the next time and every other time I try to convert a pdf doc to word docx I get the error message at the end of the uploading session. "pdf doc failed to export to m,icrosoft word.  Ther

  • Help menu Right click in the Safari

    I changed my system language to Hebrew And since every time I click on the right mouse button in the Safari. I opened a menu with half-wordsLook at the picture Please help me

  • Viewing IBR converted files in other than Content server

    Hi, If any image which is converted using Inbound refinery can be seen in content server with different renditions. But I am not able to see the same in Webcenter Spaces using Document Explorer. Is there any possible way for users to download differe