Skip to Content

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Aug 19, 2011 at 07:05 AM

    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' ?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 18, 2011 at 02:20 PM

    Hi,

    I think you should first call FUNCTION POSTING_INTERFACE_START with I_MODE = 'E' then call 'POSTING_INTERFACE_CLEARING' .

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 18, 2011 at 03:17 PM

    Thanks for the reply...but the Function Module that you have mentioned should be used for definning the batch...incase you are using a BDC session method, but I am trying to use it in the CALL TRANSACTION mode. I think it might work if we use it in an

    CALL FUNCTION 'POSTING_INTERFACE_CLEARING' IN BACKGROUND TASK
     COMMIT WORK 

    I wiil try this

    ....Lemme c...Incase you any information please update....

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 19, 2011 at 08:07 AM

    Thanks for the reply...In your case you are using the session method. I will implement the sugesstion given by you.

    Thank You

    Tanmoy

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 22, 2011 at 09:16 AM

    Yes...its done

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.