Custom Program List

I want to prepare list of all custom objects in system for UPgrade purpose.
Forms - List output type , print program and smart forms/scripts - Printer type used for printing
Interfaces - Reports - Inventory report etc
Extensions -
Is there any T-code to list all outputs. If not whats the best way to do so.
Thank you.
AP

Hi AP,
I have copied few more lines. The rest of the portion in my program is very specific to our organization and i cant share the entire program as its against our policy to do so.
I am sure you should be able to take it forward from here.
1). Define selection screen
2). Based on the selection screen define the where clause.
3). USe the Get_Data form mentioned in my earlier post to get the basic data
4). USe the PROCESS_DATA form to process your data.
     ( the code is attached )
5). Write your report output.
FORM PROCESS_DATA .
  DATA : COUNT TYPE I,
         PNAME LIKE TFDIR-PNAME,
         RNAME LIKE TRDIR-NAME,
         WA_DNAM LIKE TDCT-DNAM.         " Dialogue Module
  DATA : LEN TYPE I,
         WA_MCONAME LIKE DD23T-MCONAME.
  TABLES : TFDIR, TRDIR.
  DATA LOC_TAB LIKE ITAB OCCURS 0 WITH HEADER LINE.
  DATA ITAB_MAIN LIKE ITAB OCCURS 0 WITH HEADER LINE.
* Get FMs for Function Group
  LOOP AT ITAB WHERE OBJECT EQ 'FUGR'
           AND DEVCLASS IN SDEV.
    CLEAR : PNAME.
    CONCATENATE 'SAPL' ITAB-OBJ_NAME INTO PNAME.
    CONDENSE PNAME.
    SELECT * FROM TFDIR WHERE PNAME EQ PNAME.
      CLEAR TADIR.
      MOVE : 'LIMU' TO TADIR-PGMID,
             'FUNC' TO TADIR-OBJECT,
             TFDIR-FUNCNAME TO TADIR-OBJ_NAME,
             ITAB-DEVCLASS TO TADIR-DEVCLASS.
      PERFORM OBJ_EXIST_CHECK.
      CLEAR OBJEXIST.
      IF OBJEXIST EQ 'X'.
        CLEAR : LOC_TAB, RNAME, TRDIR.
        CONCATENATE 'L' ITAB-OBJ_NAME 'U' TFDIR-INCLUDE INTO RNAME.
        CONDENSE RNAME.
        SELECT SINGLE * FROM TRDIR WHERE NAME EQ RNAME.
        MOVE-CORRESPONDING TADIR TO LOC_TAB.
        MOVE TRDIR-UNAM TO LOC_TAB-AUTHOR.
        MOVE ITAB-SRCSYSTEM TO LOC_TAB-SRCSYSTEM.
        IF TRDIR-UDAT EQ SPACE.
          MOVE TRDIR-CDAT TO LOC_TAB-LCDATE.
        ELSE.
          MOVE TRDIR-UDAT TO LOC_TAB-LCDATE.
        ENDIF.
        APPEND LOC_TAB.
      ENDIF.
    ENDSELECT.
  ENDLOOP.
* Link Higher level Objects.
* Sub Objects of Dialogue Module 'DIAL'.
  LOOP AT ITAB_MAIN WHERE OBJECT EQ 'DIAL'
           AND DEVCLASS IN SDEV.
    CLEAR WA_DNAM.
    MOVE ITAB_MAIN-OBJ_NAME TO WA_DNAM.
    CLEAR PNAME.
    SELECT SINGLE PROG INTO PNAME FROM TDCT
       WHERE DNAM EQ WA_DNAM.
    READ TABLE ITAB WITH KEY PGMID = 'R3TR'
                                OBJECT = 'PROG'
                                OBJ_NAME = PNAME.
    IF SY-SUBRC EQ 0.
      MOVE ITAB_MAIN-REFOBNUM TO ITAB-HLOBNUM .
      MODIFY ITAB INDEX SY-TABIX.
    ENDIF.
  ENDLOOP.
