Function module is not working properly in background

Hi  all,
i have used one Function module 'PRICING' in user exit SAPMV45A to calculate pricing for sales order.
i am using BAPI_SALESORDER_CHANGE to change the sales order pricing.
        when i run the program in foreground, all condition records for pricing is updated correctly. but it is not updating
correctly when i run the program in background.
   Please tell me wheather 'PRICING'  or  'BAPI_SALESORDER_CHANGE'  function module is not working properly in background ?
   or any other reason?
Thanks
babu

Hi Pabitra,
Can you provide some more information as to the type of error you are getting? Or can you check the log entries and give some more information so that it would be possible to provide a solution.
And, try to put questions in proper Forum for quick and prompt reply.
Hope this helps.
Thanks,
Samantak.

Similar Messages

  • Reg:Function module SAPWL_GET_SUMMARY_STATISTIC not working in CRM ABAP 6.0

    Hi All,
      When i execute the function module SAPWL_GET_SUMMARY_STATISTIC in CRM ABAP 6.0 passing the values below,
    PERIODTYPE                    
    HOSTID                         
    STARTDATE  
    it's not showing any values in the summary.
    it's showing the exporting parameters as,
    RFC_ERROR_TYPE                  L
    SUMMARY_AVAILABLE               N
    HITLISTS_N_PROFILES_AVAILABLE   A
    if this function module will not work means kindly provide me the solution for calculating
    Average Response Time as in tcode st03 - Instance - total - Workload Overview.
    Average CPU Time and some more fileds.
    Regards,
    Suresh

    Hi
    I used the FM mentioned and found the details as below:
    VKORG
    TABNAME                        TVKO
    FIELDNAME                      VKORG
    LANGU                          EN
    POSITION                       0001
    OFFSET                         000006
    DOMNAME                     VKORG
    ROLLNAME                    VKORG
    CHECKTABLE
    VTEXT
    TABNAME                        TVKOT
    FIELDNAME                      VTEXT
    LANGU                          EN
    POSITION                       0002
    OFFSET                         000014
    DOMNAME                        TEXT20
    ROLLNAME                       VTXTK
    CHECKTABLE
    LENG                           000020
    Shiva

  • Check Function Module is not working

    Hi All Expert,
    I'm new in workflow and  develop custom workflow for Transaction FB65 ( Vendor Credit Memo) and using business object FIPP , event CREATED.
    Actually  requirement is that when user  click on park button in FB65 then should  be trigger workflow only for particular vendor code .
    Now my workflow is working fine for all vendor code.
    For particular vendor code, I have created an new entries in  SWE2 and assigning a check function module to that
    Refer Link :         http://www.****************/Tutorials/Workflow/checkfunctionmodule/demo.htm
    and also same entries create in SWETYPV But Check Function Module is not working before workflow trigger.
    Appreciate your help and support.
    Regards
    Saurabh

    Hi
    : Check FM  : ZWF_DR_CR_MEMO 
    SourceCode :
    FUNCTION ZWF_DR_CR_MEMO.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(OBJTYPE) LIKE  SWETYPECOU-OBJTYPE
    *"     VALUE(OBJKEY) LIKE  SWEINSTCOU-OBJKEY
    *"     VALUE(EVENT) LIKE  SWETYPECOU-EVENT
    *"     VALUE(RECTYPE) LIKE  SWETYPECOU-RECTYPE
    *"  EXPORTING
    *"     REFERENCE(RESULT) TYPE  C
    *"  TABLES
    *"      EVENT_CONTAINER STRUCTURE  SWCONT
    *"  EXCEPTIONS
    *"      NOT_TRIGGERED
    BREAK-POINT.
    TABLES : VBSEGK.
      DATA : LV_VEND TYPE VBSEG-LIFNR.
      CLEAR : LV_VEND.
      SELECT SINGLE  LIFNR FROM  VBSEGK INTO LV_VEND WHERE BELNR EQ OBJKEY.
        if sy-subrc eq 0
          IF LV_VEND = '0000120510'.
            RAISE NOT_TRIGGERED.
          ENDIF
      endif.
    ENDFUNCTION.

  • 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 is not working

    Hi Experts,
    There is one function module "RH_READ_INFTY_1001" is working fine with developement server but not working with Quality server.
    In development server the value of sy-subrc is 0. But in quality server it is not working.
    Error comes NO MSGTYPE " " FOUND.
    Thanks....

    Hi,
    I guess the message type is not getting populated.
    Use your own message
    Message 'Error' TYPE 'E'. "--> Message type must be in CAPS
    Regards

  • Gui_download Function module is not working in Background Scheduling

    Hi Experts,
    Function modules like GUI_DOWNLOAD are not working in background scheduled jobs, It is raising an exception. Though it is working fine in foreground execution.
    Please provide me solution for this challenging task.
    you could be rated well for this question.
    Thanks,
    Rama Krishna.

    Hello,
    work with open dataset and close dataset...
    just loop over itab and transfer itab field for field into a string field separated by ;
    Here is an extract of coding:
    OPEN DATASET p_dath FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
      LOOP AT itab_pos.
        CLEAR satz.
        MOVE itab_pos-vbeln TO satz-vbeln.
        MOVE ';' TO satz-fill1.
        MOVE itab_pos-kunnr TO satz-kunnr.
        MOVE ';' TO satz-fill2.
        MOVE itab_pos-ktgrd TO satz-ktgrd.
        MOVE ';' TO satz-fill3.
        MOVE itab_pos-fkdat TO satz-fkdat.
        MOVE ';' TO satz-fill4.
        MOVE itab_pos-budat TO satz-budat.
        MOVE ';' TO satz-fill5.
        MOVE itab_pos-cpudt TO satz-cpudt.
        MOVE ';' TO satz-fill6.
        MOVE itab_pos-fkimg TO satz-fkimg.
        MOVE ';' TO satz-fill7.
        MOVE itab_pos-netwr TO satz-netwr.
        MOVE ';' TO satz-fill8.
        MOVE itab_pos-vrkme TO satz-vrkme.
        MOVE ';' TO satz-fill9.
        MOVE itab_pos-ktgrm TO satz-ktgrm.
        MOVE ';' TO satz-fill10.
        MOVE itab_pos-matnr TO satz-matnr.
        MOVE ';' TO satz-fill11.
        MOVE itab_pos-mattxt TO satz-mattxt.
        MOVE ';' TO satz-fill12.
        MOVE itab_pos-gewei TO satz-gewei.
        MOVE ';' TO satz-fill13.
        MOVE itab_pos-brgew TO satz-brgew.
        TRANSFER satz TO p_dath.
      ENDLOOP.
      CLOSE DATASET p_dath.
    It is not so comfortable as it is with GUI_DOWNLOAD but it works in background!

  • RFC Function module is not working in program while Background

    Hi All,
    we have a one program in BI  system which is calling RFC function module. it is executing the program in foreground very well. Same program we have executed in background , it is not working at all. Thiis RFC function module exists in R/3 4.6c system.

    Hello Raju,
    Transactional call of a remote-capable function module specified in func using the RFC interface. You can use the addition DESTINATION to specify an individual destination in dest. If the destination has not been specified, the destination NONE is used implicitly. Character-type data objects are expected for func and dest.
    When the transactional call is made, the name of the called function, together with the destination and the actual parameters given in parameter list, are registered for the current SAP LUW in the database tables ARFCSSTATE and ARFCSDATA of the current SAP system under a unique transaction ID (abbreviated as TID, stored in a structure of type ARFCTID from the ABAP Dictionary, view using transaction SM58). Following this registration, the program making the call is continued by way of the statement CALL FUNCTION.
    When executing the COMMIT WORK statement, the function modules registered for the current SAP LUW are started in the sequence in which they were registered. The statement ROLLBACK WORKdeletes all previous registrations of the current SAP LUW.
    If the specified destination is not available for COMMIT WORK, an executable called RSARFCSE is started in the background. This attempts to start the functional modules registered for an SAP LUW in their destination, every 15 minutes up to a total of 30 times. You can make changes to these parameters using transaction SM59. If the destination does not become available within the given time, this is noted in the database table ARFCSDATA as a CPICERR entry. By default, this entry in database table ARFCSSTATE is deleted after 8 days.
    Thanks and Regards,
    SAP Shori

  • Function module PTRA_WEB_EXPENSE_REPORT_GET_2 not working when used in loop

    Hi All,
    I have used a function module PTRA_WEB_EXPENSE_REPORT_GET_2  in a custom fumction module which i am developing fetch the travel expense data . The function module PTRA_WEB_EXPENSE_REPORT_GET_2  returns the travel expense data based on the employee and the trip number. I want to fetch the travel expense data for a given set of employees and trip number and hence i have used this function module inside a loop statement.
    The function module returns the travel expense data for the employee and trip in the first loop pass. From the second loop passs it doesn't return the value. I have also checked this in se37 and the same thing happens. Value is returned for the fist employee but for the next employee we have to go to initial screen of se37 and execute the Func. module again.
    I debugged this function module and found that the value of the employee and the trip number is stored in the global variable. The value passed for the employee and trip is compared with the correspomding value in the global variable and if they are not same an error message is returned. Since we are using in a loop , each time a different value is passed for the employee and trip and the check fails .
    Is there any way to clear the value in the global parameters or is there any other function module which can be used to clear the values of the global variables?
    Thanks!
    Regards
    Manipal Parkala

    Hello Archana,
    May be we can try several ways...
    1) can you try calling function module BUFFER_REFRESH_ALL ??
       after each call...
    2) May be u can call Function module "PTRA_WEB_EXPENSE_REPORT_GET_2 " in background task or seperate task , it will load the function group everytime when u call it in loop.
    ***DO let us know if it does not work.
    thanks
    ~Raj

  • User Exit for Variable which calls to a Function Module is NOT working ???

    Hi all,
        I have a created a variable 'ZNBUSDAY' with Processing Type 'Customer Exit' on 0SCL_DELDAT  (Date). The query is on 0PUR_C04 and passing 0SCL_DELDAT  to Function Module  Z_WORKDAY to get the Next Business Day by using the company Calendar(30). The following code is NOT working and what is WRONG with it, PLEASE? The FM is working FINE.
    DATA: wa_calendar(2) TYPE c value '30',
          wa_znbusday    like sy-datum,
          0scl_deldat    like sy-datum,
          p_days         TYPE i value 1.
    case i_vnam.
       when 'ZNBUSDAY'.
       CLEAR wa_znbusday.
       CALL FUNCTION 'Z_WORKDAY'
         EXPORTING
         CURR_DATE        = 0scl_deldat
         NUMBER_DAYS      = p_days
         CALENDAR         = wa_calendar
       IMPORTING
         WORK_DAY         = wa_znbusday
         l_s_range-low  = wa_znbusday.
         l_s_range-opt  = 'EQ'.
         l_s_range-sign = 'I'.
         append l_s_range to e_t_range.
    endcase.
    Thanks,
    Venkat.

    Hi Venkat,
    Looks like you're only assigning type sy-datum to 0scl_deldat but not the actual value. Try the following:
    DATA: wa_calendar(2) TYPE c value '30',
          wa_znbusday    like sy-datum,
          0scl_deldat    like sy-datum,
          p_days         TYPE i value 1.
    case i_vnam.
       when 'ZNBUSDAY'.
       CLEAR wa_znbusday.
       0scl_deldat = sy-datum.
       CALL FUNCTION 'Z_WORKDAY'
         EXPORTING
         CURR_DATE        = 0scl_deldat
         NUMBER_DAYS      = p_days
         CALENDAR         = wa_calendar
       IMPORTING
         WORK_DAY         = wa_znbusday
         l_s_range-low  = wa_znbusday.
         l_s_range-opt  = 'EQ'.
         l_s_range-sign = 'I'.
         append l_s_range to e_t_range.
    endcase.
    Kind regards,
    Alex

  • Function module MAM25_011_getdetail not working

    hi,
    I m using Function Module Mam25_011_getdetail which is already designed in SAP.
    I want to execute it but when I m executing it, it is asking  me for user and notification number.... I have  notification Number but i didn't have any idea about user. which user i fill there. I m using ECC 6.0 IDES Demo version and online version of SAP for this. but it is not working... pleas help me
    Edited by: Thomas Zloch on Apr 25, 2011 10:47 PM exclamation marks removed

    No still I m not getting any Value A return value in this
    this Function Module is already created in SAP system You can also chk it there
    with name MAM25_011_getlist (in IDES DEMO)
    Or MAM30_011_getlist (real Time System)
    Please Chk It and reply
    I need it very much

  • Function Module "SO_OBJECT_SEND" not working in ECC6

    Hi experts,
    We have upgraded our SAP version from 4.6c to EEC6, in 4.6C one of our
    Z program has used function module u201CSO_OBJECT_SENDu201D for sending mails
    to external user.  But the same prog throws error in SOST "Message cannot be processed as it cannot be
    converted ".
    If I try with another  FM u201CSO_NEW_DOCUMENT_ATT_SEND_AP1u201D is not fulfill our requirement. ie. we can send the mail to external user but we cannot send output List as attachement.
    Our requirement is first we have to convert the list into a object and
    send that object to external user. We are using following FM for
    sending mails.
    SAVE_LIST - Save the list as Object.
    TABLE_COMPRESS u2013 Compress the object to compressed attachment.
    SO_OBJECT_SENT u2013 Finally send the attachment to external user.
    Pl. suggest me, how to sort it out.
    Thanks,
    Regards
    M.Veerabadran

    Hi
    Answer is pure assumption
    Pls check the OSS Note 170175 - SAPconnect: Message not convertable
    Pls take opinion from SAP / BASIS before implementing the note
    Regards
    Madhan D

  • Function module END_TIME_DETERMINE not working correctly

    Hi,
    I have a task within a workflow which is used to determine the deadline date and time. Within the method there is a call to function module 'END_TIME_DETERMINE'.  Sometimes this is not calculating the correct date and time in the production system. This is not happening always. When I am debugging the method or the function module its giving the correct date and time. An example for this is as below.
    The function module is taking sy-datum and sy-uzeit as input parameters and exporting new dates and times based on the no. of hours in l_deadlinehours
    l_startdate = sy-datum.
    l_starttime = sy-uzeit.
    CALL FUNCTION 'END_TIME_DETERMINE'
    EXPORTING
       DURATION                         = l_deadlinehours
       UNIT                             = 'H'
      FACTORY_CALENDAR                 =
    IMPORTING
       END_DATE                         = l_enddate
       END_TIME                         = l_endtime
    CHANGING
       START_DATE                       = l_startdate
       START_TIME                       = l_starttime
    EXCEPTIONS
       FACTORY_CALENDAR_NOT_FOUND       = 1
       DATE_OUT_OF_CALENDAR_RANGE       = 2
       DATE_NOT_VALID                                   = 3
       UNIT_CONVERSION_ERROR                   = 4
       SI_UNIT_MISSING                                    = 5
       PARAMETERS_NO_VALID                       = 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.
    An example where it has gone wrong is :
    Current date: 28.01.2008 Current time: 04:27:11
    l_deadlinehours = 12
    New date: 20.10.0427 New time: 20:01:28.
    Can anyone pls suggest why this could be happening?
    regards,
    Abhishek

    Does it happen for certain users? Maybe there is something from how you handle the dates in your workflow. Maybe the date settings are different for certain users - check their user master.
    Regards,
    Karri

  • RSWUWFML2 is not working properly in Background.

    Hi Guru's,
    I want to send workitems created in sap to Outlook Email online.
    I know RSWUWFML2 is obselete, but due to some setup issues with Extended Notificaiton we are doing a workaround with RSWUWFML2.
    If I run RSWUWFML2 in foreground with date and Time set. Then Workitem created on that date and after the time is picked up and sent. This works good.
    But if I run RSWUWFML2 in background with dynamic date as current date and dynamic time as 5min - current time (saved as variant)then it does not pick any workitem. (I want to schedule this for every 5 mins so that only new workitems are picked and sent. If I dont give the time restriction then all the unprocesssed workitems are sent created for the day for every job run.)
    If I run RSWUWFML2 with only dynamic date as current date (saved as variant) in bacground all workitems are picked up for the current date.
    I am not able to figure out where am i going wrong. I have restricted the user to myself.
    I am doubting User Data settings. As the system time is CET and My User Data Setting is CST. Could this be the problem?
    Do let me know if you have any idea how to get this working or anyother method for acheving ths task.
    Thanks

    If You mark "New work items only", then You have to leave blank fields:
    From date
    From time
    user
    In code You can find block:
    where variable l_set_lastrun is set to "X"
    Then in block:
    this variable is used to modify timestamp in SWU_WLSCAN table.
    Timestamb from this table is used further for selecting new work items
    Best regards
    Wojciech Adamski

  • Transfer Function Block Component not working properly

    When using a Transfer Function Block, and you enter in the polynomial coefficients for a simple RC Passive Low-Pass Circuit, and perform an AC analysis side-by-side to its circuit equivalent, it works great.  The 2 frequency response waveforms are identical.  However, when you add another RC Low-Pass section in cascade with the 1st one, making it a 2-pole RC Passive Low-Pass Circuit, and you put its polynomial coefficients into the transfer function block the results of the AC Frequency Response is not identical to its 2-pole circuit equivalent.  I double checked my math to make sure my transfer function math was correct.  Since 2 transfer functions are in cascade, the transfer function from the 1st RC stage is multiplied times the transfer function of the 2nd RC stage, and the result is the overall transfer function.  I even went as far as creating 2 transfer function blocks, each of them, with a single RC transfer function and connecting them in a cascade fashion.  The results were the same....the trasnfer function block(s) do not resemble their circuit equivalent models for a >=2pole Passive RC Low-Pass filter.

    The transfer function of a RC ist not retroactively-free, this is the reason why the transfer function of 2 RC Circuits is not 1 / (1 + RC*s)^2 ! You can not multiply the one function of one RC with the other!
    You have to solve the differential equation of the RC circuits, to get the real transfer function.

  • Windows 7 Brightness and Function key not Working Properly

    i have HP 15-af024AU APU Quad Core A8-7410 - (4 GB DDR3,1 TB HDD) Noteboook and it  came with windows 8.1 preinstalled than i installed windows 7 ultimate.
    i have problem in Display Brightness i am not able to change Brightness by function key or by manually from windows settings.
    2. my Function key are not working properly . all key are fliped whiout holding function key it work as function key. 3. bluetooth is not working when i search for new device not able to find any available discouable bluetooth device. 4. wireless button software is not wokring in windows 7 i already updated my bios that available in drivers support and install alll drivers too properly so please give proper drivers for windows 7 for this product that works perfect.

    Sorry that driver didn't work. You can try this graphics driver and if that doesn't work, unfortunately, I won't be able to help you with that issue. This package provides the AMD High-Definition (HD) Graphics Driver and Catalyst Control Center for supported notebook models that are running a supported operating system. For notebooks with switchable graphics modes, this package includes drivers for both graphics processing units (GPUs). Switchable graphics enable users to switch between a power-saving graphics mode (normally used under battery power) and a high-performance graphics mode. If high-definition multimedia interface (HDMI) video output is supported, this package also installs the HDMI Audio Driver. File name: sp71253.exe As far as the Fn keys being 'flipped,' I have no idea what you mean by that, or what to do about it. Did you install the software that controls the funtion keys? This package contains the HP System Event Utility, which enables special function keys on supported notebook models to be programmed. For example, HP System Event Utility enables users to press the Fn+ESC keys to view system information. This software works with the supported operating systems. File name: sp71156.exe

