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

how to differentiate between presentation server and application server

Former Member
0 Likes
3,984

hi,

I wanted to upload the data from the presentation server or from the application server . Inside the coding i should check whether it is application server or presentation server how to check

4 REPLIES 4
Read only

Former Member
0 Likes
1,883

hi,

Files are stored in the presentation server means they are stored in your Desktop system... within the code you will find FM GUI_DOWNLOAD/GUI_UPLOD/WS_UPLOAD/WS_DOWNLOAD to determine the same..

Files are stored in the application server means they are stored in R/3 application server ... within the code you will find Open dataset, read dataset , transfer dataset or close dataset ...

Reward it this helps,

Regards,

Santosh

Read only

Former Member
0 Likes
1,883

HI Preetha,

Check the code below.

  • Selection Screen

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

PARAMETERS : rb_pc RADIOBUTTON GROUP r1 DEFAULT 'X'

USER-COMMAND ucomm, "For Presentation

p_f1 LIKE rlgrap-filename

MODIF ID rb1, "Input File

rb_srv RADIOBUTTON GROUP r1

"For Application

p_f2 LIKE rlgrap-filename

MODIF ID rb2, "Input File

p_direct TYPE char128 MODIF ID abc DEFAULT

c_path. "File Directory

SELECTION-SCREEN END OF BLOCK b1.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_f1.

*-- Browse Presentation Server

PERFORM ( Call - GUI UPLOAD.)

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_f2.

*-- Browse Application Server

PERFORM (Call - OPEN DATASET).

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF rb_pc = 'X' AND screen-group1 = 'RB2'.

screen-input = '0'.

MODIFY SCREEN.

ELSEIF rb_srv = 'X' AND screen-group1 = 'RB1'.

screen-input = '0'.

MODIFY SCREEN.

ENDIF.

IF screen-group1 = 'ABC'.

screen-input = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Reward points if it helps.

Manish

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
1,883

Hi,

Check if open dataset is used.If so,it's application server.Otherwise if GUI_UPLOAD/WS_UPLOAD is used,it's presentation server.

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
1,883

Hi,

Check if open dataset is used.If so,it's application server.Otherwise if GUI_UPLOAD/WS_UPLOAD is used,it's presentation server.