2007 Aug 02 6:22 AM
Hi,
My requirement is to do BDC for F101 screen ...
F101 screen has input values and after that if we execute its displaying a ALV report.After display of ALV grid , if i click POST it will post the entries.
BDC is not possible for ALV grid.
So I tried to give input vzlues and submit this to that program.
wa_rspar-selname = 'KONTOART'.
wa_rspar-kind = 'S'.
wa_rspar-sign = 'I'.
wa_rspar-option = 'EQ'.
wa_rspar-low = 'D'.
APPEND wa_rspar TO rspar.
clear wa_rspar.
wa_rspar-selname = 'DKONTO'.
wa_rspar-kind = 'S'.
wa_rspar-sign = 'I'.
wa_rspar-option = 'EQ'.
wa_rspar-low = '0230000011'.
APPEND wa_rspar TO rspar.
clear wa_rspar.
submit SAPF101 using Selection-screen '1000'
WITH SELECTION-TABLE rspar.
its working fine and its displaying the ALV grid also.In that I have to click POST manually to post the entries.
here my question is, i have to post the entries from my Z program.After display of ALV it should go for posting.No need to show the ALV to user. it should post the entries.
How to do this.
Anyone plz help me with a solution.
Message was edited by:
Sumi Vasu
2007 Aug 02 10:26 AM
Hi Sumi,
Dont use the FM to display ALV. Once the data get collected in itab. Use the following commands to post
SET USER-COMMAND 'POST'.
AT USER-COMMAND.
write ur posting logic here
Jai
2007 Aug 02 10:30 AM
I am not displaying ALV grid from my program,
I am just calling the Standard Program which is returning ALV grid ...I adont want to display the ALV grid I want to process the POST button.