Application Development and Automation 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: 
Read only

AT SELECTION SCREEN

Former Member
0 Likes
567

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.

1 ACCEPTED SOLUTION
Read only

amit_khare
Active Contributor
0 Likes
504

You have to check that value <b>p_hfile</b> is declared as PARAMETER in the report.

Regards,

Amit

Reward all helpful replies.

3 REPLIES 3
Read only

Former Member
0 Likes
504

Hi Vijay,

Can you please post the whole code.

I think you have not defined p_hfile as the selection screen parameter in your program.

Reward points if useful.

Regards,

Atish

Read only

amit_khare
Active Contributor
0 Likes
505

You have to check that value <b>p_hfile</b> is declared as PARAMETER in the report.

Regards,

Amit

Reward all helpful replies.

Read only

Former Member
0 Likes
504

hi,

you have to write parameters for inputting the file.you forgot to specify PARAMETERS. specify that.you want get errpr.

check this one also.

parameters: p_file type ibipparms-path.

at selection-screen on value-request for p_file.

call function 'F4_FILENAME'

  • EXPORTING

  • PROGRAM_NAME = SYST-CPROG

  • DYNPRO_NUMBER = SYST-DYNNR

  • FIELD_NAME = ' '

importing

file_name = p_file

.