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: 

F101 Post the entries from Z program

Former Member
0 Kudos
138

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

2 REPLIES 2

JayR
Participant
0 Kudos
99

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

Former Member
0 Kudos
99

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.