Gui_Download inside an User-Exit

Hi;
I'm using user-exit "RFFOX901" to generate bank transfer file.
If i use RFFOM100 program from SE38 i can debug an generate transfer file with Gui_Download Function from that user-exit.
But, if i run F110 y doesn´t allow to debug or create transfer file with Gui_Download, but it creates the header line in the structure E_DTAM100H and display the generated file with the header..
We don´t want to use the structures for SWIFT transfer file but we want to create our own format and download the new file from this user-exit.
Thanks on advance.
David Fúnez
Tegucigalpa, Honduras

When you run F110 you are running your program in batch so GUI_DOWNLOAD wont work.
If you are on the same n/w as of the server you can use OPEN DATASET to download files to your local machines.
Thanks
Bhanu

Similar Messages

  • Making parmanent changes to a internal table inside a user exit

    Hi All,
    I am having a User exit to which I am passing a structure as importing parameter.
    The user exit is not exporting the same structure, but is exporting some other values.
    My problem is that I want to make parmanent changes in the structure I am passing to the user exit.
    Currently what is happening:
    I am passing the structure to the user exit. It has got 6 rows. Inside the user exit I am making some changes to a particular field of all the rows. Till the program control is inside the user exit the changes in the structure are visible. As soon as the control come out of the user exit, the values for the field are switched to teh old values(values before passing to teh user exit).
    My question is, is there any method to make changes to a internal table inside a user exit and these changes are visible outside it when the program control come out of the user exit. (This is when the internal table to which the change is made in not exported by the user exit)

    Hi Dear,
    Your changes done in import parameters will not reflect outside exit. You can only change the values of export parameters...
    If you have very urgent requirement then make changes in SAP''s Standard code.
    For your problem you can write to SAP. In many cases SAP provides the solution.
    Award Points If Useful.

  • Update the database table inside an user exit.

    Hi Experts,
    I have a issue where i have to update a custom table in an User exit.
    I am using Lock object for ENQUE/DEQUE.
    I have tried to use statements like UPDATE/MODIFY inside the user exit.
    But the problem is that it's not updating the database table at the same time.
    I know if i use COMMIT WORK it can update at the same time but it's not advisable to use COMMIT inside a work.and also it gives a short dump.
    The real issue is that this custom table is read for batch creation at the same time for different users.
    Now if it the program does not update the database table at the same time then other users also read the same data and create the same Batch number..
    While requirement is to create a different/unique batch numbers.
    Program is updating the table but it's taking time..so in between other users are creating the same batch number.
    Please guide me what would be the best solution for this.
    Regards,
    Amit Kumar Singh

    Thanks for your quick reply.
    My actually requirement is like that.
    I have to create a Process Order using tcode COR1.
    After passing some input value it goes inside an User Exit.
    There one Custom table is maintained which stores some fields like month,year,numeric key field,etc.
    The new batch number is created using the combination of these table fields.
    Once a new batch number is created it increment the numeric key field number by one.
    Issue is we have to update this new numeric field value into the database field so that other users can read a diffrent numeric field value.hence it will create a new/different batch number.
    Here i am not able to update the database table inside this User Exit.
    Table is geeting updated but after some time and out of this User Exit.
    Please suggest what's required in that case?
    Regards,
    Amit Kumar Singh
    Edited by: Amit  Singh on Feb 3, 2009 11:33 AM

  • Form inside user exit

    Is it possible to define a form (subprocedure) inside a user exit?  When I try it complains that I'm trying to define a form inside of a function.  Of course I have no choice because the whole user exit is a function.  What's the best way to work around this?

    i came to know from one of the posts here in SDN, the options are,
    1) create a custom function module and call it
    2) write ur subroutine in a report prog. and call that subroutine of that report prog.
    3) develop a INCLUDE and add it in MAIN prog.
    for more info. pls. search in SDN
    thanq

  • 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....

  • User Exit for Travel

    Hi All,
        I am using the user exit <b>EXIT_SAPMP56T_002</b> for travel management, to raise a message. The issue i am facing is, the message has to be displayed only if the user saves the transaction, if he clicks the approve button it should not raise this message.
        Inside the user exit sy-ucomm is getting cleared, because of this i couldnot able to differentiate, is there is any way to differentiate the user command, your inputs pls.
    Thanks,
    Gar

    Dear Duxton,
            Thanks for your reply, I checked the table AEND, but its not providing any fields to depict the user command. So this table is also not handy
    Thanks,
    Gar

  • User exit or BADI for determining the output type inme21n orme22n

    hi all,
         i have used the user exit 'exit_sapmm06e_012', it is getting triggered in me22n, i am able to check whether the vendor email id is present or not, but this is happening all the time that is even when the user dont want to send a email to the vendor i.e. he just wants to print the purchase order, even at that time this user exit is getting triggered and giving a message that the vendor email id is not maintained.
      the reson why this is happening is there is no import parameter to this user exit which gives the "medium of data transfer"  the user has entered. if i get this parameter visible inside the user exit, then i can check this parameter inside the user exit and do the required operation.   i checked up with all the user exits in "me" package and even the other related packages but none of them is getting triggered,
      do antone know a user exit or badi which imports this parameter and also gets triggered at the time of creation of purchase order.
      plz give me a solution.
    regards,
    santosh.

    Hi Santosh,
    Why not continue the other post ?
    Anyway, i am not sure to understand your requirement.
    Do you want to check that vendor email exist and issue a message only if email is not available ?
    Kind regards,
    Yann

  • ABAP Objects available in a USER-EXIT

    Dear Sir,
    I am very new to ABAP / User-Exit . To learn about User-Exit , I was refereing one tutorial related to USER-EXIT implementation in VL01 (form userexit_save_document_prepare) .
    Sir , in this sample User-Exit , author is referring ABAP Objects like : xlips-lgort / xlips-matnr  etc .
    Sir , my query is that how can we know that which objects are available which can be used in a User-EXIT .  How a new user like me will come to know that object  xlips-lgort  can be used in this User-Exit .
    Pl help me .
    Regards
    B Mittal

    Hi,
    A user exit is similar to an function module. The difference is you can write your own piece of code in a user exit to fulfill your requirements. If you look into the IMPORT parameters of the User Exit all these variable in the IMPORT are inputs to your exit. All the variables in the EXPORT parameters are the ones that can be sent out of the exit. You can change all the variables that are present in bothe IMPORT and EXPORT parameters. Ex: If i have V_data in IMPORT as well as EXPORT then i can change the value of V_DATA from 1 to 2 and pass it to next step in the standard program.
    Also you have TABLES in user exit. These can be inputs and output parameters. For example i can enter a few records in the tables parameter IT_TAB in one of the exits and change these records inside the USer Exit include and export the same to the next step in the standard transaction.
    Hope this is helpful.... reward if useful.
    Thanks,
    Anil
    Edited by: Anil Japa on Mar 20, 2008 9:27 AM

  • Coding in user exit in program rffous_t

    The ACH file generated has to be updated with company specific information required by the NACHA file format standards. SAP functionality will be used to generate the interface file. 
    The ACH file will contain all employees who have pay for the current pay period being processed and have direct deposit set up for the current pay period.  The ACH file will run during the biweekly and monthly payroll runs.&#61485;This file will be generated upon completion of the current payroll processing.
    The user-exits are invoked when the RFFOUS_T program is executed.For each record type, use the mentioned user-exit below:
    •     1 (File Header Record)
    o     EXIT_100
    o     Function Module EXIT_RFFOEXIT_100
    •     5 (Batch Header Record)
    o     EXIT_101
    o     Function Module EXIT_RFFOEXIT_101
    •     8 (Batch Control Record)
    o     EXIT_105
    o     Function Module EXIT_RFFOEXIT_105
    Based on the account id (REGUH table-HKTID field), the other fields have been identified.
    Record Type "1"          
    File ID (Immediate Origin) - Structure DTAMUSFH, Component FH4     
    Origination Bank (immediate destination name) - Structure DTAMUSFH,Component FH11
    Company Name (immediate origin name) - Structure DTAMUSFH, Component FH12
    Record Type "5"                         
    Company Name - Structure DTAMUSBH, Component BH3     
    Company Discretionary Date - Structure DTAMUSBH, Component BH4
    Company ID - Structure DTAMUSBH, Component BH5     
    Company Entry Description - Structure DTAMUSBH, Component BH7
    Company Descriptive Date - Structure DTAMUSBH, Component BH8
    Effective entry date - Structure DTAMUSBH, Component BH9
    Record Type "8"     
    Company ID - Structure DTAMUSBC, Component BC7     
    Message Authentication Code - Structure DTAMUSBC, Component BC8
    Can somebody please advice me after reading the above information that how should i proceed for the coding to be done inside the user exit!!

    Hi Bhaskar,
    1. Go to CMOD(transaction) create an enchancement project .
    2. enter the project name ZName and click create and enter the short description of the project.
    3.now click on the enhancement assigment button on the application tool bar and enter the enhancement number: RFFOX100 (File Header Record),RFFOX101(Batch Header Record), RFFOX105(Batch Control Record).
    4.now select the first enhancement number i'e RFFOX10 and click on the components it will show you the fuction module exit EXIT_RFFOEXIT_100.
    5.double click on it it will take you to the fuction builder screen now click on the include it will show you the warrining 'Program names ZX... are reserved for includes of exit function groups' just ignore the warning and press enter after placing your coursour on the include, system asks to create the include press yes.
    6..and now in the include code your logic to update The ACH file generated has to be updated with company specific information required by the NACHA file format standards as per your needs.
    follow the procedure from 4 to 6 to populate Batch Header Record and Batch control record in the exits EXIT_RFFOEXIT_101and
    EXIT_RFFOEXIT_105 respectively.
    thanks and Regards,
    pavankumar

  • 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

  • Passing data from user exit to workflow.

    HI,
    Please consider the below scenario.
    In the user exit 'MV50AFZ1' I have created an include in the form 'USEREXIT_SAVE_DOCUMENT_PREPARE.'.
    In this include based on some certain conditions a workflow is triggered.
    I am using the function module 'SWE_EVENT_CREATE' to trigger the workflow.
    Now the requirement is to pass some data from this user exit ('USEREXIT_SAVE_DOCUMENT_PREPARE') into the workflow.
    Could someone please explain me how to pass this data from the user exit into the workflow ?
    Thanks in advance.
    With regards
    Abhishek

    Hello everybody,
    Thanks a lot for your responses.
    I am using the fuction module 'SAP_WAPI_CREATE_EVENT' to trigger the workflow, I am also able to pass the delivery number through the paramater 'OBJECT_KEY' of the function module in to the workflow container.
    But I am unable to pass the line item number and the material number into the workflow.
    I am following the below process:
    I have defined a stucture ZST_DELIVERY containing the POSNR and MATNR in the data dictionnary.
    I have pouplated the internal table of this structure inside my user exit.
    Then I m passing the values of the above internal table into another internal table - 'Container''which is of structure type 'SWR_CONT'.
    And I am passing the internal table 'Container' into the paramater 'INPUT_CONTAINER' of the function module 'SAP_WAPI_CREATE_EVENT'.
    And in the workflow I have created a container 'ST_DELIVERY' which is of the structure ZST_DELIVERY and I have made it 'import', 'export.'
    And in my business object ZLIKP in the custom event CheckPrice I have defined a paramater 'ST_DELIVERY' of the structure  ZST_DELIVERY and I have made it multiline.
    And in I have binded my workflow container 'ST_DELIVERY' and the ZLIKP paramater with the same name.
    Please do let me know if the above steps that I have followed is correct.
    Please do let me know if any further information is required.
    Thanks in advance,
    ~Regards
    Abhishek

  • Update in user exit.

    Hi all,
    I have code in the User exit - EXIT_RFEBBU10_001 - which will be triggered by the transaction code FF.5.
    My code is to update the Standard Database table FEBEP
    My code  is. 
    Update FEBEP
               SET FWAER = ''
                   FWBTR = '0.00'
                where KUKEY = i_febep-kukey AND
                      ESNUM = i_febep-esnum.
    But this is not updating the database table with FWBTR as 0.00 and FWEAR as nothing, but SY-SUBRC is 0 while debugging.
    I used the same code in a seperate executable program that time it is updating the table, but inside the User Exit it is not doing.
    Please tell me how to solve this...
    Points assured
    Regards,
    Prabhu

    Hello Prabhu,
    I'm sorry to say that your whole approach is incorrect i.e. everything you are doing in this user-exit from start to finish is incorrect and it is against SAP Best Practice!
    Firstly, you are trying to modify (update) a SAP standard database table - which is not recommended in the first place but then again I see you are trying to change a database full with highly sensitive information (The Electronic Bank Statement Line Item table)!!! Not only you may land up in big trouble personally for doing this but also I don't think your client's system auditors will be too pleased about that. So, Never Do This
    Then, you are wondering if you could use a Commit Work statement in your user-exit - which is again not recommended. Let the system take care of that after it leaves your exit and before completing the transaction. So, again, Never Do This
    Now, to solve your issue, you should be first reading the documentation of SAP Enhancement FEB00001 because your user-exit function module is linked to this enhancement. This is well documented and shows you how to code this exit. I think if you require any changes in the line items you should make changes in the export parameter E_FEBEP because SAP allows you to change E_FEBEP and finally don't forget to set the export parameter E_UPDATE = 'X' after you have changed data in any structure or table parameters to confirm changes back to SAP.
    Hope this helps.
    Cheers,
    Sougata.

  • Coding problem in a user exit for unit conversion please see it once

    Hi experts,
                   i am having a problem in coding i wont to convert the MSEG-ERFME field that is quantity field into tonne when ever it is kg. In tcode j1i5 i got one user exit J_1i7_userexit_validate now inside this user exit i have to write this code that when ever the UOM(unit of measure)ERFME comes in KG it should be converted into TONNE, This code is to be written in the user exit and has to be followed forward in other values.
    Thanks
    sumeet Malhotra

    Hi Experts,
                Have any one used this Function module unit_conversion_simple please help Not getting any reply since tmmrow,I am not able to get the desired output wont to convert all KG inputs into Tonne.
    this is the code part
    CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'
       EXPORTING
         INPUT                      = ERFMG  " QUANTITY
       NO_TYPE_CHECK              = 'X'
       ROUND_SIGN                 = ' '
        UNIT_IN                    = ERFME  " ORIGINAL UOM WHICH EXIST
        UNIT_OUT                   = 'TO'   " UOM REQUIRED
    IMPORTING
       ADD_CONST                  =
       DECIMALS                   =
       DENOMINATOR                = 1000
       NUMERATOR                  =
        OUTPUT                     =   RESULT "OUTPUT
    EXCEPTIONS
       CONVERSION_NOT_FOUND       = 1
       DIVISION_BY_ZERO           = 2
       INPUT_INVALID              = 3
       OUTPUT_INVALID             = 4
       OVERFLOW                   = 5
       TYPE_INVALID               = 6
       UNITS_MISSING              = 7
       UNIT_IN_NOT_FOUND          = 8
       UNIT_OUT_NOT_FOUND         = 9
       OTHERS                     = 10
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Please help
    Thanks
    Edited by: sumeet malhotra on Feb 7, 2009 5:46 AM

  • User Exit Validation for CAT2 using CATS0003

    Hi all,
    I am using the user exit CATS0003 to validate the receiver cost center, receiver fund, receiver order and the receiver functional area.That is if any one of this fields are initial it will give an error message.
    But when I try to change an existing record and try to change the order number (say if its blank  - some records are with with blank internal order nos since we just implemented this validation , and I try to input a value in the time sheet ) and when I do check for errors it is still giving out the error message which it is supposed to give when all the fields are initial.When I debug I dont see my order number value which I gave on the time sheet
    entry.the filed is just blank/initial so its giving my error message.
    I am wondering is there any other user exit should we use to get the changed value to the user exit? If so please let me know.
    Please help and thanks in advance.Following is my code
    CHECK fields-workdate >= '20060701'.
    Regular time
    IF ( fields-awart = '1000' OR
         fields-awart = '1030' OR
         fields-awart = '1035' OR
         fields-awart = '1180' OR
         fields-awart = '1250' OR
         fields-awart = '2000' OR
         fields-awart = '2005' OR
         fields-awart = '2010' OR
         fields-awart = '2015' OR
         fields-awart = '2020' OR
         fields-awart = '2025' OR
         fields-awart = '2030' OR
         fields-awart = '2035' OR
         fields-awart = '2045' OR
         fields-awart = '2055' OR
         fields-awart = '2060' OR
         fields-awart = '2065' OR
         fields-awart = '2070' OR
         fields-awart = '2080' OR
         fields-awart = '2085' OR
         fields-awart = '3000' OR
         fields-awart = '3005' OR
         fields-awart = '3010' OR
         fields-awart = '3015' OR
         fields-awart = '3020' ).
    no additional account assignments are allowed.
      IF ( fields-rkostl <> 0 OR
           fields-raufnr <> 0 OR
           fields-fund   <> 0 OR
           fields-func_area <> 0 ).
        MESSAGE e027(zmps).
      ENDIF.
    Extended hours
    ELSEIF ( fields-awart = '1020' OR
             fields-awart = '1040' OR
             fields-awart = '1050' OR
             fields-awart = '1060' OR
             fields-awart = '1070' OR
             fields-awart = '1080' OR
             fields-awart = '1090' OR
             fields-awart = '1100' OR
             fields-awart = '1110' OR
             fields-awart = '1120' OR
             fields-awart = '1130' OR
             fields-awart = '1140' OR
             fields-awart = '1150' OR
             fields-awart = '1170' OR
             fields-awart = '1190' OR
             fields-awart = '1200' OR
             fields-awart = '1210' OR
             fields-awart = '1220' OR
             fields-awart = '1230' OR
             fields-awart = '1240'). " OR
    Give error message when ( Cost center or Fund or Function area ) or
    ( Cost center or Fund or Function area or Internal order ) is initial.
      IF fields-workdate >= '20080705'.
        IF ( fields-rkostl IS INITIAL OR fields-fund IS INITIAL OR
             fields-func_area IS INITIAL OR fields-raufnr IS INITIAL ).
          MESSAGE e030(zmps).
        ENDIF.
      ELSE.
        IF ( fields-rkostl IS INITIAL OR fields-fund IS INITIAL OR
             fields-func_area IS INITIAL )." OR fields-raufnr IS INITIAL ).
          MESSAGE e028(zmps).
        ENDIF.
      ENDIF.
    ENDIF.

    Looks like the error checks are being made before the values are transferred from screen to internal table and work area.
    If you get the blank value for the field, also try to use function module  DYNP_VALUES_READ to read values from screen field inside the user exit.  If it comes back with value, validate against that value.
    Edited by: Sharad Agrawal on Aug 7, 2008 2:41 PM

  • Calling a BDC program in side a user-exit

    Hi all,
    I need to call a BDC program in side a user-exit of sales order change
    . i want to make user by calling this BDC program that it wont effect any of my other code's on that and that the customer wont be noticed with any inconvenience.
    i know to use
    CALL TRANSACTION 'zprogram'.
    but i want to make sure that till will not do any harm for any of other parts.
    Regards Nafran.

    Hi
    Make sure you dont change any values of standard SAP variables,structures and internal table values inside the user exit.This is the only way where the other functionality gets affected(unless it is the requirement).
    Reward if helpful.
    Thanks & regards,
    Ramya

Maybe you are looking for

  • Can I transfer a gifted app from one device to another?

    I recently got a gifted app, and was wondering how I could "transfer" this app to another device eg. if I lose my device and get a new?

  • Add Page to Browser Favorites

    Hi all, is there a possibility to bookmark portal pages, without the button in the page toolbar? Just by clicking on add to browser favorites in the Browser. The problem is: No matter which page is diplayed on the Browser I have in the Adress bar the

  • ORA-12560: TNS:protocol adapter error error while using BR*tools

    Hi, I am trying to use BRtools to display instance status (option 6 within Instance Management menu). We are running on Oracle 10g and SAP 4.6c (BRtools version 7.0 patch 13). SAP is running on Windows 2003 cluster environment. I checked lsnrctl stat

  • How much data in a datafile

    Hi, in 11g R2, is there any column in DBA_DATA_FILES showing the quantity of data present now in the datafile ? Does the column user_bytes show that ? In documentation it is said :USER_BYTES NUMBER The size of the file available for user data. But th

  • Applets in Mac

    hello, can anyone tell me whether sun provides ( i could not find one) or apple has provided plugins to run applets in IE for Mac or Netscape for Mac. thanx in advance prithvi