How to call  'POSTING_INTERFACE_CLEARING'  in background

Dear ALL,
                 I am calling the Function Module 'POSTING_INTERFACE_CLEARING' from the custom program. I am passing the following import parameters. Please look at the code section:
CALL FUNCTION 'POSTING_INTERFACE_CLEARING'
    EXPORTING
      i_auglv                    = lc_auglv
      i_tcode                    = lc_tcode
      i_sgfunct                  = lc_sgfunct
Now what it does it calls the FB05 transaction in CALL TRANSACTION mode in foreground. What I need is to execute the transaction in background. Only incase of errors it should come to the foreground. Can anyone tell me how to do it or any sugesstions...

Hi,
in my case I'm using
  CALL FUNCTION 'POSTING_INTERFACE_START' 
    EXPORTING                             
      I_FUNCTION               = 'C'      
      I_MODE                   = WWMODE   
      I_UPDATE                 = 'S'      
    EXCEPTIONS                            
     CLIENT_INCORRECT         = 1         
     FUNCTION_INVALID         = 2         
     GROUP_NAME_MISSING       = 3         
     MODE_INVALID             = 4         
     UPDATE_INVALID           = 5         
     OTHERS                   = 6.              
with wwmode 'A', all the screens are displayed; with 'E' only the screens containing errors, and with 'N' no screen is displayed.
I tested the 3 cases and it works. Did you try with I_FUNCTION = 'C' ?

