Skip to Content
0
Former Member
Jan 15, 2007 at 02:05 PM

There are two transactions ZJPVCS303 and ZJPVCS303_US for one single Report

12 Views

When run as a batch program, (currently this is the case), or withT-Code ZJPVCS303 the selection screen is unchanged (except for additional sales area above)

- When run as T-Code ZJPVCS303_UL (UL stands for Upload) the selection screen is changed. The unix file option is no longer available, and the user is able to upload a local file (in the same format as the current unix file, but tab delimited) to the program for processing.

Requirements:

There are two transactions ZJPVCS303 and ZJPVCS303_US for one single Report.

->When ZJPVCS303 Transaction is executed, the file is uploaded from the Application

server to SAP R/3. The selection screen parameters would be:

Logical Filename:

Sales Organization:

Distribution Channel:

Division:

->When ZJPVCS303_US Transaction is executed, the file is uploaded from the Presentation Server

to SAP R/3. When this transaction is executed, it should not have the 'Logical

Filename' parameter anymore on the selection-screen. Instead it should only have

Local File name on the presentation server:

Sales Organization:

Distribution Channel:

Division:

The same thing is applicable for the other transaction ZJPVCS303. When transaction ZJPVCS303

is executed, it should not have the 'Local Filename' parameter anymore on the selection-screen. Instead it should only have

Logical Filename:

Sales Organization:

Distribution Channel:

Division:

So how should I make these parameters invisible depending on the transaction codes execution.

I have an idea of using MODIF ID, LOOPING AT SCREEN...MODIFY SCREEN.

I have an idea of using SY-TCODE.

EX:

AT SELECTION-SCREEN OUTPUT.

IF SY-TCODE = 'ZJPVCS303'.

LOOP AT SCREEN.

IF SCREEN-GROUPID = 'GRP'.

SCREEN-INPUT = 0.

SCREEN-INVISIBLE = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ELSEIF SY-TCODE = 'ZJPVCS303_US'.

LOOP AT SCREEN.

IF .....

....

ENDLOOP.

ENDIF.

ENDIF.

But I am not able to get the output which I require. Please help me out.