Function modules INIT and EXEC

Hi ,
Can anybody provide me the purpose of two function modules INIT and EXEC?
How it works?
Thanks
sg

thanks for ur reply Ravi.
but what is the using two function modules.
Please provide me some inputs on FM like UPR_COST_PLAN_EXEC and UPR_COST_PLAN_INIT.
whey we use two FM's in the cost cneter retraction.
thanks
sg

Similar Messages

  • Function modules Exit and Init

    Hi Friends,
    What is the purpose of function modules init and exit in the "Exit" functions.
    why two function modules are using in the Exit functions?
    Please give me relevant secanarios?
    will assign the points.
    Thanks
    BPS

    <b>FM Initialization</b>:
    A function module to initialize the planning function. This function module is optional. It is only required if new transaction data records are to be generated in the planning function that are different, in terms of the combinations of values, to characteristics in the previous transaction data that are not to be changed. The keys for these new transaction data records are delivered by the function module in the table ETO_CHAS. The keys are supplemented by the keys of the transaction data that already exist. The data objects for which the planning function is called up are formed from these keys. They also influence how often and with which combinations of transaction data the second function module is called up.
    <b>Function Module:</b>
    A function module that is called up several times and that changes transaction data records. This function module receives a package of transaction data records in each case. These differ only in their characteristics to be changed. They have the same values as far as all other characteristics are concerned. The transaction data is in table XTH_DATA. Only the existing records are transferred. If key combinations were returned by the initialization function module, and no transaction data exists for these, then table XTH_DATA is empty. The key combination is in the table ITO_CHASEL.
    Its not necessary to write a init FM unless you need to generate new records by the exit function.
    regards,
    sanjay.

  • BAPI function module name and mandatory fields

    Give the name of BAPI function module for pricing change into the transaction VA05 ?
    What are the mandatory fields ?
    Please give a exemple code to do this.

    Hi,
    VA05 is for list of sales order. But if you want to change pricing of material stocks go for follwoing fn module.
    BAPI_SALESORDSTCK_PRICE_CHANGE
    If you want other BAPI for sales related, just go to SE37, give BAPISALE and press F4, you will get all the BAPI fn modules.
    Rewards points if helpful.
    Regards,
    CS.

  • Abap function module http_post and umlaut characters

    I am using abap function module HTTP_POST to frame xml and send the data to our middleware system 'CASTIRON'.
    Everything works fine but when there are any umlaut characters in xml, the function HTTP_POPST is unable to transmit the data and is creating SM21 updation failures. We are on ECC 6.0 unicode system.
    Any help is vey much appreciated.

    Are you using a CDATA tag to encapsulate your data. Try doing it.

  • Function module L_TO_CREATE_MULTIPLE and commit

    Hi,
    Does anyone knows if in one report I call function module L_TO_CREATE_MULTIPLE with parameter I_COMMIT_WORK = SPACE and if in the main report after the call of the function module i do a commit command that allows that the transfer order is created ? And are the tables received if the call of L_TO_CREATE_MULTIPLE correct with the information of the created transfer order ?
    Or in other way if I really want to create the transfer order, I must pass the parameter I_COMMIT_WORK = 'X' ?
    Thanks in advance,
    Paulo Sousa

    Hi Paulo,
    The main Idea here is COMMIT should get called once the callto Function module L_TO_CREATE_MULTIPLE is executed so it really doesn't makes different if you call L_TO_CREATE_MULTIPLE with I_COMMIT = 'X'
    or you call L_TO_CREATE_MULTIPLE with I_COMMIT = SPACE and later to this call to Function module do COMMIT WORK, both are effectively same.
    One thing that needs to be taken care is if you are calling L_TO_CREATE_MULTIPLE in LOOP you have to do COMMIT after each call.
    Hope this helps!
    Regards
    Shital

  • How to find function module's and tables used for the particulat screen or TCODE?

    Hello Nation,
    I would like to know how to find the  function modules and tables used for the particular screen or TCODE or program.
    Example : I would like know the function module used in the program RDBGFT?
                     How can i find that?
    Thanks in advance ,Awaiting your reply.

    Make use of Find function  with the keyword "CALL FUNCTION".
    Make use of the same find function with the keyword "Select" to know the database tables used.
    Regards,
    Philip.

  • Function module upload and download

    Hello All,
    while using Upload and download function modules, how to avoid popup for providing file path, as am already passing it from reading from the selections screen. while running again i dont want to get the popup asking file path.
    thx in advance,
    sippy.

    Hi,
    You can try with
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD
        EXPORTING
          FILENAME        = I_DIR
          READ_BY_LINE    = 'X'     " FILETYPE = 'ASC'
        CHANGING
          DATA_TAB        = IT_TEXTO
        EXCEPTIONS
          FILE_OPEN_ERROR = 1
          FILE_READ_ERROR = 2
          BAD_DATA_FORMAT = 8
          OTHERS          = 19.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
      EXPORTING
       BIN_FILESIZE              =
        FILENAME                  = I_DIR2
       FILETYPE                  = 'ASC'
       APPEND                    = SPACE
       WRITE_FIELD_SEPARATOR     = SPACE
       HEADER                    = '00'
       TRUNC_TRAILING_BLANKS     = SPACE
      CHANGING
        DATA_TAB                  = IT_TEXTO.
    Best Regards
    Ana

  • Require functional module - catalogs and codes

    Hi all,
    I am looking for a functional module for Catalogs And Codes. as i want to change the non sap data to sap form. for that i need to do custom code as LSMW is not working for me.
    So please help me out in having functional module or BAPI for the same.

    BADI
    http://www.esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
    http://www.esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
    http://www.esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
    http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
    www.sapgenie.com/publications/saptips/022006%20-%20Zaidi%20BADI.pdf
    http://www.sapdevelopment.co.uk/enhance/enhance_badi.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c2/eab541c5b63031e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e6/63ee7f486cc143a560799d8803ce29/content.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/srm/badi-general+information&
    http://www.esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
    http://www.esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
    http://www.esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
    http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
    www.sapgenie.com/publications/saptips/022006%20-%20Zaidi%20BADI.pdf
    http://www.sapdevelopment.co.uk/enhance/enhance_badi.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c2/eab541c5b63031e10000000a155106/frameset.htm
    The specified item was not found.
    http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
    http://support.sas.com/rnd/papers/sugi30/SAP.ppt
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
    http://members.aol.com/_ht_a/skarkada/sap/
    http://www.ct-software.com/reportpool_frame.htm
    http://www.saphelp.com/SAP_Technical.htm
    http://www.kabai.com/abaps/q.htm
    http://www.guidancetech.com/people/holland/sap/abap/
    http://www.planetsap.com/download_abap_programs.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
    http://www.allsaplinks.com/badi.html
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3430https [original link is broken] [original link is broken] [original link is broken]:///people/alwin.vandeput2/blog/2006/04/13/how-to-search-for-badis-trace-it
    /people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework /people/thomas.weiss/blog/2006/05/03/source-code-enhancements--part-5-of-the-series-on-the-new-enhancement-framework
    http://www.esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
    http://www.esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
    http://www.esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
    http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
    http://www.esnips.com/doc/3b7bbc09-c095-45a0-9e89-91f2f86ee8e9/BADI-Introduction.ppt
    FUNCTION MODULES
    http://www.erpgenie.com/abap/functions.htm
    http://www.sapdevelopment.co.uk/fmodules/fmssap.htm
    http://www.erpgenie.com/abap/index.htm
    http://www.geocities.com/victorav15/sapr3/abapfun.html
    Rewards if useful.........
    Minal
    Message was edited by:
            Minal Nampalliwar

  • How to Create a Function module z_create and to track the error records?

    I want to create a function module z_create which will insert the data from the internal tables gt_model_master and gt_model  into the corresponding database custom tables y_model_master.
    Secondly if any error is encountered during the above updation, then how to track those error records ?

    HI,
    check the sy-subrc ,if it is zero the insertion is success,otherwise use 
    message class.
    if sy-subrc ne 0.
    message e052(zmessage).
    endif.
    Edited by: rakesh dhudipala on Feb 12, 2008 2:33 PM
    Edited by: rakesh dhudipala on Feb 12, 2008 2:33 PM

  • Function Module, Group and Method

    Hello All,
    I have a problem which I do not know why it's happening. I have an Interface method which calls a Function Module. This interface method does not have any syntax errors.
    In the Function Module itself there is field which is definied in the FUNCTION TOP INCLUDE. So It should be visible during the call of the FM. But when executing the method it dumps on the field that is in the FUNCTION TOP INCLUDE. Can someone explain why it's happening?
    Best regards,
    Guido Koopmann

    Guys,
    Everything was active, the strange thing is that when I cal the FM in an normale executable program, everything is ok.
    I do not get this.
    Hope someone can help me out.
    Best regards,
    Guido Koopmann

  • Function module RFC_READ_RABLE and currency fields

    I am using RFC_READ_TABLE to access table BSEG on a remote system.  My problem is retrieving field PSWBT which is a currency field.  The value is returned as 20202020203.43 and overwrites part of the next field too.  The value should be 4,083.33
    Does anyone have any experence with currency fields in this situation and can offer any advice?
    Thanks & regards.

    Hi everyone,
    Thank you for your help.  I have now resolved the issue.
    Yes I was using table FIELDS.  Wim was correct that I also needed to use field PSWSL but this alone did not solve the problem.  I had to define the currency field PSWBT as char 13.  When the field was retrieved using RFC_READ_TABLE, I condensed the field and then moved it back to a currency field.  As follows:
    TYPES  : BEGIN OF ty_accdoc,
              pswbt(13),
              pswsl           type pswsl,
            END OF ty_accdoc.
    DATA   : wa_accdoc         TYPE ty_accdoc,
             i_accdoc         TYPE TABLE OF ty_accdoc.
    DATA   : wa-pswbt          TYPE pswbt.
    wa_fields-fieldname = 'PSWBT'. APPEND wa_fields TO i_fields.
    wa_fields-fieldname = 'PSWSL'. APPEND wa_fields TO i_fields.
    u2026u2026u2026 Call function u2018RFC_READ_TABLEu2019u2026u2026u2026u2026
    CONDENSE wa_accdoc-pswbt NO-GAPS.
    wa-pswbt = wa_accdoc2-pswbt.
    Kind regards,
    Alison

  • Function modules (and the like) for testing Object Dependencies in PLM

    Hi all,
    I've created an upload program for characteristic values to AUSP, but I need to <b>check the object dependencies</b> (as shown in transaction CU03) before saving the data.
    I have the list of the dependencies for the characteristic in question, but how can I perform a dependency check in program code? Is there any <b>function modules</b> (and the like) which I can use?
    All helpful answers will be rewarded!
    - Mari Virik

    Thanks!
    I'm not that familiar with BAPIs, which transactions can I use to check it out? Transaction BAPI? And how do I locate it in the BAPI Explorer? How do I perform the method call?
    More points will be rewarded
    - Mari

  • Function modules (and the like) for testing Object Dependencies

    Hi all,
    I've created an upload program for characteristic values to AUSP, but I need to <b>check the object dependencies</b> (as shown in transaction CU03) before saving the data.
    I have the list of the dependencies for the characteristic in question, but how can I perform a dependency check in program code? Is there any <b>function modules</b> (and the like) which I can use?
    All helpful answers will be rewarded!
    - Mari Virik

    Hi,
    How did you solve this problem?
    I have the same.
    Thanks.

  • Use of FOREIGN_FACTOR and LOCAL_FACTOR in Function module CONVERT_TO_LOCAL_

    Hi all ,
               could anyone tell me what is the use of  following two Export parameters in function module    CONVERT_TO_LOCAL_CURRENCY and why they are used for ,
    1.   FOREIGN_FACTOR (Factor for the foreign currency units)      and
    2.  LOCAL_FACTOR ( Factor for the local currency units ) .

    Hi Ramya ,
                        Thanks for your reply . But i would like to know what is the use of those two parameters and in what calculation it    is used. 
    The value which is to be converted is passed through  'foreign_amount ' parameter and it is returned after convertion by
    'local_amount ' parameter in the function module 'CONVERT_TO_LOCAL_CURRENCY' . Other than this  if we want to change the currency of another variable which is not passed to this function module  how can i do it ? Is it enough if i multiply that variable with the FIXED_RATE parameter which is returned by this function module as its value is same as exchange rate or do i need to
    use FOREIGN_FACTOR  and LOCAL_FACTOR  also for this calculation?
    Edited by: archana_nayak on Apr 25, 2010 9:52 AM

  • Se10 : transporting functiongroups and function modules

    We have a function group ZGROUP. In this group we have several function modules.(ZXX,ZXX1,ZXX2, etc)
    Now we have to make some changes :
    One Abap consultant (A) is changing one function module(ZXX) in the group zgroup.
    Another Abap consultant(B) is making an new function module(ZYY) in the group zgroup.
    In the transport organizer (se10) .
      for Consultant A :  request(1) with function module ZXX
      for Consultant B  : request(2) with function group ZGROUP (because he is adding  a new module in the group ZGROUP)
    Now Consultant(B) has finished with his new function module(ZYY) and is transporting request(2) to the test system.
    What happens: The whole functiongroup ZGROUP is transported to the test system including the function module ZXX of the Consultant(A).
    Consultant(A) was still working on  his changes , but his module (ZXX) was also transported to the test system.
    How can we monitoring this.
    When consultant(B) is saving his new module there is now warning or message
    that another Consultant(A)  is changing a function module in the same group.
    Greetings,
      Harry

    Hi,
    Actually there will be no message or warrning. Untill unless import the transport it will not reflect the changes. i.e. as per your example B transport sent to another system also you will not find the changes made by A.
    Thanks
    Chandra

Maybe you are looking for

  • Canon-HV20 Workflow with FCP 5.1.4

    hi, I've been having all the same problems with pulldown that everyone else seems to have with the HV20 only problem is, I have 5.1.4, and I cannot find any help with this version, just my luck I have the version no one else has, ANY help would be gr

  • How to execute a jar file which has an applet, without using a html file ?

    I have a jar file which contains a set of class files. iam able to execute the jar file by using this html code <html> <applet code="file.class" archive="file.jar" width="500" height="300"> <param name="name" value="value"> </applet> </html> I want t

  • Error While assigning points

    I am getting the following error for the past 2 days, while assigning point and closing the tread. An error has occured while assigning points. Please refresh the thread view and try again a®

  • Skype cant connect on Mac

    Hi, I am currently using the newest version of skype on my mac book air and after the update I could log in just fine, although just today I tried uninstalling and even changing my password on my phone to login to my skype but the message "skype cant

  • How to optimize audio in Imovie w/GarageBand

    Help. I've shot something with a Canon T2 and imported it into Imovie. The picture quality is great but the sound is average. I purchased an H1 Recorder/mic to use as a mic but still the sound is average. I understand that I could use garageband to e