04-20-2006 7:41 AM
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 ?
04-20-2006 11:12 AM
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.
04-20-2006 7:53 AM
04-20-2006 8:16 AM
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.
04-20-2006 8:57 AM
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 .
04-20-2006 8:59 AM
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
04-20-2006 9:46 AM
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 .
04-20-2006 9:53 AM
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.
04-20-2006 10:07 AM
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 .
04-20-2006 11:12 AM
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.
04-20-2006 11:32 AM
04-20-2006 2:05 PM
what is differently in my solution (comparing with Abhijit Dani) aside that my statement is general ?
shalom
Andreas
04-20-2006 2:47 PM
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