Maybe you are looking for

  • Not getting Tupples in the proper format in Syndicator

    Hi, I am working on SAP MDM 7.1 SP04. When I am trying to open a repository which contains 2 main tables in syndicator, the tuples does not show me the fields available in them. I mean tuples are just showing up as a single field (with pink flower in

  • Email can't be verified as its already in use with another apple id

    Hi there, This is my conundrum. When I got my iPhone 3Gs, I made an apple id with my @hotmail.com email. Then when I got an @me.com email about a year later, and automatically I have two apple id's. Well I tried to make the switch over to just using

  • GR Qty more than Delivery Qty in Production Order

    Hi there are a amazing Production order that GR Qty more than Delivery Qty of finished goods in this production order. there are some data in this production order as below: Order Qty = 2680 Delivery Qty = 2680 Tolerance = 0 However, to my surprise,

  • ME12 - get Charasteristic value from Class maintained

    Hi Folks, In transaction ME12 Vendor-Material wise info-record is maintained in which Class is defined and it has Charasteristics in it. Now some value is entered in this Charasteristics, so need to fetch this value to display in Purchase Order repor

  • To moderators : corrupted file in Crystal Reports XI R2 download area

    Hi Moderators, Regarding this thread : CRXI R2 SP4 : Installation problem , the SP4 full build is corrupted. Is the possible to correct this ? Thanks and Best Regards, Phil