Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

FB05 not working in background but working in Fro-ground

0 Kudos

dear,

i am using FB05 for incoming posting with clearing, every thing working fine in for-ground but posting not happening in background when no. of document to be cleared is more than 14.

please help.

regard,

Atique

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor

Did you handle correctly the pagination (ok_code "=P+") or did you just add 1 to field name indice so exceeding dynpro number of line?

(In some case FM POSTING_INTERFACE_CLEARING can build the BDC for you, or just call it in a small test, with more than 14 items cleared, and look at the generated BDC)

3 REPLIES 3

raymond_giuseppi
Active Contributor

Did you handle correctly the pagination (ok_code "=P+") or did you just add 1 to field name indice so exceeding dynpro number of line?

(In some case FM POSTING_INTERFACE_CLEARING can build the BDC for you, or just call it in a small test, with more than 14 items cleared, and look at the generated BDC)

p244500
Active Contributor

HI,

kindly debug in background mode and check what will be the error your getting.

How to debug in back ground mode

1.write a code like bellow and execute the program in background mode , then go to SM50 , then you can see the background program Select the program first then in the menu bar

Administration >program>Debugging , then you can debug the program and you may be can figure the issue .

  DO   .
   IF sy-subrc <> 0
      EXIT.
    ENDIF.
  ENDDO. 

https://blogs.sap.com/2016/01/26/debug-background-job-with-ease/

Regards,

Nawa.

0 Kudos

thanks guys for quick reply, issue is resolved by doing recording at the client system, the main issue was the paging the document in case of more than 14 document.

thanks Raymond and Nawan...

Regards,

Atique