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: 

how i can use RFKOFW00 ( use logical database ) ?

Former Member
0 Kudos

hello ,

i want to call to program RFKOFW00 ( find balance for period ) from my program ,

the problem is that the program use logical database

and i don't have any parameters to use tham .

so is it possible and how ?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Please try the following...

data: begin of selpr occurs 0.

include structure RSPARAMS.

data: end of selpr.

clear selpr.

refresh selpr.

*selpr-selname = 'KD_LIFNR'.

*selpr-kind = 'S'.

*selpr-sign = 'I'.

*selpr-option = 'EQ'.

*selpr-low = '10000151'.

*append selpr.

clear selpr.

selpr-selname = 'KD_BUKRS'.

selpr-kind = 'S'.

selpr-sign = 'I'.

selpr-option = 'EQ'.

selpr-low = '0001'.

append selpr.

submit RFKOFW00 with selection-table selpr.

I have commented part for lifnr which u can use as per req.

11 REPLIES 11

Former Member
0 Kudos

hi piper,

Just refer these links you may get some idea...

Reward if helpful.

Regards,

Srikanth.

Former Member
0 Kudos

I am not sure what do u mean when u say <b> i don't have any parameters to use tham </b>.

Please explain, as atleast the basic vendor/companycode and date atleast would be there. Also is the program which call this program is a Z or std? One more option could be to copy this RFKOFW00 and create a Z program and play as u like. Also as it is logical database try to find out if there are any other parameters which u can have as select to pass to ur program.

0 Kudos

i copy the program ( RFKOFW00 -> yRFKOFW00 )

but still there is no parameters that i can use tham ,

i want to do submit with parameters ( from my z program )

but there is no parameters .

how can i add ( lifnr , company code ) ,

there is no parameters in the program RFKOFW00.

also from some reasons i not get screen 1000 in my copy

program .

thanks any way for the replays .

andreas_mann3
Active Contributor
0 Kudos

Hi dakota,

1) normal sel-options:

with prefix KD, e.g. KD_LIFNR

2) for dynamic selections:

use abap-command :

submit z123
      ...
         WITH FREE SELECTIONS texpr

texpr is an internal table of the type RSDS_TEXPR (see type pool RSDS).

Andreas

0 Kudos

thanks but "RFKOFW00" not contain "KD_LIFNR"

or "RSDS_TEXPR" almost just logical db.

i saw it ( lt_seltab-selname = 'KD_LIFNR'. )in RFKOPR00

but RFKOFW00 not use it .

thanks any way .

Former Member
0 Kudos

Hello dakota,

As u r using program which refers to logical database, if u double click on the KDF LDB and then on the selections u will be able to c the parameters for this program for vendor it is KD_LIFNR.

0 Kudos

ok , u right , i can see the parameters in include

"DBKDFSEL"

but how this help me ?

i tried to debug on RFKOFW00 and to do find ,

no "KD_LIFNR" also i dont see it in memory area .

so how can i use tham ?

thanks .

Former Member
0 Kudos

Please try the following...

data: begin of selpr occurs 0.

include structure RSPARAMS.

data: end of selpr.

clear selpr.

refresh selpr.

*selpr-selname = 'KD_LIFNR'.

*selpr-kind = 'S'.

*selpr-sign = 'I'.

*selpr-option = 'EQ'.

*selpr-low = '10000151'.

*append selpr.

clear selpr.

selpr-selname = 'KD_BUKRS'.

selpr-kind = 'S'.

selpr-sign = 'I'.

selpr-option = 'EQ'.

selpr-low = '0001'.

append selpr.

submit RFKOFW00 with selection-table selpr.

I have commented part for lifnr which u can use as per req.

0 Kudos

thanksssssssssssssssss , working )) .

0 Kudos

what is differently in my solution (comparing with Abhijit Dani) aside that my statement is general ?

shalom

Andreas

0 Kudos

hi

adding to that....what if we want the select params to be entered by users then in that case ...

suppose we declare the same as selection screen and make user enter the field and later call submitt to program....

will that b okay?

thx

gunjan