Attachments Icon in Standard Transaction like VA22

Hi Folks,
In standard T-code VA22, there is a provision for including attachments. This Icon is available at the Top Left Corner of the screen. This Icon is generally not available for all the users. You have to add a Parameter ID: SD_SWU_ACTIVE   X       Activate Workflow Box in VA22 to the user profile to get this icon in the screen. How to activate this same kind of functionality in your Z program.I want this icon and same functionality to be implemented in my custom program to add/view/delete attachments. Any pointers to this will surely help.
JLN

you have to use an object of the class CL_GOS_MANAGER.Refer to the program below :
*& Report  ZGOS_SCREEN
REPORT  zgos_screen.
CONSTANTS :
objtype TYPE borident-objtype VALUE 'ZGOS'.
TYPES :
BEGIN OF exclude_type,
fcode LIKE rsmpe-func,
END OF exclude_type.
DATA :
manager TYPE REF TO cl_gos_manager,
obj TYPE borident,
ok_code TYPE syucomm,
fcode   TYPE syucomm,
exclude_tab TYPE STANDARD TABLE OF exclude_type,
exclude_wa  TYPE exclude_type.
*TOOLBAR : Display GOS toolbar in screen
*DIRECT  : Call GOS services directly from screen
PARAMETERS : toolbar RADIOBUTTON GROUP gr1 DEFAULT 'X',
             direct  RADIOBUTTON GROUP gr1.
START-OF-SELECTION.
  CALL SCREEN '0100'.
*&      Module  STATUS_0100  OUTPUT
      text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
  SET TITLEBAR 'ZGOS'.
  IF manager IS INITIAL.
    obj-objtype = objtype.
    SELECT SINGLE name FROM trdir INTO obj-objkey
    WHERE name = sy-repid.
*With GOS toolbar
    IF toolbar = 'X'.
      REFRESH exclude_tab[].
      CLEAR : exclude_tab,exclude_wa.
      MOVE 'ATTACH' TO exclude_wa-fcode.
      APPEND exclude_wa TO exclude_tab.
      MOVE 'LIST' TO exclude_wa-fcode.
      APPEND exclude_wa TO exclude_tab.
      SET PF-STATUS 'MAIN' EXCLUDING exclude_tab.
      CREATE OBJECT manager
        EXPORTING
         IO_CONTAINER     =
         IS_BC_OBJECT     =
          is_object        = obj
         IT_SERVICE_SELECTION =
         IO_CALLBACK      =
         IP_START_DIRECT  = space
         IP_NO_INSTANCE   = space
          ip_no_commit     = 'R'
         IP_MODE          = 'E'
        EXCEPTIONS
          object_invalid   = 1
          callback_invalid = 2
          OTHERS           = 3
    ELSE.
      SET PF-STATUS 'MAIN'.
      CREATE OBJECT manager
     EXPORTING
         IO_CONTAINER     =
         IS_BC_OBJECT     =
         is_object        = obj
         IT_SERVICE_SELECTION =
         IO_CALLBACK      =
         IP_START_DIRECT  = space
         IP_NO_INSTANCE   = space
       ip_no_commit     = 'R'
         IP_MODE          = 'E'
     EXCEPTIONS
       object_invalid   = 1
       callback_invalid = 2
       OTHERS           = 3
    ENDIF.
  ENDIF.
ENDMODULE.                 " STATUS_0100  OUTPUT
*&      Module  USER_COMMAND_0100  INPUT
      text
MODULE user_command_0100 INPUT.
  fcode = ok_code.
  CLEAR ok_code.
  CASE fcode.
    WHEN 'ATTACH'.
*Call Create Attachment Service from toolbar
      CALL METHOD manager->start_service_direct
        EXPORTING
          ip_service         = 'PCATTA_CREA'
   IS_BC_OBJECT       =
          is_object          = obj
   IO_CONTAINER       =
   IP_CHECK_AVAILABLE =
IMPORTING
   EP_AVAILABLE       =
        EXCEPTIONS
          no_object          = 1
          object_invalid     = 2
          execution_failed   = 3
          OTHERS             = 4
    WHEN 'LIST'.
      CALL METHOD manager->start_service_direct
         EXPORTING
           ip_service         = 'VIEW_ATTA'
   IS_BC_OBJECT       =
           is_object          = obj
   IO_CONTAINER       =
   IP_CHECK_AVAILABLE =
IMPORTING
   EP_AVAILABLE       =
         EXCEPTIONS
           no_object          = 1
           object_invalid     = 2
           execution_failed   = 3
           OTHERS             = 4
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_0100  INPUT
*&      Module  exit-processing  INPUT
      text
