‎2007 May 22 7:25 AM
HI ALL
am using the code below but am getting an "ERROR CALLED ON VALUE REQUEST FOR" should be followed by <parameter> or <select-option>-LOW / <select-option>-HIGH.please help and also please mention the changes if needed
with regards
vijay
at selection-screen on value-request for p_hfile.
file name get (F4)
call function 'KD_GET_FILENAME_ON_F4'
exporting
static = 'X'
changing
file_name = p_hfile
exceptions
mask_too_long = 1
others = 2.
start-of-selection.
perform upload_data.
sort it_file.
perform open_group.
loop at it_file.
at new aznum.
import febmka-vari_start
febmka-kont_int
febmka-debi_mid
febmka-kred_mid
febmka-wvar_art
novaluta_flag "XVALUT
nofdis_flag
from database rfdt(mk) id sy-uname.
if febmka-kont_int = 'X'.
v_srno = '0101'.
else.
v_srno = '0102'.
endif.
read table it_file index sy-tabix.
perform bdc_dynpro using 'SAPMF40K' v_srno. "'0102'.
perform bdc_field using 'BDC_OKCODE'
'/EVORG'.
if v_srno = '0102'.
perform bdc_field using 'BDC_CURSOR'
'FEBMKA-BANKL'.
elseif v_srno = '0101'.
perform bdc_field using 'BDC_CURSOR'
'FEBMKA-BUKRS'.
endif.
perform bdc_dynpro using 'SAPMF40K' '0110'.
perform bdc_field using 'BDC_CURSOR'
'FEBMKA-WVAR_ART'.
perform bdc_field using 'BDC_OKCODE'
'=ENTE'.
perform bdc_field using 'FEBMKA-KONT_INT'
'X'.
perform bdc_field using 'FEBMKA-FDIS_SEL'
'X'.
perform bdc_field using 'FEBMKA-VARI_START'
'ZSHV'.
perform bdc_field using 'FEBMKA-DEBI_MID'
'D'.
perform bdc_field using 'FEBMKA-KRED_MID'
'K'.
perform bdc_field using 'FEBMKA-WVAR_ART'
'2'.
perform bdc_field using 'FEBMKA-BUCH_VAL'
'X'.
***********************
perform bdc_dynpro using 'SAPMF40K' '0101'.
perform bdc_field using 'BDC_CURSOR'
'FEBMKA-AZNUM'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'FEBMKA-BUKRS'
it_file-bukrs. "'0571'.
perform bdc_field using 'FEBMKA-HBKID'
it_file-hbkid. "'HDFC'.
perform bdc_field using 'FEBMKA-HKTID'
it_file-hktid. "'HD01'.
perform bdc_field using 'FEBMKA-AZNUM'
it_file-aznum. "'11114'.
perform bdc_field using 'FEBMKA-AZDAT'
it_file-azdat. "'31.07.2006'.
perform bdc_field using 'FEBMKA-SSALD'
it_file-ssald. "' 0'.
perform bdc_field using 'FEBMKA-ESALD'
it_file-esald. "' -200'.
perform bdc_field using 'FEBMKA-BUDTM'
it_file-budtm. "'31.07.2006'.
perform bdc_field using 'FEBMKA-MNAM1'
it_file-mnam1. "'2222'.
perform bdc_field using 'FEBMKA-MNAM2'
it_file-mnam2. "'2111'.
perform bdc_field using 'FEBMKA-JNAME'
sy-uname. "'RAJUK'.
endat.
‎2007 May 22 9:32 AM
Hi.
You missed the definition of the parameter.
So insert the following line before all others.
PARAMETER: p_hfile TYPE RLGRAP-FILENAME.Regards,
Timo
‎2007 May 22 9:32 AM
Hi.
You missed the definition of the parameter.
So insert the following line before all others.
PARAMETER: p_hfile TYPE RLGRAP-FILENAME.Regards,
Timo
‎2007 May 22 9:34 AM
Hi,
Declare the parameter p_hfile of type RLGRAP_FILENAME.
Regards,
Deepu.K