There are two transactions ZJPVCS303 and ZJPVCS303_US for one single Report

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.

Hello Rani
Basically the transaction determines whether upload starts from application server (AS) or presentation server (PC). Thus, you will have the following parameter:
PARAMETERS:
  p_as_fil          TYPE filename   MODIF ID unx,  " e.g. Unix server
  p_pc_fil          TYPE filename   MODIF ID wnd.  " e.g. Windows PC
AT SELECTION-SCREEN OUTPUT.
  CASE syst-tcode.
*   transaction(s) for upload from server (AS)
    WHEN 'ZJPVCS303.
      LOOP AT screen.
        IF ( screen-group1 = 'UNX' ).
          screen-input = 0.
          screen-invisible = 1.
          MODIFY screen.
        ENDIF.
      ENDLOOP.
*   transaction(s) for upload from local PC (PC)
    WHEN 'ZJPVCS303_US.
      LOOP AT screen.
        IF ( screen-group1 = 'WND' ).
          screen-input = 0.
          screen-invisible = 1.
          MODIFY screen.
        ENDIF.
      ENDLOOP.
   WHEN others.
   ENDCASE.
Regards
  Uwe

Similar Messages

Maybe you are looking for

  • Public Folders not visible in outlook 2010 for some

    Migrated exchange 2007 to 2013. I know Public Folders are a mailbox now. My question is why do some users with outlook 2010 see the Public Folders under "Tasks" on the left vertical bottom of outlook with "Folder List" highlighted and other DON'T -Th

  • Wrong Restore Disks? (iBook G4 800MHz - 10.3)

    Hi all, I hope someone can help me with this... I just bought a used iBook G4 and received the complete package of Restore Disks. OS X 10.3 installed perfectly, but when I tried to restore the rest of the software, I got a "Wrong Disk" dialog box say

  • Ubuntu, Disk, Media Kit, help me :(

    Using the disk utility, I have successfully installed Ubuntu OS on it's own 10 GB Partition(s). That's awesome and all, however, after running the installation, I wanted to install XP as well. So as I went to make another 10 GB free space on the same

  • New Log in glitch?

    For the past three days, I've gone to the log-in page, clicked on log in and the result is a completely empty, white page with the exception of an avatar in the very upper left corner: yesterday it was a white iMac, today the Finder icon (with a note

  • Could we create 2 SSID in the same security WEB ?

    My customer needs to use the same SSID for 2 building. They would like to use the security WEB for 2 building and difference VLAN. Can they do that?