MODULE exit-processing INPUT.
  fcode = ok_code.
  CLEAR ok_code.
  CASE fcode.
    WHEN 'BACK' OR 'EXIT' OR 'CANC'.
      SET SCREEN 0.
      LEAVE SCREEN.
  ENDCASE.
ENDMODULE.                 " exit-processing  INPUT

Similar Messages

  • Need to make some fields mandatory in standard transaction XK01

    HI All,
    Is it possiable to make some fields in standard transaction like XK01 mandatory?
    or any work around ?
    thank in advance for your replies.
    Regads,
    Riyaz.

    Hi,
    From configuration(SPRO) u can easily make some fields mandatory in XK01. Otherwise create a transaction varition for XK01 using TC SHD0.
    Rewards points if helpful.
    Regards,
    Srinivas Ch

  • Add GOS standard transaction

    Hi experts,
    How can add the GOS toolbar to standard transactions like c201, c202 and c203?
    Thanks in advance,
    Regards,

    I check it, but I do not understand the section where say:
    The Class CL_GOS_MANAGER is used for activating the GOS toolbar. We have to create an instance of the class. The instance of the class can be created by calling the constructor method.

  • Define column width in standard transactions

    Hi all
    I'd like to have wolmn width optimized to the content of cell in standard transactions like ME23N, ME53N ...
    i'd like ti customize this optimisation for all system users at once.
    Heve you any idea???
    Thanks in advance.
    Regards

    Hi
    We have jist to go to Change layout in ALV menu bar ==> Display ==> Optimize columns
    Hope it helps.
    Regards

  • Standard transaction CG02 is not saving the data through F4 help.

    Hi Guru's,
    I have a standard transaction CG02 for this i need to maintain the data for few of the fileds like Heat sensitive, Thermal energy hazard etc for updating Derived C-Alpha code. So for i can able to maintain data in two ways either directly or through F4 help. when i supply data through F4 help, on the F4 help window im providing the value and clicking on continue button. when i press on the contine button it has to update the Derived C-Alpha code if all the required fields filled. If suppose i do nt fill the required fileds it has to through the error message on the status bar like 'Invalid Data Combination'. Now the problem is when i clicking on continue button of F4 help window im displaying error message. when i try to change the value or try to fill the required fields so for im clicking on F4 button then its directly taking me out from the transaction. If i press on any key also samething is happening but the same is not happening when i supplied the value directly and saving. Please let me know the reason and help me for the same with needful solution. If anyting required plz ask me i wil provide u.
                          Here we are using the user-exit EXIT_SAPLC107_001 and is used in FM C107_CUSTOMER_FUNCTION_CALL.
    Thanks in advance.
    Yours,
    Somu.

    Hi Guru's,
    I have a standard transaction CG02 for this i need to maintain the data for few of the fileds like Heat sensitive, Thermal energy hazard etc for updating Derived C-Alpha code. So for i can able to maintain data in two ways either directly or through F4 help. when i supply data through F4 help, on the F4 help window im providing the value and clicking on continue button. when i press on the contine button it has to update the Derived C-Alpha code if all the required fields filled. If suppose i do nt fill the required fileds it has to through the error message on the status bar like 'Invalid Data Combination'. Now the problem is when i clicking on continue button of F4 help window im displaying error message. when i try to change the value or try to fill the required fields so for im clicking on F4 button then its directly taking me out from the transaction. If i press on any key also samething is happening but the same is not happening when i supplied the value directly and saving. Please let me know the reason and help me for the same with needful solution. If anyting required plz ask me i wil provide u.
                          Here we are using the user-exit EXIT_SAPLC107_001 and is used in FM C107_CUSTOMER_FUNCTION_CALL.
    Thanks in advance.
    Yours,
    Somu.

  • About pop up in standard transaction

    hello everyone,
    I need help in one standard transaction.In migo transaction after inserting excise invoice i am getting error " Excise invocie XXXX for the vendor xxxxx exits.
    It means systme is checking if a same excise invoice no is entered for same vendor again. Likewise we need to have a check / control on Delivery note i.e. if same delivery note no is entered twice for same vendor system should give a warning  / erro message like excise inv check.
    Plz suggest some solution.

    hi
    you can find an exit for this transaction .
    then inside that write a logic to check if  Delivery note is alredy entered once u can display a popup using FM 'POPUP_DISPLAY_MESSAGE'.
    regards
    vijay
    reward points if helpfull

  • Generic Object Services for a standard transaction code

    Hi,
    We have a requirement where we are depreciating the assets (standard transaction ABAA) using a custom BDC program. We need to maintain a history (called audit trail) for the particular asset that has been depreciated using this program. For this audit trail we have been asked to use "Generic Object Services" in transaction code ABAA.
    Unfortunately, Generic object services are not available in this transaction code. Can you please suggest me how to create "Generic Object Services" for a particular standard transaction code. Also, we have show the details of custom workflow that handles the approval process in order to depreciate the asset. How to show this workflow details using Generic Object Services. This is a very critical issue, any help will be very help ful.
    Please let me know should you require more information on this topic.
    Thanks,
    Ashish

    Hello Ashish,
    i dont think activating of GOS will solve ur probs..... GOS wont create a WF item ...... try to get some kind of GOS before u do anything in SAP systems.
    u can do like this ......
    1 create custom screen where u can enter asset details and store in custom tables....and generate one custom doc.number to track.
    2. trigger WF when user submits it for approvals.
    3.Upon final approvals.--->run BDC to do postings......
    4.Give a Option to attach documents to the parking documents. ( that GOS ).
    regards
    Prabhu

  • Wrong portions of code being executed in standard transactions

    Hi guys,
    I've recently come accross some weird errors in a standard transaction in a system and thought you might have a clue. I was getting an ugly dump in F110 in a fresh system that it can't do a READ TABLE with index 0. After investigating it and debugging it for a while, I got in the PAI of a screen, where two procedures were important:
    1) WERTE_PRUEFEN was being executed in a loop...endloop (that's where the error supposedly occurred). The thing is in the debugger it didn't go into this module inside the loop, as it should if there are no entries.
    2) After that, WERTE_LOESCHEN. When I got here and pressed F5 to see what's going wrong in it, guess where the debugger redirected me: you're right, to the WERTE_PRUEFEN thingy. So a statement like MODULE WERTE_LOESCHEN. gets me to a completely different procedure. This is crazy!
    I'm not at my first experience with this. BEx applications would do this if you'd change the ABAP source code and the people wouldn't reconnect again. Even if in the debugger I'd see the new code, the system would execute the old one, probably some caching issues. Always worked when people disconnected / reconnected.
    However, in the actual situation, no matter how many times I log on/off, the dump is there.
    This is not the only example of this kind, there are more module statements gone crazy in F110 in this system, but only this one dumps instantly.
    What do you think it could be the cause of that/ what is a good solution for this?
    I was thinking it has something to do with the program's generation and I asked the Basis guys to run an SGEN, hopefully that would help.
    Thanks in advance,
    George

    Hi Vikranth,
    Nope, just pressing F5 trying to get into WERTE_LOESCHEN and being redirected to that module inside the LOOP...ENDLOOP, WERTE_PRUEFEN. Well, I didn't say this happens in every system, only in that specific one. Of course, if I logon in another system, everything looks fine.
    Another person suggested that it's the GUI to blame and that I should get the newest version. Still, the error was reported by a person that has the latest version of the GUI. I still think it's a generation/ installation issue but got no reply from the Basis admin so far.
    Regards,
    George

  • Use SAP Standard transaction with multi-language

    Hi,
    we have some problems to use standard SAP transaction (like S_ALR_87012082 transaction) the standard Vendor balance, with vendor Master Data.
    I explain, we have some vendors with french, english names (writing in French, English words) in LFA1-NAME field. But in the same times, the Russian accounting requirements are to write all in Cyrillics
    caracters and the name too, on paper and transactions.
    So how we can do to edit vendor in French for french users, in English for English user and Cyrillic for Russian users ?
    We try to create an International versions in 'R' (cyrillic version), but we have the same result. It's normal, because the program select LFA1-NAME field.
    So, we have to find one solution quickly for the next accounting closing.
    Thank's for your help.
    Best regards,
    Gilles DANJOU

    Surendra,
    Which transaction is this and is the change inside an FM ?
    K.Kiran.

  • How to attach GOS in a standard transaction ?

    hi folks,
    could anyone tell me how to attach Generic Object Services (GOS) to a standard transaction eg me23n.
    this GOS toolbar is present in certain transactions like pb40 ..i want to implement the same in me23n ...how can i do that?

    welcome to SDN!!!
      cht this webblog
      /people/rammanohar.tiwari/blog/2005/10/10/generic-object-services-gos--in-background
      reward points if helpful

  • T-code to delete the tabs in a standard transaction

    Hi Folks,
    Do anyone here have an idea about the T-code that can be used to delete the Standard tabs in a SAP Standard Transaction.
    For ex.
    Go to VA01
    GIVE THE ORDER TYPE AND PRESS ENTER.
    IN THE NEXT SCREEN WE WILL BE ABLE TO SEE THE TABS LIKE SALES,ITEM OVERVIEW,ITEM DETAIL etc.
    If I want to delete one of these tabs there is a standard transaction for the same,I want to know about the same.
    K.Kiran.

    Hi kiran,
                All these things comes under the Customization, Typically Functional people do this . If u have authorization to transacton code : SPRO then under Sales and Distribution, u can change the settings.
    Reward points if helpful.
    regards
    Nilesh

  • Cloning a standard transaction FPO4

    Hi All,
    I have a requirement where, i have to clone the standard transaction FPO4 ( alphabet O) . I will pass a key date, company code and G/L Account number in the selection screen and in the output report , I would get amounts for the respective document numbers (OPBEL) ,which i have to sum up as per Company code.
    Here problem is as this is a standard tcode how can i make a 'Z'   report based on the above that can meet the requirement.
    I have tried this with SUBMIT , but this didn't work out .
    Please suggest me if there are any better ways.
    Thanks,
    Vijay

    FPO4>System>status>note program name from here which is RFKKOP04
    now from se80 you can copy this program in to some z program with all elements like screen gui status include and all.
    once you copied all these thing than save check activate and five new transaction from se93.
    Amit.

  • How to do a screen sequence for a standard transaction?

    Hi experts -
    I have a requirement that the business wants a field on transaction VL02N to be grayed out based on specific delivery types.  I have been told that that would require a custom screen sequence to be developed.
    (1) What is the best solution to accomplish this?
    (2) If the solution is a custom screen sequence for the standard transaction code VL02N, then how is that done?
    Many thanks!
    Mark

    When one says "custom screen sequence"  an Industry Solution that utilizes BDT, like Insurance or Gas/Oil comes to mind.  Are you working with one of the BDT-based Industry Solutions in SAP?   If so, customization by field-group or screen or view could be considered, but I think you'd find a much simpler way to do.
    If not, one usually does this with an exit that allows control of screen elements, as does SD Order processing, a Badi implementation or enhancement in a PBO module for the screen to set the screen-input value to '0' for that field name. 
    You should, though, search the forums, since these kinds of questions are often asked....and answered....such as:
    [VL0xN exits|VL01N / VL02N Exit;

  • How to add a button to the toolbar of standard transaction

    hi friends
    currently i am working in IS-OIL(DS)-TSW module, in which we need to add a button to the toolbar of standard transaction(O4nm)
    can anybody help me how to proceed with this
    with regards
    s.janagar

    Hi,
    To be able to add a button to the toolbar of a standard transaction, you can use GuiXT which is a bundled solution within SAP R/3 or Netweaver.  With GuiXT, you can create your own pushbuttons within an R/3 screen or within the toolbar. You can make both the menu functions and the navigation to other transactions directly accessible with your own pushbuttons along with a new icon that you wanted to assign to the pushbuttons.
    Also, you can customize the pushbutton's size effortlessly.  And in your situation of adding it to the toolbar, GuiXT can help to set your pushbuttons automatically to fit onto the toolbar with its designer tool.
    For more information about front end changes, you can view more information about GuiXT at http://www.guixt.com/site/solutions.php
    Thank you and hope this helps!

  • How to populate default values in standard transactions

    Hi abapers,
                    what r the different ways to populate fields with default values while entering into standard transactions
    thanks in advance.

    Hi,
    You can either create trasaction variants with Default values and then create transaction suing these Variant transaction and use this transaction instead of irignal transaction.
    SHDS-> to create Variant transaction
    SE93-> to create transaction of this Variant Transaction.
    or you can also use SAP memory statements like GET and SET PARAMETERS to set one value in one internal session and get that in another session in an External session.
    Regards,
    Sesh

Maybe you are looking for

  • Unico Drive serial interface error

    1) I am trying to talk to a Unico drive via a serial port. I receive a -1073807339 error in the Vesa Read in the Drive Send VI. However, the VISA write doesn't seem to be getting to the drive properly as it should effect the speed even though the rea

  • Pandora runs in Chrome but not Firefox. Why? Just started yesterday...

    As of yesterday I can no longer use Pandora in Firefox. The web site opens but only part of it, and nothing plays. No problems in Google Chrome.

  • External preview - DVI to HDMI

    Hi, In order to obtain the best possible quality of external monitor preview - is there any difference between DVI to DVI, HDMI to HDMI, or DVI to HDMI connection or it`s just the same? Also, I`m considering to buy Palit 1GB RADEON HD 4870 video card

  • Profile 1 = INACTIVE, Radio power mode = OFF

    Hi everyone, I've been struggling this for a moment, and i can't figure it out how to resolve this in turning on the radio power mode. Help pls? Thank you very much. sh cellular 0/0/0 radio Radio power mode = OFF, Reason = Unknown Current Band = None

  • Aperture end user certification question

    Can I take the end user cerification without taking a course for it? My understanding was for that level 1 certification, I could use the Luna & Long's Pro Training book to prep and then just go sign up for the test. However, when I tried to do that