* Match Code Objects -> Match Code ID
  LOOP AT ITAB WHERE OBJECT EQ 'MCID'
           AND DEVCLASS IN SDEV.
    LEN = STRLEN( ITAB-OBJ_NAME ).
*    DESCRIBE FIELD ITAB-OBJ_NAME LENGTH LEN .
    LEN = LEN - 1.
    WA_MCONAME = ITAB-OBJ_NAME(LEN).
    READ TABLE ITAB_MAIN WITH KEY PGMID = 'R3TR'
                               OBJECT = 'MCOB'
                               OBJ_NAME = WA_MCONAME.
    IF SY-SUBRC EQ 0.
      MOVE ITAB_MAIN-REFOBNUM TO ITAB-HLOBNUM .
      MODIFY ITAB .
    ENDIF.
  ENDLOOP.
* Include Programs.
  LOOP AT ITAB WHERE OBJECT EQ 'PROG'
                     AND HLOBNUM EQ SPACE
    CHECK ITAB-DEVCLASS IN SDEV.
    CLEAR RNAME.
    SELECT SINGLE MASTER INTO RNAME FROM D010INC
     WHERE INCLUDE = ITAB-OBJ_NAME.
    CHECK SY-SUBRC EQ 0.
    IF RNAME(4) EQ 'SAPL'.                " Function Group
      MOVE RNAME+4 TO PNAME.
      READ TABLE ITAB_MAIN WITH KEY PGMID = 'R3TR'
                                    OBJECT = 'FUGR'
                                    OBJ_NAME = PNAME.
      IF SY-SUBRC EQ 0.
        MOVE ITAB_MAIN-REFOBNUM TO ITAB-HLOBNUM .
        MODIFY ITAB .
      ENDIF.
    ELSE.
      READ TABLE ITAB_MAIN WITH KEY PGMID = 'R3TR'
                                    OBJECT = 'PROG'
                                   OBJ_NAME = RNAME.
      IF SY-SUBRC EQ 0.
        MOVE ITAB_MAIN-REFOBNUM TO ITAB-HLOBNUM .
        MODIFY ITAB .
      ENDIF.
    ENDIF.
  ENDLOOP.
* Function Modules.
  LOOP AT ITAB WHERE OBJECT EQ 'FUNC'
           AND DEVCLASS IN SDEV.
    CLEAR : TFDIR, PNAME.
    SELECT SINGLE * FROM TFDIR WHERE FUNCNAME EQ ITAB-OBJ_NAME.
    MOVE TFDIR-PNAME+4 TO PNAME.
    READ TABLE ITAB_MAIN WITH KEY PGMID = 'R3TR'
                                  OBJECT = 'FUGR'
                                  OBJ_NAME = PNAME.
    IF SY-SUBRC EQ 0.
      MOVE ITAB_MAIN-REFOBNUM TO ITAB-HLOBNUM .
      MODIFY ITAB .
    ENDIF.
  ENDLOOP.
ENDFORM.                    " PROCESS_DATA
I hope the above helps
Cheers
VJ
Message was edited by: Vijayendra  Rao

