Function Module does not fetch value

Hi All,
I am using the fm RV_PRICE_PRINT_HEAD to fetch condition records. When I run this fm in SE37 for a particular document(vbeln) number, the values are fetched correctly into the internal tables TKOMV and TKOMVD.
The same fm does not fetch values when I run for second time for the same document(vbeln). This means :
1) I will go to SE37, type RV_PRICE_PRINT_HEAD, supply the export parameters in COMM_HEAD_I, execute it and obtain the condition records (Till this time absolutely fine)
2) Now, press Back (F3), Let the export parameters in "COMM_HEAD_I" will remain same. Just press Execute (F8). Then condition values are not fetched.
Could any body help in this regard...
Thanks
Thimmappa Hegde

Hi
   I have given you the other alternative bcoz there is a limitation while calling this FM: RV_PRICE_PRINT_HEAD.
If you see the comments and code of Include: LV61AA11, you can understand the problem.
<b>* mechanism to controll which conditions are already part of table TKOMV
Every time a pricing result is read from database the key is put into
TABGL. Also TABGL is updated if we've lines in TKOMV assigned to a
special key but entry in TABGL (case 2).
Originally TABGL was established to handle following pathological
case: condition successfully read from DB -> entry in TABGL. Then all
read conditions where deleted during processing (e.g. manually
deletion etc.). If we run into this routine again no records should
be redetermined from DB...</b>
  read table tabgl with table key knumv = komk-knumv
       transporting no fields.
Case 1:
conditions have been already read because there is a fitting entry in
TABGL. Exit immediately if caller doesn't want to force DB access.
  if sy-subrc eq 0. ---><b> First time SY-SUBRC NE 0 so no problem</b>   
     if generell_lesen ne 'X'. <b>--> Later runs SY-SUBRC  eq 0 and generell_lesen value is SPACE</b>.
        exit.
    endif.
  else.
  Hope this clarifies your doubt now.
Kind Regards
Eswar