Similar Messages

  • How to call URL in background or close the browser from ABAP

    Requirement changed.. no longer an issue. Thanks.
    Message was edited by:
            Atul Devasthali

    Hi He,
    This question has been asked (and answered) many times in this forum.
    Please do a search for words like "InitialContext", "RMIInitialContextFactory",
    and "weblogic". You will find lots of information.
    Also, the following web page has links to documentation, "how-tos"
    and sample code:
    http://otn.oracle.com/tech/java/oc4j/content.html
    Have you looked at it?
    Good Luck,
    Avi.

  • Call function in background task... How to get the result?

    I want to use Call function in background task parameter.
    But I cannot find the result of this function. (No export parameter, no table result, no exception)
    How to get the result of this function module? Correct or not?

    Hi Heinz,
    You can check the result in SM58 transaction.
    For more information pls. refer this thread :
    No IMPORTING parameters allowed in CALL FUNCTION IN BACKGROUND TASK
    Best regards,
    Prashant

  • How to call url from abap in background

    Hi,
    I could open url but it opens browser window
    i saw several threads on how to cal url in background but no good answer
    kindly help
    thanks
    B

    Hi,
    Try the following (primitive) example, it calls an url and display the result on screen.
    Hope this will help you.
    <pre>
    REPORT  test.
          CLASS lcx_http_client DEFINITION
          Minimal Error Handling
    CLASS lcx_http_client DEFINITION INHERITING FROM cx_static_check.
      PUBLIC SECTION.
        INTERFACES:
          if_t100_message.
        DATA:
           mv_method TYPE string,                               "#EC NEEDED
           mv_subrc  TYPE i.                                    "#EC NEEDED
        METHODS:
          constructor
            IMPORTING iv_method TYPE string  OPTIONAL
                      iv_subrc  TYPE i       OPTIONAL
                      iv_msgid  TYPE symsgid DEFAULT '00'
                      iv_msgno  TYPE i       DEFAULT 162.
    ENDCLASS.                    "lcx_http_client DEFINITION
          CLASS lcx_http_client IMPLEMENTATION
    CLASS lcx_http_client IMPLEMENTATION.
      METHOD constructor.
        super->constructor( ).
        mv_method = iv_method.
        mv_subrc  = iv_subrc.
        if_t100_message~t100key-msgid = iv_msgid.
        if_t100_message~t100key-msgno = iv_msgno.
        if_t100_message~t100key-attr1 = 'MV_METHOD'.
        if_t100_message~t100key-attr2 = 'MV_SUBRC'.
      ENDMETHOD.                    "constructor
    ENDCLASS.                    "lcx_http_client IMPLEMENTATION
          CLASS lcl_http_client DEFINITION
          Facade for if_http_client
    CLASS lcl_http_client DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS:
          get_http_client_by_url
            IMPORTING iv_url           TYPE string
                      iv_proxy_host    TYPE string OPTIONAL
                      iv_proxy_service TYPE string OPTIONAL
                      PREFERRED PARAMETER iv_url
            RETURNING value(ro_http_client) TYPE REF TO lcl_http_client
            RAISING lcx_http_client.
        DATA:
          mr_http_client TYPE REF TO if_http_client.
        METHODS:
          send
            RAISING lcx_http_client,
          receive
            RAISING lcx_http_client,
          close
            RAISING lcx_http_client,
          get_response_header_fields
            RETURNING value(rt_fields) TYPE tihttpnvp,
          get_response_cdata
            RETURNING value(rv_data) TYPE string.
    ENDCLASS.                    "lcl_http_client DEFINITION
          CLASS lcl_http_client IMPLEMENTATION
    CLASS lcl_http_client IMPLEMENTATION.
      METHOD get_http_client_by_url.
        DATA: lv_subrc TYPE sysubrc.
        CREATE OBJECT ro_http_client.
        cl_http_client=>create_by_url( EXPORTING url                 = iv_url
                                                 proxy_host          = iv_proxy_host
                                                 proxy_service       = iv_proxy_service
                                       IMPORTING client              = ro_http_client->mr_http_client
                                       EXCEPTIONS argument_not_found = 1
                                                  plugin_not_active  = 2
                                                  internal_error     = 3
                                                  OTHERS             = 999 ).
        CHECK sy-subrc <> 0.
        lv_subrc = sy-subrc.
        RAISE EXCEPTION TYPE lcx_http_client EXPORTING iv_method = 'GET_HTTP_CLIENT_BY_URL' iv_subrc = lv_subrc.
      ENDMETHOD.                    "get_http_client_by_url
      METHOD send.
        DATA: lv_subrc TYPE sysubrc.
        mr_http_client->send( EXCEPTIONS http_communication_failure = 5
                                         http_invalid_state         = 6
                                         http_processing_failed     = 7
                                         http_invalid_timeout       = 8
                                         OTHERS                     = 999 ).
        CHECK sy-subrc <> 0.
        lv_subrc = sy-subrc.
        RAISE EXCEPTION TYPE lcx_http_client EXPORTING iv_method = 'SEND' iv_subrc = lv_subrc.
      ENDMETHOD.                    "send
      METHOD close.
        DATA: lv_subrc TYPE sysubrc.
        CALL METHOD mr_http_client->close
          EXCEPTIONS
            http_invalid_state = 10
            OTHERS             = 999.
        CHECK sy-subrc <> 0.
        lv_subrc = sy-subrc.
        RAISE EXCEPTION TYPE lcx_http_client EXPORTING iv_method = 'CLOSE' iv_subrc = lv_subrc.
      ENDMETHOD.                    "close
      METHOD receive.
        DATA: lv_subrc TYPE sysubrc.
        mr_http_client->receive( EXCEPTIONS http_communication_failure = 9
                                            http_invalid_state         = 10
                                            http_processing_failed     = 11
                                            OTHERS                     = 999 ).
        CHECK sy-subrc <> 0.
        lv_subrc = sy-subrc.
        RAISE EXCEPTION TYPE lcx_http_client EXPORTING iv_method = 'RECEIVE' iv_subrc = lv_subrc.
      ENDMETHOD.                    "receive
      METHOD get_response_header_fields.
        mr_http_client->response->get_header_fields( CHANGING fields = rt_fields ).
      ENDMETHOD.                    "get_response_header_fields
      METHOD get_response_cdata.
        rv_data = mr_http_client->response->get_cdata( ).
      ENDMETHOD.                    "get_response_cdata
    ENDCLASS.                    "lcl_http_client IMPLEMENTATION
    PARAMETERS: p_url   TYPE string DEFAULT 'http://www.google.com' LOWER CASE,
                p_phost TYPE string DEFAULT 'your_proxy_here'       LOWER CASE,
                p_pserv TYPE string DEFAULT '8080'                  LOWER CASE.
    *===================================================================================
    START-OF-SELECTION.
      TRY .
          DATA: gt_data          TYPE string_table,
                gv_data          TYPE string,
                gr_http_client   TYPE REF TO lcl_http_client,
                go_cx            TYPE REF TO lcx_http_client.
          "Initialize the http client
          gr_http_client =
            lcl_http_client=>get_http_client_by_url( iv_url           = p_url
                                                     iv_proxy_host    = p_phost
                                                     iv_proxy_service = p_pserv ).
          "Call the specified URL and retrieve data from the response
          gr_http_client->send( ).
          gr_http_client->receive( ).
          gv_data = gr_http_client->get_response_cdata( ).
          "Its over....
          gr_http_client->close( ).
          "Display result
          REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>cr_lf IN gv_data WITH cl_abap_char_utilities=>newline.
          SPLIT gv_data AT cl_abap_char_utilities=>newline INTO TABLE gt_data.
          LOOP AT gt_data INTO gv_data.
            WRITE: / gv_data.
          ENDLOOP.
        CATCH lcx_http_client INTO go_cx.
          MESSAGE go_cx TYPE 'S' DISPLAY LIKE 'E'.
      ENDTRY.
    </pre>

  • How to call Background CO in Due Date

    Hi All,
                We have a scenario, where we need escalate a workitem from one person's UWL to another person's UWL.. The Escalation has to happen only when the due date is reached.
                 Notification CO is working fine with respect to our scenario, but we want to call a webdynpro background CO there. when we try to call Webdynpro CO, no action is happening.
                  What is the reason behind this?. Is there any work around for this?
    Regards,
    Krishnaveni.

    Hi Krishnaveni,
    Only background callable object can be used for notifications and due date. You need to put the implementation of your callable object, which implement the IGPBackgroundCallableObject interface in a library like for any other background callable object.
    I'm not sure that a Web Dynpro background CO can exists because of the layering and class loading issues.
    To be sure that it works, you can test the background callable object in standalone mode in the Design Time.
    Hope this helps,
    Best regards.
    David

  • Fireworks CS3: How to call a background

    Hello,
    At work, I use Fireworks CS3. My job is to normalize our
    products pictures to the group’s colors.
    In fact I take a picture and retouch it, then I load a
    standard background, I put the pic on it and I export all in jpg.
    Instead of searching for the background file in my computer
    and copy/paste the detoured pic on it, I would like to
    “call” this background as a calque into my document,
    and automatically resize my document.
    Is it possible ?
    Sorry for my English, I’m French. Please use easy words
    to reply :)

    "Mike_fr" <[email protected]> wrote in
    message
    news:gh6be1$bpm$[email protected]..
    > Hello,
    >
    > At work, I use Fireworks CS3. My job is to normalize our
    products pictures
    > to
    > the group?s colors.
    >
    > In fact I take a picture and retouch it, then I load a
    standard
    > background, I
    > put the pic on it and I export all in jpg.
    >
    > Instead of searching for the background file in my
    computer and copy/paste
    > the
    > pic, I would like to ?call? this background as a calque
    into my document,
    > and
    > automatically resize my document.
    >
    > Is it possible ?
    I'm guessing there is a batch process you could do here...
    unfortunately,
    I've never used batch processing, so....
    Tim G.
    http://www.pactumweb.com
    http://www.shortordersite.com
    Be smart:
    http://www.pactumweb.com/client/tips.php

  • How can I change the background color in the inbox?

    The background color in my inbox (well, all mailboxes) is white. A yellow background would make the existing black text a lot easier to read. How can I change the background color in the inbox?

    Themes work in Thunderbird - duggabe was not refering to Firefox.
    Another useful addon is theme and font changer:
    * https://addons.mozilla.org/fr/thunderbird/addon/theme-font-size-changer/
    However, Thunderbird allows you to modify all sorts of things.
    Make hidden files and folders visible:
    * http://kb.mozillazine.org/Show_hidden_files_and_folders
    Help > Troubleshooting Information
    Click on 'show Folder' button
    a window opens shwoing profile folder name
    Close Thunderbird now - this is important
    In the profile name folder, Create a new folder called '''chrome''' - note the spelling
    It should be in the same place as the 'Mail' folder.
    see first image below.
    Open Notepad
    Can be located : Start > Programs > accessories
    Copy everything shown between the lines below.
    Paste into Notepad.
    Save as '''userChrome.css''' - note the spelling (edit updated - this was a typo error)
    This should be saved in the '''chrome''' folder.
    see second image below.
    Restart Thunderbird.
    I have chosen a yellow for you
    <pre>
    #f6f58c = a yellow....it is a hex code for a colour.
    </pre>
    You can change it if required. Remember when updating anything in the profile folders, you must close Thunderbird first.
    More info on colours.
    * http://www.yourhtmlsource.com/stylesheets/namedcolours.html
    <pre>
    * Do not remove the @namespace line -- it's required for correct functioning
    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
    /*Background colour for message list*/
    #threadTree > treechildren::-moz-tree-row {
    background-color: #f6f58c !important;
    </pre>
    -------------------------------------------

  • Call Transaction in background mode

    Hi everyone,
    What I am currently trying to do is to perform a 'call transaction' while forcing the 'background processing' mode even when the user is running the program in online mode; this allows me to retrieve a lot more messages that are useful to the user than the messages generated in online mode.
    As long as I have seen there is no field for that in the options table that can be passed to the 'call transaction' sentence. The only way to see that behavior while in online mode is by 'playing back' a recording thru the SHDB transaction and checking the 'Simulate background' option.
    My first attempt was to set the SY-BATCH flag before doing the call transaction but it doesn't work, the flag seems to reset itself with the correct value during the call.
    Any comments on this would be greatly appreciated.
    Regards,
    Sergio

    You would have to create a job on the fly to do this.  This example shows how to kick off a background job via an ABAP program.
    report zrich_0004 .
    data:   sdate type sy-datum,
            stime type sy-uzeit,
            l_valid,
            ls_params like pri_params,
            l_jobcount like tbtcjob-jobcount,
            l_jobname  like tbtcjob-jobname.
    start-of-selection.
    * Get Print Parameters
      call function 'GET_PRINT_PARAMETERS'
           exporting
                no_dialog      = 'X'
           importing
                valid          = l_valid
                out_parameters = ls_params.
    * Open Job
      l_jobname = 'ZRICH_0005'.
      call function 'JOB_OPEN'
           exporting
                jobname  = l_jobname
           importing
                jobcount = l_jobcount.
    * Submit report to job
      submit zrich_0005   
           via job     l_jobname
               number  l_jobcount
           to sap-spool without spool dynpro
               spool parameters ls_params
                  and return.
    * Schedule and close job.
      call function 'JOB_CLOSE'
           exporting
                jobcount  = l_jobcount
                jobname   = l_jobname
                strtimmed = 'X'

  • Call transaction in background in report

    I have a report in which I call a transaction, but the requirement is that I have to call it in background.
    Can you please suggest how I can achieve this.
    <removed_by_moderator>
    Edited by: Julius Bussche on Aug 26, 2008 3:20 PM

    Hi charles,
    Use the mode 'N'
    Example:-
    DATA:
      fs_opt TYPE ctu_params.
      fs_opt-dismode = 'N'.
        CALL TRANSACTION 'PA30'  USING t_bdcdata OPTIONS FROM fs_opt.
    Luck,
    Bhumika

  • How to call rfc fuction module designed in sap from netweaver

    Hi all.
          Can any one pls let me know how to call the trfc,arfc function modules designed in sap from netweaver system.
    Is the method of calling trfc , arfc fuction modules from non sap system same?
    If not let me know how to call trffc & arfc function modules from non  sap systems.Thanks in advance.
    Kind Regards,
    sami.

    Hi
    Use
    in background task
    and
    destination
    additions when you call tRFC function modules from
    SAP system to SAP system.

  • How can i change my background color in "albums" mode back to black in iTunes 11

    how can i change my background color in albums mode back to black in iTunes 11?

    Themes work in Thunderbird - duggabe was not refering to Firefox.
    Another useful addon is theme and font changer:
    * https://addons.mozilla.org/fr/thunderbird/addon/theme-font-size-changer/
    However, Thunderbird allows you to modify all sorts of things.
    Make hidden files and folders visible:
    * http://kb.mozillazine.org/Show_hidden_files_and_folders
    Help > Troubleshooting Information
    Click on 'show Folder' button
    a window opens shwoing profile folder name
    Close Thunderbird now - this is important
    In the profile name folder, Create a new folder called '''chrome''' - note the spelling
    It should be in the same place as the 'Mail' folder.
    see first image below.
    Open Notepad
    Can be located : Start > Programs > accessories
    Copy everything shown between the lines below.
    Paste into Notepad.
    Save as '''userChrome.css''' - note the spelling (edit updated - this was a typo error)
    This should be saved in the '''chrome''' folder.
    see second image below.
    Restart Thunderbird.
    I have chosen a yellow for you
    <pre>
    #f6f58c = a yellow....it is a hex code for a colour.
    </pre>
    You can change it if required. Remember when updating anything in the profile folders, you must close Thunderbird first.
    More info on colours.
    * http://www.yourhtmlsource.com/stylesheets/namedcolours.html
    <pre>
    * Do not remove the @namespace line -- it's required for correct functioning
    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
    /*Background colour for message list*/
    #threadTree > treechildren::-moz-tree-row {
    background-color: #f6f58c !important;
    </pre>
    -------------------------------------------

  • How to call the PS filter in my own MFC PlugIn

    There are several filters in PS that I use frequently.But it's so trouble to find them one by one.I want to write a plugin so that I can see all the filters I want in the same interface.I try it.But when I called filter in my plugin,it always told me that something was wrong and the plugin can't do anything.Can anybody tell me how to call the PS filter in MFC Plugin.My codes that called filter was in the follow.I don't know where is wrong.(ps:My english is so poor.....I don't know whether there are some syntax error.Sorry.)
    PIActionDescriptor test = NULL;
      SPErr error = kSPNoError;
      PIActionDescriptor result = NULL;
      error = sPSActionDescriptor->Make(&test);
      sPSActionDescriptor->PutEnumerated(test,'GEfk','GEft','PstE');
      sPSActionDescriptor->PutInteger(test,keyEdgeThickness,2);
      sPSActionDescriptor->PutInteger(test,keyEdgeIntensity,6);
      sPSActionDescriptor->PutInteger(test,keyPosterization,2);
      error = sPSActionControl->Play(&result,eventPosterEdges,test,plugInDialogSilent);

    I'm sorry. But how can I selected the pixel layer in MFC. I use the codes in the follow. And it work excellent in the automation plugin. But it doesn't work in MFC plugin. How can I change it? Can you give me some advices?
    PIActionDescriptor desc00000000000000F8 = NULL;
    error = sPSActionDescriptor->Make(&desc00000000000000F8);
    if (error) goto returnError;
    PIActionReference ref0000000000000038 = NULL;
    error = sPSActionReference->Make(&ref0000000000000038);
    if (error) goto returnError;
    error = sPSActionReference->PutName(ref0000000000000038, classLayer, "Background");
    if (error) goto returnError;
    error = sPSActionDescriptor->PutReference(desc00000000000000F8, keyNull, ref0000000000000038);
    if (error) goto returnError;
    error = sPSActionDescriptor->PutBoolean(desc00000000000000F8, keyMakeVisible, false);
    if (error) goto returnError;
    error = sPSActionControl->Play(&result, eventSelect, desc00000000000000F8, plugInDialogSilent);
    if (error) goto returnError;

  • CALL FUNCTION IN BACKGROUND UNIToref.

    Hi All,
    Please tell me the method how to use FM IN Backgorund job(only  IN BACKGROUND UNIToref)
    CALL FUNCTION IN BACKGROUND UNIToref.
    it would be better if give practical example.
    Regards,
    Anuj jain

    Hi Heinz,
    You can check the result in SM58 transaction.
    For more information pls. refer this thread :
    No IMPORTING parameters allowed in CALL FUNCTION IN BACKGROUND TASK
    Best regards,
    Prashant

  • Save Order - Call function in background Task

    Hi all,
    I have written a function module which is called in order save Badi and copies the system status on the Master contract to the sub contracts.
    This works fine but when I call this function in background task the status is not getting copied over.For testing I have created a program similar to function module and scheduled that in background and this was working as required.
    Can someone please let me know if I missed out anything or how can i resolve this issue.
    Any inputs in this regard would be very helpful.
    Thanks and regards,
    Vijay

    Hi Heinz,
    You can check the result in SM58 transaction.
    For more information pls. refer this thread :
    No IMPORTING parameters allowed in CALL FUNCTION IN BACKGROUND TASK
    Best regards,
    Prashant

  • General BADi question:Call BADi in background job/batch input. Possible?

    Hi out there,
    i'm using thoe following BADi: /SAPSLL/CTRL_SD0C_R3 (Global Trade Service).
    But also, this question is a general question.
    If we are calling on screen the transaction VF01, the BADi is called correctly.
    But unfortunately it seemes that the BADi is NOT called (im not really sure, cause i can't debug the background task) when we are calling a batch input sequence wth f.e. form bdc_transaction VF01 nothing happens.
    Maybe BADi cannot be called in a background task? If it's possible, how could it be monitored. Thare isw no spool entry or anything like that!
    Any answer can help.
    Thank you in advance!
    Regards,
    Timo
    Edited by: Timo Ehl on Apr 14, 2009 7:27 PM

    Hi,
    generally BADIs are called in background mode. You can use the following trick to debug your BADI. You just need to create an infinite loop in your BADI implementation. Something like this.
    DATA: l_a TYPE c.
    WHILE l_a IS INITIAL.
    ENDWHILE.
    Obviously when your BADI is called in background mode then program will get into infinite loop. You can easily connect and debug running programs from transaction SM50. You need to select your background process and go to Program/Session -> Program -> Debugging. You will jump directly into your BADI methos with infinite loop. Then you will just set value to l_a and you will start debugging your BADI. If you can not find any process then your BADI is not called in background mode.
    Cheers

Maybe you are looking for

  • Can not delete data from table which is queried in my stored procedure

    Hi, Anyone knows how to fix it: I have a table. In a stored procedure, I have a simple query running on this table. When I want to delete one record from that table, I got error message: ORA-04091: table *** is mutating, trigger/function may not see

  • Preview, Fontbook, Maps not working after Mavericks update

    Updated to Mavericks and discovered that a bunch of my mac apps have decided to stop working. I click on them, see a flash and the app just dissapers. Anyone having the same issue? Any solutuons? Running the first-gen Macbookpro Retina.

  • Making Examine utilty read only

    We are managing 11.5.10.2 (RUP 3) instance. As per our Auditing requirements we have to disable Examine Utility (By setting the profile option Utilities:Diagnostics to No) but our support team members wanted to have this feature as it is required for

  • Problem with Crystal Report Loading

    Hi, I have built a windows application in VS2010. there I have used dataset to load data into crystal report. but wheever the application is trying to load report it is giving the following error: "Could not load file or assembly 'file:///C:\Program

  • Amber isn't available yet

    i cant update my phone to amber although in nokia support page it says available for iraq for lumia 620 here is my phone info : RM-846_im_mea3_284 firmware revision number: 1030.6407.1308.0001 please help