Similar Messages

  • Data from list of standard alv to customized program

    Hi all,
    The recquirement is like this.
    I have used the Submit option from my customized program to call a standard program it , and that standard program executed perfectly and it generates the list in ALV format . Now my recquirement is to call those populated list to my own program . How to do this ....
    Can any one help me in this ...it is urgent ...
    with regards
    vijay

    You need to get the spool no.
    & get the spool data into internal table.
    Refer the code of following blog:
    /people/prashant.patil12/blog/2007/02/20/displaying-alv-grid-in-background-job

  • Custom icon in Windows Add/Remove Programs list

    Hi all,
    I am developing a software with Labview 2011/2012.
    When I am creating an installer for my application I am configuring icon section and I can see my icon in windows All programs section.
    And I want to see this icon also in windows Control Panel/Programs and Features section. In the list of installed applications my application is without an icon I have specified.
    Anybody faced with this issue? Have any idea how to figure out this?
    I have also found some thread about this, but I am wondering if some new experience available since this post.
    https://forums.ni.com/t5/LabVIEW/Generic-icon-in-Add-Remove-Programs-list/td-p/1241508
    Thanks in advance
    Attachments:
    LV.jpg ‏73 KB

    Yeah, I can't seem to come up with any other way.
    But for the product ID try these steps.
    To determine the value of ProductID:
    Open the setup.ini file that was created with the installer.
    Near the bottom, in the install.msi section, there is a key called ProductId.
    The value of ProductId should be substituted in the registry key chain listed above.
    Daniel P.

  • Error while uploading .xml file for Customer/Vendor List for Italy

    Hi All,
    We are facing problem while uploading the .xml file in DMEE transaction for the new Customer/Vendor List for Italy.
    We have followed the entire process given in the OSS Note(1090857).
    We have SAP 4.6c and followed the below steps:
    1. Created ID-FI-IT Development class
    2. Added domains
    3. Added Data elements
    4. Tried to upload the given .xml file and got any error saying ".xml file could not be interpreted".
    Also there is a .SAR file mentioned to upload if we receive any errors while uploading .xml file.
    Tried uploading the .SAR file also. STill we are recieving the same Error.
    Can any one of you help us out.
    Thanks in Advance.
    Ramesh

    Ok, we upload .SAR file in this way:
    1. unpack .SAR file with SAPCAR.EXE program. Yuo obtain 2 files
    R492445.P9C and K492445.P9C
    2. put K492445.P9C in directory \SAPMNT\TRANS\COFILES and put R492445.P9C in directory \SAPMNT\TRANS\DATA of your system (DEV, TST or PRD)
    3. Use Tx STMS. If You want create DMEE tree in DEV system, go to DEV import queue. Choose menu Extras | Other requests | Add. Insert P9CK492445 in Transp. request field.
    4. Import the request. This creates the DMEE tree. You don't need ti upload XML file after. You can see the DMEE tree created with Tx DMEE and inserting
    Tree type        UMS1            
    Format tree     IT_CUST_VEN_LIST
    5. after continue follow the note
    I hope this help you
    Roberto

  • Windows 7 (64bit) Missing programs in uninstall a program list.

    Hi,
    My grandson likes to play internet games and downloads quite a number of them from time to time, and as usual, it leaves me uninstalling quite a lot of add-ons and other types of unwanted files. Toolbars, vius protections, etc. You name it...and it's been unloaded by yours truly.
    I had stopped this for the longest time, but allowed him to download one more "Wizards 101" a couple of days back, and our pc has been acting super slow, freezing up etc...ever since.
    So I just finished deleting several unwanted  files in the "uninstall programs" department, and once it was completed, I had to change to  another account momentarliy.... but when I returned, I checked  it again to make sure everything was ok, I found only 14 programs listed.
    The  normal list is always qutie long (a full page scroll down) and list nearly every important program I have. 
    I have check every other account I have and it is the same on everyone.
    I was very careful to uninstall nothing but the juck files and so I have absolutely no clue as to what is happening here. All my programs appears to be working ok, so far anyway,  except for the missing info in uninstall programs list.
    I have ran full system virus scans (seven tracking cookies only) and tried every usual method of maintinace I know.
    This has me stumpped. If anyone knows a thing or two about this kind of problem, I'd appreciate some advice.
    And would also appreciate some advice to my grandson who will read this as well. He and I are always at odds about the dangers of downloading internet games and he just might believe someone else beside his grandpa. (lol)
    Any advice will be truly appreciated.
    My desktop is HP Pavilion slimline
    Mod s5503w
    OS=windows 7 Home Edition (64bit)
    service pack 1
    This question was solved.
    View Solution.

    Boramfan87, welcome to the forum.
    You are absolutely correct about the dangers of downloading games and any other programs from the Internet.  In fact, I have discontinued downloading any FREE programs.  If I do, however, I use the Custom Install option.  This allows me to check to see if any unwanted programs are being added to my computer without my knowledge.  This happens all of the time.
    Now, for advice for you, Grandpa.  You can setup an account for your grandson.  This will allow you to set Parental Controls to keep certain types of programs from being added to your computer: Control Panel / User Accounts / Manage another account / Set up Parental Controls.  Also, you can protect your account by adding a Password.  Just make certain that you write it down somewhere so you can remember it.  It will be embarrassing when you have to tell grandson that you forgot your password established to keep him out of your business.
    It sounds to me like you may have inadvertently selected some programs and deleted them.  I can't think of any way to make programs disappear from the "Uninstall or change a program", otherwise.  You will have to reinstall any missing program.
    Please click the "Thumbs Up+ button" if I have helped you and click "Accept as Solution" if your problem is solved.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • Attach Documents to Custom Program Using Generic Object Services

    Hi There,
             I created Object type ZGOS and used in the custom program, when i try to attach documents it allows and then shows in attachment list.
            But When I use that program next time that document attached is not available.
    Is there any separate save Class or FM available for saving the document to the specified custom program.
    I am using following code in the program,
      CLEAR obj.
    SET OBJECT TYPE TO 'ZGOS'
      obj-objtype = objtype.
    SET OBJECT KEY = REPORT NAME
      SELECT SINGLE name
      FROM trdir
      INTO obj-objkey
      WHERE name = sy-repid.
    CALL GOS MANAGER WITHOUT CONTAINER (WILL BE DISPLAYED IN THE TOOLBAR)
      CREATE OBJECT manager
        EXPORTING
          is_object = obj
        EXCEPTIONS
          OTHERS    = 1.
    Thanks in advance.

    Check the Naimesh Patel Blog he explain very well
    http://help-abap.blogspot.com/2009/02/generic-object-services-gos-toolbar.html

  • GOS on custom program not saving links

    Hi all, I've just implemented GOS to a Z program following the instructions of a SDN contribution document called "How to attach documents to any custom program using GOS". I simply want to add GOS to the selection screen of the program in order to locat and store documentation regarding this Z program.
    I run the program and the GOS button is displayed, I add some link or document and then I display the list of attachments and everything seems to be working ok. So when I leave the program and run it again no list of attachments is available as this is greyed out. Anyone could help please.
    Steps I performed:
    I created the Business object saved and released to implemented with the following:
    Key -> programName (TRDIR-NAME)
    and redefined the GOSAddObjects method like this:
    BEGIN_METHOD GOSADDOBJECTS CHANGING CONTAINER.
    DATA:
          SERVICE(255),
          BUSIDENTIFS LIKE BORIDENT OCCURS 0,
          LS_BORIDENT Type BORIDENT.
        CLEAR LS_BORIDENT.
        LS_BORIDENT-LOGSYS = SPACE.
        LS_BORIDENT-OBJTYPE = 'ZGOS'.
        LS_BORIDENT-OBJKEY  = OBJECT-KEY.
        APPEND LS_BORIDENT TO BUSIDENTIFS.
      SWC_GET_ELEMENT CONTAINER 'Service' SERVICE.
      SWC_SET_TABLE CONTAINER 'BusIdentifs' BUSIDENTIFS.
    END_METHOD.
    Z program:
    REPORT  Z_RUBS_TEST_GOS.
    CONSTANTS: OBJTYPE TYPE BORIDENT-OBJTYPE VALUE 'ZGOS'.
    DATA: MANAGER TYPE REF TO CL_GOS_MANAGER,
    OBJ TYPE BORIDENT.
    PARAMETERS: MATNR TYPE MARA-MATNR.
    AT SELECTION-SCREEN OUTPUT.
    CLEAR OBJ.
    * SET OBJECT TYPE TO 'ZGOS'
    OBJ-OBJTYPE = OBJTYPE.
    OBJ-LOGSYS  = 'OP1CLNT200'.
    * SET OBJECT KEY = REPORT NAME
    SELECT SINGLE NAME FROM TRDIR INTO OBJ-OBJKEY
    WHERE NAME = SY-REPID.
    * CALL GOS MANAGER WITHOUT CONTAINER (WILL BE DISPLAYED IN THE TOOLBAR)
    CREATE OBJECT MANAGER EXPORTING
    IS_OBJECT = OBJ EXCEPTIONS
    OTHERS = 1.

    You must add COMMIT WORK (AND WAIT or not) somewhere in your application (add a button that the user), or use CREATE OBJECT manager EXPORTING ... IP_NO_COMMIT = space or 'R' ... so that the COMMIT WORK will be done automatically by the GOS manager. Note: IP_NO_COMMIT = 'R' means that the service will start in its own LUW (using synchronous RFC).
    For more information, read the [SAP Library - GOS - Publishing unique object|http://help.sap.com/saphelp_nw2004s/helpdata/EN/7e/4dbeb62c8e11d4a39e00a0c943858e/frameset.htm] (well, it doesn't talk about 'R'...)

  • Oracle11i AP positive Pay customized program setting

    Hi
      I need to know how to set up a new customized program for Positive Pay file for payment batch where the checkbox is in actions panel so once it is clicked by the user the program will be triggered
    Thanks

    ISUTri wrote:
    Thank you for your reply Hussein. Those documents don't appear to address the specific problem we seem to be having. Out of the log file that I posted I have been concentrating my search on this error message. Let me know if you have any other tips.
    java.sql.SQLException: ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    ORA-06512: at "APPS.IBY_EXTRACTGEN_PVT", line 380
    ORA-06512: at line 1
    Is there a way I can get additional information that might help me track down what is happening? I have an SR on this but Oracle seems to be as stumped as I am.R12: Troubleshooting Payment Process Request (PPR) Errors: Comprehensive Listing of Errors and Solution Documents [ID 1314118.1]
    IBY_FD_PAYMENT_FORMAT_TEXT Format Payment Instructions Errors with ORA-06502 [ID 1073786.1]
    Thanks,
    Hussein

  • Trigger IDOC_OUTPUT_ORDRS using custom program.

    Hello.
    I have a requirement to send an order response (ORDERS05) IDoc by calling FM IDOC_OUTPUT_ORDRS using a custom program.  Wanted to know if anyone had suggestions on the best approach.  We are using much of the native mapping and adding a few segments (which I would handle updating in the customer exits).
    My biggest question is how to setup the call to IDOC_OUTPUT_ORDRS.  I think I need to simulate the NAST table entry.  Is that the recommended approach?  Any tips or hints would be appreciated.
    Thanks,
    Cal
    Edited by: Cal on Feb 3, 2009 7:07 PM

    Actually condition technique based on which output determination works - is designed for exactly what you are asking - triggering the output type under certain conditions.
    You can create ouput condition records with key fields that represent your business conditions: for example certain sales org, distrib channel, certain sales order type can only trigger the output. You can make it as finer as you want (like even including sold-to as a criteria), like you can include any field that appears in the sales document as a criteria to trigger the idoc.
    The tables that store condition records - condition tables - are custom created with your business field combination that you want to base the triggering upon.
    Goto the IMG path:
    IMG -> SD -> Basic functions -> Output control -> Output determination -> Maintain output determination for sales documents.
    1. A o/p determination procedure is assigned to sales document type
    2. A o/p determination procedure comprise a list of output types, which are checked sequentially by the system
    3. Custom condition tables with new business criteria can be assigned to new or existing access sequence
    4. Access sequence is attached to output type
    How the system triggers a particular output type during application document processing, say sales order processing:
    1. From the sales document type, the o/p determination procedure is determined
    2. The system then checks the output types inside the procedure one by one
    3. Say at output type 1, the system checks to see what access sequence it has
    4. The access sequence comprises of 1 or more condition tables.
    5. The system then checks each condition table, by comparing the key fields of the condition table with the correpsonding sales document fields - like comparing sales org, documen type in the condition record with what the sales document has. If every thing matches, the output type is triggered.
    I have just simplified the whole o/p determination. There are several other features which are controlle at o/p determination, procedure, output type and access sequence levels. Spend some time one these, it is a neat, flexible and future proof concept. You will never regret! )

  • Transfer GOS Attachment (Single/Multiple) from custom program to XK01

    Hi,
    GOS - Generic Object Service is a way one can attach single / multiple attachment. I have a custom program where there is a GOS with some attachment (used CL_GOS_MANAGER class).
    Next I need to send / transfer this GOS attachment from my custom program to say a standard transaction , eg XK01.
    Whether we can achieve this functionality, ie. we are able to create/save attachment but is there a way to send attachment (not via email) such that the same attach itself to the GOS of the standard transaction. I don't see any method in the CL_GOS_MANAGER class by which we can achieve this!
    Any suggestion/solution will be highly appreciated!
    Thanks,
    Deb

    Hi,
    I am trying to send attachment linked to a custom BO to standard BO eg, LFA1 using 'GOS_SERV_TOOLS_TEST' (copy_linked_objects).
    Surprisingly, I am able to copy/send attachment list within same BO (LFA1) from one LIFNR to another LIFNR. But the same method does not work when I try to copy attachment between diff BO example from VENDOR BO to MATERIAL BO. Why is it so?
    Also it does not work between a custom BO & standard BO. Please suggest in case I am missing on anything!
    Thank,
    Deb

  • Adding custom program to F110

    Hello gurus,
    for the F110 transaction, we need to execute a program after the standard RFFOD_U or RFFOD_L that takes the dme file, adds some information to the file name and leaves it in a specific folder.
    Is it possible to add this program to the program list in the "printout/datamedium" tab of F110, so that it is automatically executed after every RFFOD_U execution? For example, for some payment methods we have
    RFFOAVIS
    RFFOD_U
    RFFOEDI1
    In the F110
    What we want is to add our custom program to this list so:
    RFFOAVIS
    RFFOD_U
    RFFODEDI
    ZRFFO*
    Another option would be to manually input it in the "lists" section below, but this would mean the user would have to select it in every payment run
    Do you know how to include it in the "form/printing/data medium exchange" section of the Printout/data medium tab
    Thanks
    Daniel

    Thanks Shekhar,
    but I guess I did not explain my problem in full;
    1 We need to do it using the existing RFFO* programs, not with DMEE
    2 We cannot use the cariants for these programs because the output file length is not long enough for the folder + file names that we need
    3 we need to add the values of the payment run date and payment run ID to the file name

  • Font problems in Mail sent from a Custom program

    Hi,
    There is a custom program which retrieves data from spool using function module 'RSPO_RETURN_SPOOLJOB' and the list returned by the above function module is moved to table Objbin and passed to function module 'SO_NEW_DOCUMENT_ATT_SEND_API1' for sending the email. eversince upgrade,we are facing problems with the Font of the mail generated via the above function module. The font is really small. the sample code is given below:
       CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
            EXPORTING
                 document_data              = doc_chng
                 put_in_outbox              = 'X'
            TABLES
                 packing_list               = objpack
                 contents_bin               = objbin
                 receivers                  = reclist
            EXCEPTIONS
                 too_many_receivers         = 1
                 document_not_sent          = 2
                 document_type_not_exist    = 3
                 operation_no_authorization = 4
                 parameter_error            = 5
                 x_error                    = 6
                 enqueue_error              = 7
                 OTHERS                     = 8.

    this is how the code looks like:
    CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'                             EXPORTING                                                       rqident       = spool_number               IMPORTING                                                       real_type      = g_doc_type                      TABLES                                            
         buffer          = compressed_list        
            EXCEPTIONS                                                             no_such_job        = 1                      
               job_contains_no_data = 2                      
                 selection_empty    = 3                      
                 no_permission      = 4                      
                 can_not_access     = 5                      
                 read_error         = 6                      
                 type_no_match      = 7                     
                 OTHERS             = 8.                     
    IF sy-subrc <> 0.                                       
         MESSAGE e132 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.    ENDIF.                                                   * move the list to the official table ojbin
       MOVE compressed_list[] TO objbin[].
    create the document which is to be sent
       doc_chng-obj_name = 'list'.
       doc_chng-obj_descr = 'Inbound PO Faxes to Jobber'.      
       CLEAR objpack-transf_bin.
       objpack-head_start = 1.
       objpack-head_num   = 0.
       objpack-body_start = 1.
       objpack-body_num = '0'.
       objpack-doc_type = 'RAW'.
       APPEND objpack.
       DESCRIBE TABLE objbin LINES tab_lines.
       objpack-transf_bin = 'X'.
       objpack-head_start = 1.
       objpack-head_num   = 0.
       objpack-body_start = 1.
       objpack-body_num = tab_lines.
       objpack-doc_type = g_doc_type.
       objpack-obj_name = 'Attachment'.
       objpack-obj_descr = 'PO Order'.  
       READ TABLE objbin INDEX tab_lines.          
       doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).  
      objpack-doc_size = doc_size.                            
       APPEND objpack.
       IF sy-sysid NE 'PC2'.
                                                                 recipient_int-address = ws_dummy_fax.
       ELSE.
                                                                 concatenate int_customer-fax_number
                      ws_fax_address
         INTO recipient_int-address.
       ENDIF.
       reclist-receiver = recipient_int.
       reclist-rec_type = 'U'.
       APPEND reclist.
       CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
            EXPORTING
                 document_data              = doc_chng
                 put_in_outbox              = 'X'
            TABLES
                 packing_list               = objpack
                 contents_bin               = objbin
                 receivers                  = reclist
            EXCEPTIONS
                 too_many_receivers         = 1
                 document_not_sent          = 2
                 document_type_not_exist    = 3
                 operation_no_authorization = 4
                 parameter_error            = 5
                 x_error                    = 6
                 enqueue_error              = 7
                 OTHERS                     = 8.
       IF sy-subrc <> 0.
         MESSAGE e133 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
                                                             ELSE.
    COMMIT WORK.

  • Copying standard prog to custome program with includes that includes hd inc

    Hi gurus,
    i got one requirement,
    I have to copy standard program to custome program with includes ,that includes con tain few more includes. so how can i copy all the includes into the custome progam.
    please tel me.

    Hi Vijayam,
    In SE38, give the name of the standard program, in menubar goto program -> copy, which will take you to a pop up, check the checkbox for 'INCLUDES' to copy all the standard includes.  But this will not copy the custom includes(starting with Z). To copy the custom include, you need to create new include in your copy program.To create a new include, click on icon 'Display Object List' which will display the objects list for your program, now right click on your program name in this list and select CREATE-> INCLUDE. Give the name of include and now copy the code from standard program include to your include.
    I hope your problem is solved now.
    Regards,
    Pranjali

  • Need to check all custom programs with open data set

    Hi all ,
    i have  to list all custom programs and f.m.  which are using ftp server (file share).
    Is there any way to list that programs

    Hi,
    You can use program RPR_ABAP_SOURCE_SCAN to find custom programs with providing find string criteria (i.e open data set).
    Regards,
    Ferry Lianto

  • Import customs code list I0136 - how to get .xml file

    The code list I0136 from ATLAS is in format .tsv.
    It's possible to import the code list in transaction /SAPSLL/CUSCS_VMAINT, but you have to have a .xml file.
    Does anyone know where to get the customs code list I0136 in .xml or to convert .tsv into .xml without a special program?

    Hi Renate,
    where do you get this file in .tsv format from?
    I guess from a data provider?
    First thing I would do is to ask the data provider to send the file in another GTS compatible format.
    If you have no influence on the file format which is beeing delivered to you I would just convert those files.
    Easiest tool to convert those files with might be Excel since almost everyone is using it.
    You can import the .tsv into excel and save it as a .xml file afterwards.
    If you have trouble importing the file just check google (open .tsv Excel).
    You might have to tune several options during the import process but once you know the steps it should be easy for you to handle.
    Best Regards
    Gregor

Maybe you are looking for