Similar Messages

  • Error in ERM: Function module does not exist

    Hi all,
    Lately, we are experiencing a frequent error in ERM (5.3 SP 15.0) that we had not had before. We are unsure what caused the error. The message displayed to the user is "Unhandled error". The log error message is "Message Code is 651 Messsage Details Function module  does not exist Message Type is E" (see full logs below).
    The error occurs for example, when users are trying to generate derived roles after saving the org values for the derived role during the methodology process, or when administrators are trying to update the impacted derived roles after for org value mappings.
    Has anyone experienced this or someting similar before? Any ideas what could be the reason here?
    Thanks!
    Patrick
    Edited by: Patrick Weyers on Sep 15, 2011 9:36 AM

    Log extract:
    2011-09-15 09:05:15,103 [SAPEngine_Application_Thread[impl:3]_18] ERROR Message Code is 651 Messsage Details Function module  does not exist Message Type is E
    java.lang.Throwable: Message Code is 651 Messsage Details Function module  does not exist Message Type is E
         at com.virsa.re.service.sap.dao.ManageAuthDataDAO.getAuthorizationData(ManageAuthDataDAO.java:1064)
         at com.virsa.re.bo.impl.AuthorizationDataBO.getNewTransactionObjects(AuthorizationDataBO.java:821)
         at com.virsa.re.role.actions.AuthAuthorizationDataAction.addObjsForNewTxns(AuthAuthorizationDataAction.java:3527)
         at com.virsa.re.role.actions.AuthAuthorizationDataAction.reloadTransactions(AuthAuthorizationDataAction.java:4128)
         at com.virsa.re.role.actions.AuthAuthorizationDataAction.execute(AuthAuthorizationDataAction.java:157)
         at com.virsa.framework.NavigationEngine.execute(NavigationEngine.java:273)
         at com.virsa.framework.servlet.VFrameworkServlet.service(VFrameworkServlet.java:230)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:321)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:377)
         at com.virsa.framework.servlet.VFrameworkServlet.service(VFrameworkServlet.java:286)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:117)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:62)
         at com.virsa.comp.history.filter.HistoryFilter.doFilter(HistoryFilter.java:43)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:58)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:384)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(AccessController.java:219)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    2011-09-15 09:05:15,105 [SAPEngine_Application_Thread[impl:3]_18] ERROR com.virsa.re.role.actions.AuthAuthorizationDataAction
    java.lang.Throwable: java.lang.NullPointerException
         at com.virsa.re.service.sap.dao.ManageAuthDataDAO.getAuthorizationData(ManageAuthDataDAO.java:1084)
         at com.virsa.re.bo.impl.AuthorizationDataBO.getNewTransactionObjects(AuthorizationDataBO.java:821)
         at com.virsa.re.role.actions.AuthAuthorizationDataAction.addObjsForNewTxns(AuthAuthorizationDataAction.java:3527)
         at com.virsa.re.role.actions.AuthAuthorizationDataAction.reloadTransactions(AuthAuthorizationDataAction.java:4128)
         at com.virsa.re.role.actions.AuthAuthorizationDataAction.execute(AuthAuthorizationDataAction.java:157)
         at com.virsa.framework.NavigationEngine.execute(NavigationEngine.java:273)
         at com.virsa.framework.servlet.VFrameworkServlet.service(VFrameworkServlet.java:230)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:321)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:377)
         at com.virsa.framework.servlet.VFrameworkServlet.service(VFrameworkServlet.java:286)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:117)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:62)
         at com.virsa.comp.history.filter.HistoryFilter.doFilter(HistoryFilter.java:43)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:58)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:384)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(AccessController.java:219)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)

  • Function module does not exist in ECC 6.0

    Hi All,
    These two below function module does not exist in ECC 6.0 but exist in 4.6.Could you please let me know replacement of these two's.
    FI_DOCUMENT_ARCH_READ_SINGLE
    CHECK_IBAN_ACTIVE
    Thanks
    Mohit

    Hi,
    Thanks for your reply.Could you please give me example that how to use it.
    Thanks
    Mohit

  • XI datasources function modules does not exist after BW upgrade to 7.3

    We have recently upgraded our dev BI system to 7.3
    During our testing phase we found that we are unable to load data coming from XI system.
    When we checked the functional modules of the XI(web services)
    datasources we found that the function modules does not exist in the system.
    Eg : For our GECARS datasource we have 2 funcitonal modules
    1. /BIO/QI6AZXH_ZIFIGECARS
    2. /BIO/QI6AZXH_ZIFIGECARS_RFC (delta function module)
    we have activated resp datasource and found that code for
    /BIO/QI6AZXH_ZIFIGECARS exist now but we are facing issues with RFC
    funciton modules (/BIO/QI6AZXH_ZIFIGECARS_RFC )
    To put it in simple terms we are facing issues with Dev BI since upgradeto 7.3 with respect to RFC and non-availability of function modules.
    Kindly help us in resolving this.
    Thanks,
    Kiran

    Hello Kiran,
    Have you found the reason for the non existence of the FM in the system after the upgrade?
    Have you found any alternative? I hope you would have created an OSS message, if so whats the response have you got?
    Kindly let me know as I am experiencing similar issue where one of the FM (RSDRC_MULTIPROV_GET_MAPPING) does not exist in BI system after the upgrade.
    Regards,
    Vinoth V

  • Unable to create rule Error:Function Module does not meet the workflow conv

    Hi Workflow experts,
    Could any one help me with rule creation. Below is my Function Module Interface.
    ""Local Interface:
    *"  TABLES
    *"      AC_CONTAINER STRUCTURE  SWCONT OPTIONAL
    *"      ACTOR_TAB STRUCTURE  SWHACTOR OPTIONAL
    *"  EXCEPTIONS
    *"      NOBODY_FOUND
    The function module test is successful with all required conventions for workflow but while i try to create a rule with the funtion module i get the error "Function Module does not meet the workflow conventions"
    I Also have included the following in FM
    INCLUDE <cntn01>.
    Any suggestions would be helpful. Thanks in Advance,
    Imran

    Hi,
    I am not sure whether the rule accepts the optional flag. Remove the optional flag for the tables parameters and try again. According to the documentation you have implemented the right interface. It might be the issue with the tables parameter being optional.
    Hope this helps,
    Sudhi

  • Function Module Does not exist

    Hello Experts,
    I am trying to run the initialization for the Billing conditions 2lis_13_vdkon datasource.
    Job is getting cancelled and the following error messages are coming when i check the job log in source system
    Job started
    Step 001 started (program SBIE0001, variant &0000000006238, user ID BASIS
    Asynchronous transmission of info IDoc 2 in task 0001 (0 parallel tasks)
    DATASOURCE = 2LIS_13_VDKON
    RLOGSYS    = BWDCLNT900
    REQUNR     = REQU_DHKONXGA1B82HZ49O94KQ03C4
    UPDMODE    = C
    LANGUAGES  = *
    *          Current Values for Selected Profile Parameters               *
    * abap/heap_area_nondia......... 2000683008
    * abap/heap_area_total.......... 2000683008
    * abap/heaplimit................ 40894464
    * zcsa/installed_languages...... ED
    * zcsa/system_language.......... E
    * ztta/max_memreq_MB............ 2047
    * ztta/roll_area................ 3000320
    * ztta/roll_extension........... 2000683008
    Function module /BI0/QI2LIS_13_VDKON does not exist
    You can only use LIKE and TYPE to specify types in RFC
    Internal session terminated with a runtime error (see ST22)
    Job cancelled
    even when i check in ST22
    Category         
    ABAP Programming Error
    Runtime Errors   
    IMPORT_ALIGNMENT_MISMATCH
    Except.          
    CX_SY_IMPORT_MISMATCH_ERROR
    ABAP Program     
    SAPLMCEX
    Application Component  LO-LIS
    Date and Time    
    06.05.2014 12:30:28
    Error analysis
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_IMPORT_MISMATCH_ERROR', was
    not caught in
    procedure "MCEX_BW_LO_API" "(FUNCTION)", nor was it propagated by a RAISING
    clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    When importing object "MC13VD0KON_TAB", the structure did not match the
    structure of the target object. The error occurred in component
    no. 21.
    This may be due to one of the following reasons:
    - the structure is actually different (the next field has, for
    example, a different data type) or
    - the same sequence of components were exported and imported,
    but the fields were from other include units.
    How to correct the error
    There is a probably a new version of the program active that does
    not match the dataset. The data may not have been converted.
    It is also possible that the field type of the imported field
    has been changed in the Data Dictionary.
    Try to eliminate the error by regenerating the program "SAPLMCEX". To
    do this, proceed as follows:
    Call Transaction SE38 in the R/3 System, enter the program
    name "SAPLMCEX" and then choose "Generate".
    If the error occurred in your own ABAP program or in an SAP
    program you modified, try to remove the error.
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "IMPORT_ALIGNMENT_MISMATCH" "CX_SY_IMPORT_MISMATCH_ERROR"
    "SAPLMCEX" or "LMCEXU06"
    "MCEX_BW_LO_API"
    If you cannot solve the problem yourself and want to send an error
    please help me in this regards
    Quick response will be appreciated.
    Thanks in advance

    Hi Ram,
    no upgrades recently
    they have taken backup from production server.
    now i am facing this prob in development server.
    when i am trying to check in RSA3 it is throwing same short dump
    as u said i did all the re activations still i am facing the same issue.
    please give me some other sol...
    thanks,
    srikanth Putta'

  • Function Module does not exist error during query run time.

    Hi,
    During the execution of one of our queries we get the error "Function module RSD_(InfoObject Tech Name)_TXT_GET does not exist.
    Now, this InfoObject is used in the query as a filter to restrict on certain values.
    I searched in SE37 and no such function exists.
    Let me know  if you have any suggestions/resolutions to this issue.
    Thanks,
    AR.

    even if the question is quite old already, maybe some other people need the answer to this, too:
    In our case this error which Sudhir Anandarao describes meant, that there was no data found for given input. This is quite strange, but definitly was the source as I dont get the error if something is found by the query. The Query, InfoObject were correct, just the data asked for was wrong (like get me all ID's greater than 5, if there are only ID's smaller or equal 5 it would state "Function module RSD_(InfoObject Tech Name)_TXT_GET does not exist.")

  • RSAR_TRFC_DATA_RECEIVED Function module does not exist or EXCEPTION raised

    Dear All,
            We have 2 production systems one is a APO server & the other being BW server.
            While checking in SM58 of our APO production server we found that so many entries were in error saying "ERROR REQU_<number> PG# 12 In BW" with target system as BWCLNT<CLIENT NO>.
    We checked in both the production systems for any job failure w.r.t same time span but could find nothing.
    When we tried to solve this by using F6 option to re-execute the LUW it says "Functional Module doesnot exists or Exception Raised". After doing checks it was found out that the Functional Module (RSAR_TRFC_DATA_RECEIVED) was existing . So we need to know about how we can solve this EXCEPTION RAISED issue.
    Thanks & Regards,
    SAPAPO
    Edited by: SAP-APO on Dec 30, 2009 8:38 AM

    Hi,
    This migth be problem with not catching exact exception in the code.There might be data you are passing which not getting caught by the exception.
    If you are using any code add this FM in the code or else try to debug where exactly u r facing this problem.
    Regards,
    Shiva Kumar G.C

  • Error EU 802: Function Module does not exist

    Hello everyone!
    While running a DTP, I'm getting the following error:
    EU 802: Function Module RSD_YPERSON_TXT_GET does not exist
    Anyone has any idea what this is about?
    Thanks in advance for your responses!
    Best Regards,
    Luís.

    Hi,
    I have resolved this issue. Turns out that I was mapping a source field INPER (In-Period) directly to 0CALMONTH. The problem is that this source field can have more than 12 periods per year.
    The error message was totally misleading... there's SAP for you
    Points assigned for the effort.
    Best regards,
    Luís.

  • Upgrade: Function Module does not exist

    Hi Experts,
    transaction FOIM is giving DUMP in ECC.
    It shows a message
    Function module "/CUKREQ/RECN_EVENT_FMOD2" not found.
    This function module exist in 4.6c.
    Will anyone suggest what to do?
    Regards:
    Vipin

    Check for a SAP note in service.sap.com

  • Function module does not exixt for TRFC struk

    hello All,
    A master load  daily happens. But for today it is showing short dump error in satus  and no errro messag ine detail tab .It is showing ABAP run tim error  in status and also showing TRFC stuck in Source system. When i am trying to execute LUW it is shwoinf message Function module doesnot exixt or Exception raised..
    Thanks

    Hi,
    Delete if any incorrect load.
    Restart the load.. just keep checking the LUW ( If its taking for long time to load) .. and there is any trfc struck than run LUW one by one  till all queue is completed.
    Regards,
    SKDDON

  • Function module does not update the storage location in delivery

    Hello,
    I've been trying to use SD_DELIVERY_UPDATE_PICKING to update the storage location in SD return deliveries, without any success. Any clues? The FM works fine when it comes to updating the picking quantity, but the storage location issue still persists.
    Thanks in advance,
    Joao

    Hi Joao,
    I have the same problem. I tried to find the FM SD_OUTB_DELIVERY_CHANGE  but couldn't find it. Have you by any change specified the incorrect FM name here? If yes, can you please communicate the correct FM name?
    Regards,
    Divyaman

  • Function Module (ENQUEUE_ES_PROG) not working in Background

    I scheduled a job which runs every 15 mins in the the background to fetch data from an external system,depending on the data volume ,the program can sometimes run for over 15 minutes.To avoid data conflict I used a function module ENQUEUE_ES_PROG on the program to first check if the job started is still running before another job gets kicked.The problem I have is the fact that this function module does not seem to work in the background but in the looks perfect in foreground. Does anyone have a clue on how to use this FM for background job?

    Hello Mochabo,
    Consider the following scenario:
    Your job is running for more than 15 minutes. Since it is running in the background, it will be executed by a work-process of type BACKGROUND. If there's only one BACKGROUND work process configured for your application server, then the second job will have to be waiting till the first one finishes and releases the background work process.
    But when you are executing this in the foreground, the DIALOG work-process does the processing. So you are not finding any problem.
    So, to my knowledge, there will be a problem when there's only one BACKGROUND work process. Please go to transaction SM50 and see how many of them are configured for the current application server.
    Also, in case there's only one BACKGROUND work-process, you will not have toworry that the second job will start before the first has finished. It simply can't. It has got to wait.
    Hope this explanation helps.
    Regards,
    Anand Mandalika.

  • Function module "GM_DOCUMENT_REVERSE" not found.  after Patch Update

    Hi Abapers/Basis
    After patch update i am not able to do FBCJ reversal entry getting below error message.
    Runtime Errors         CALL_FUNCTION_NOT_FOUND
    Exception              CX_SY_DYN_CALL_ILLEGAL_FUNC
    Date and Time          25.05.2011 14:43:26
    Short text
         Function module "GM_DOCUMENT_REVERSE" not found.
    What happened?
         The function module "GM_DOCUMENT_REVERSE" is called,
         but cannot be found in the library.
         Error in the ABAP Application Program
         The current ABAP program "SAPLRWCL" had to be terminated because it has
         come across a statement that unfortunately cannot be executed.
    What can you do?
         Note down which actions and inputs caused the error.
         To process the problem further, contact you SAP system
         administrator.
         Using Transaction ST22 for ABAP Dump Analysis, you can look
         at and manage termination messages, and you can also
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_FUNC', was
         not caught in
        procedure "CALL_DISPATCHER_STORNO_R" "(FORM)", nor was it propagated by a
         RAISING clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        The program "SAPLRWCL" contains the CALL FUNCTION statement.
        The name of the function module to be called is "GM_DOCUMENT_REVERSE".
        No function module exists with the name "GM_DOCUMENT_REVERSE".
        All function modules are listed in the Function Library (SE37).
        Possible reasons:
        a) Wrong name specified. Pay particular attention to
           upper/lower case and underscores ("_").
           or
        b) Transport error
        c) In the case of an enqueue/dequeue module,
           the lock object may not have been activated
           (ABAP/4 Dictionary).
    How to correct the error
        Check the last transports to the SAP System.
        Is the program "SAPLRWCL" currently being changed?
        If an enqueue/dequeue module is involved, is the activation
        of the lock object missing in the ABAP/4 Dictionary?
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "CALL_FUNCTION_NOT_FOUND" "CX_SY_DYN_CALL_ILLEGAL_FUNC"
        "SAPLRWCL" or "LRWCLF10"
        "CALL_DISPATCHER_STORNO_R"
        Function modules with names similar to "GM_DOCUMENT_REVERSE":
        GM_DOCUMENT_CLOSE
        GM_DOCUMENT_RECORD
        GM_DOCUMENT_DELETE
        GM_DOCUMENT_POST
        GM_DOCUMENT_CHECK
        G_DOCUMENT_RECORD
        GJ_DOCUMENT_RECORD
        GM_DOCUMENT_PROJECT
        GET_DOCUMENTS
        GM_DOCUMENT_DISPLAY
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
    If you cannot solve the problem yourself and want to send an error
    notification to SAP, include the following information:
    1. The description of the current problem (short dump)
       To save the description, choose "System->List->Save->Local File
    (Unconverted)".
    2. Corresponding system log
       Display the system log by calling transaction SM21.
       Restrict the time interval to 10 minutes before and five minutes
    after the short dump. Then choose "System->List->Save->Local File
    (Unconverted)".
    3. If the problem occurs in a problem of your own or a modified SAP
    program: The source code of the program
       In the editor, choose "Utilities->More
    Utilities->Upload/Download->Download".
    Moderator message: please don't just dump your dumps, search for SAP notes or open a call with SAP instead.
    Edited by: Thomas Zloch on May 25, 2011 2:16 PM

    Hi Karthik,
    Thank you for ur reply.
    I did not implement any user exit/ badi. Dump is saying that my smarform function module does not exist in the se37 library.
    I have excuted my form through se38, that time is working fine. When i tried through output type it is going to dump.
    Regards,
    Kusuma.

  • Function module to change the value for pricing condition type

    Hello experts,
    I want to change the value for pricing condition type for an item in the transaction CRMD_ORDER.
    I used many function modules but none are working.
    Please kindly suggest a function module that will change the value for a condition type .
    I have used the following function module but its not working, please correct the coding if anything needs to be changed or added. Please help me .
    Thank you.
    CLEAR PRCD_COND.
         SELECT SINGLE * FROM PRCD_COND WHERE KPOSN = WA_ORDERADM_I-GUID AND
                                              KSCHL = COND_TY.
      IF SY-SUBRC = 0.
    *    MOVE-CORRESPONDING PRCD_COND TO L_COND_CHG.
    *    CLEAR L_COND_CHG-KBETR.
        L_COND_CHG-STUNR = PRCD_COND-STUNR.
        L_COND_CHG-KBETR = COND_PRC.
    *    L_COND_CHG-KSCHL = COND_TY.
        INSERT L_COND_CHG INTO TABLE T_COND_CHG.
    L_HEAD_GUID = CRMD_ORDERADM_H-GUID.
    L_ITEM_GUID = WA_ORDERADM_I-GUID.
    INSERT L_HEAD_GUID INTO TABLE HEAD_GUID.
    INSERT L_ITEM_GUID INTO TABLE ITEM_GUID.
        CALL FUNCTION 'CRM_ORDER_READ'
         EXPORTING
           IT_HEADER_GUID                    = HEAD_GUID
           IT_ITEM_GUID                      = ITEM_GUID
         IMPORTING
           ET_ORDERADM_H                     = LT_ORDERADM_H
           ET_ORDERADM_I                     = LT_ORDERADM_I
           ET_PRIDOC                         = IT_PRIDOC_RD
           ET_DOC_FLOW                       = T_DOC_FLOW
    *     CHANGING
    *       CV_LOG_HANDLE                     =
    *     EXCEPTIONS
    *       DOCUMENT_NOT_FOUND                = 1
    *       ERROR_OCCURRED                    = 2
    *       DOCUMENT_LOCKED                   = 3
    *       NO_CHANGE_AUTHORITY               = 4
    *       NO_DISPLAY_AUTHORITY              = 5
    *       NO_CHANGE_ALLOWED                 = 6
    *       OTHERS                            = 7
        IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    MOVE-CORRESPONDING LS_PRIDOC_RD TO L_PRI_COND.
    INSERT L_PRI_COND INTO TABLE PRI_COND.
    LOOP AT IT_PRIDOC_RD INTO LS_PRIDOC_RD.
    MOVE-CORRESPONDING LS_PRIDOC_RD TO L_PRIDOC_CHG.
    L_PRIDOC_CHG-PRIC_COND = PRI_COND.
    L_PRIDOC_CHG-REF_GUID = LS_PRIDOC_RD-GUID.
    L_PRIDOC_CHG-COND_CHANGE = T_COND_CHG.
    INSERT L_PRIDOC_CHG INTO TABLE PRIDOC_CHG.
    ENDLOOP.
    LOOP AT LT_ORDERADM_H INTO LS_ORDERADM_H .
    MOVE-CORRESPONDING LS_ORDERADM_H TO L_HEADER.
    INSERT L_HEADER INTO TABLE HEADER.
    ENDLOOP.
    LOOP AT LT_ORDERADM_I INTO LS_ORDERADM_I.
    MOVE-CORRESPONDING LS_ORDERADM_I TO L_ITEM.
    INSERT L_ITEM INTO TABLE ITEM.
    ENDLOOP.
    L_FIELD-FIELDNAME = 'STUNR'.
    INSERT L_FIELD INTO TABLE FIELD.
    L_FIELD-FIELDNAME = 'KBETR'.
    L_FIELD-CHANGEABLE = 'X'.
    INSERT L_FIELD INTO TABLE FIELD.
    L_INPUT-FIELD_NAMES = FIELD.
    L_INPUT-REF_KIND = 'E'.
    L_INPUT-REF_GUID = LS_PRIDOC_RD-GUID.
    L_INPUT-OBJECTNAME = 'PRIDOC'.
    INSERT L_INPUT INTO TABLE INPUT.
        CALL FUNCTION 'CRM_ORDER_MAINTAIN'
         EXPORTING
           IT_PRIDOC                     = PRIDOC_CHG
         IMPORTING
           ET_EXCEPTION                  = EXCEPT
         CHANGING
           CT_INPUT_FIELDS               = INPUT.
        IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    REFRESH EXCEPT.
    CALL FUNCTION 'CRM_ORDER_SAVE'
      EXPORTING
        IT_OBJECTS_TO_SAVE         = HEAD_GUID
    *   IV_UPDATE_TASK_LOCAL       = FALSE
    *   IV_SAVE_FRAME_LOG          = FALSE
    *   IV_NO_BDOC_SEND            = FALSE
    *   IT_ACTIVE_SWITCH           =
    IMPORTING
       ET_SAVED_OBJECTS           = SAVED
       ET_EXCEPTION               = EXCEPT
       ET_OBJECTS_NOT_SAVED       = UNSAVED
    * CHANGING
    *   CV_LOG_HANDLE              =
    * EXCEPTIONS
    *   DOCUMENT_NOT_SAVED         = 1
    *   OTHERS                     = 2
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    COMMIT WORK AND WAIT.

    Hi,,
    To be able to call a function module in an update work process, you must flag it in the Function Builder. When you create the function module, set the Process Type attribute to Update with immediate start
    Alternatively u can use this function module.
    CRM_STATUS_DATA_SAVE_DB
    BAPI_CUSTOMERCRM_CHANGE (If u wish to use a bapi for this).
    Also , Let me know what error you got when implementing other function module.Does the function module didnt return any error but still the value is not changed for pricing condition type?

Maybe you are looking for

  • TouchSmart 520 Windows 7 Home premium Problems after critical updates

    After my TouchSmart 520 auto ran critical updates on 13 Feb 2013,I cannot connect to Internet at all.It was still able to connect to my home wireless network. I did a systerm recovery, to restore up to just before the critical updates on 13 Feb, then

  • Problem deploying OLAP report to Crystal Reports Server

    I have developed a simple OLAP cube report using Crystal Reports Developer (11.0.0.1.1282). The report correctly previews and shows values against the cube that I have chosen as the datasource. The datasource is not my local computer but another comp

  • Can't connect to Essbase

    Hi all, we installed today Essbase 11.1.1.3 on 64-bit Windows. We are not used to install Essbase but everything went fine and we got everything installed normally. When we try to connect to Essbase Administration Services, we get following error: Ne

  • Question on COALESCE

    Hello there, I need a clarification.. I have 2 tables State_info State_id Primary key,State_name County_info COunty_id primary key, County_name,state_id, constraint cfk(state_id) references state_info I want to write a single query such that if the u

  • FM in B2C.

    hi all, Which FM/BADI is getting called while adding a product frm catalogue to shopping cart? Please help me. Thanks and Regards shanto aloor.