cancel
Showing results for 
Search instead for 
Did you mean: 

Effective Interface(Selection screen) for data upload

Former Member
0 Kudos
207

Hi All,

I had got a task to develop a interface for data upload from Application server and presentation server. the thing is i had 2 populate 15 SAP SCM tables from that interface. but i had been asked 2 develop a simple interface with one or 2 parameters and some radio buttons and check boxs. givme some idea on this topic na . it`ll be better for me 2 impress my lead in my 1st spec itself in my new project.

Bye .

guru

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi...

Hope the below code helps you.

parameters : P_LOCAL type RLGRAP-FILENAME,

P_APPLN TYPW RLGRAP-FILENAME.

Parameters : R_LOCAL radiobutton group rad1,

R_APPLN radiobutton group rad1.

at selection-screen.

if R_LOCAL = 'X' and P_LOCAL is initial.

message e000 with 'Enter Local Path'.

elseif R_APPLN = 'X' and P_APPLN is intial.

message E000 with 'Enter Application Server Path'.

elseif P_LOCAL is initial and P_APPLN is initial.

message E000 with 'Enter either Local Path or Application Server Path'.

endif.

Regards,

Vara

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Vara,

I had got 15 flat files man. that interface has to populate the 25 SAP SCM tables. so it could be done with one or two parameters and some radio and checks. did u got my point now. thanx for ur reply and let me know the exact idea for my condition. bye.

Guru

andreas_mann3
Active Contributor
0 Kudos

Hi guru,

-> save your flat files in one directory on appl-server

  CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
       EXPORTING
            DIR_NAME               = dir            FILE_MASK              = mask
       TABLES
            DIR_LIST               = dir_list.

  loop at dir_list.
    concatenate dir '/' dir_list-name into file.
      open dataset file for input in text mode.
    do.
      read dataset file into bstring.
      if sy-subrc <> 0.
        exit.
      endif.
*your process / append your itab(s)
...
      enddo.
...
  endloop.

regards Andreas

Message was edited by: Andreas Mann

Former Member
0 Kudos

Hi Andreas,

U had given me a exact Idea man.I always need your help thru my project Andreas. and I aslo need your E-mail ID for better quick solutions in instant chat. better give me your yahoo chat ID Andreas.

with lots

Thanx & Regards

Guru.

Former Member
0 Kudos

Hi Andreas,

U had given me a exact Idea man.I always need your help thru my project Andreas. and I aslo need your E-mail ID for better quick solutions in instant chat. better give me your yahoo chat ID Andreas. Mine yahoo id is (guruhai27@yahoo.co.in).

with lots

Thanx & Regards

Guru.