SRM 7.0 Table Extensions on Business Documents

Hi,
With SRM 7 it is possible to add not only customer fields to the Screens and Databases, but whole tables.
However, when we do this for RFX on Header Level, there will be a Table Extension Subtab on Header level, and Add and delete buttons will work to generate new entries, but there is no way of entering or displaying context.
Upon further analysis it seems that the fill and update functions are missing for Table extension.
Can somebody help us? How can we generate own fill and update functions for our customer table extensions in the RFX header?
In Customizing one can only determine field meta data classes. Not the content itself.
Thanks for Help regarding this.

Hello,
You can fill the table extensions using the BADI  
/sapsrm/bd*pdo_te_outbound.
I do not remember the exact name so I have used * in the BADI name .
Hope this answers your question.
Best Regards,
Pavan

Similar Messages

  • Table Extension custom fields in SRM 7.0

    Hi SRM Experts,
    I'm struggling with adding data into a table extension that I created on Confirmations. (SRM 7.0)
    I followed the suggested steps to add a table extension:
    1) SPRO->SAP SRM->SRM Server->Cross-Application Basic Settings->Extensions and Field Control (Personalization) -> Create Table Extensions and Supply with Data -> Define Customer Table Extensions on Item Level.
    2) I created the two structures (INCL_EEW_PD_HEADER_CST and INCL_EEW_PD_HEADER_CST_CONF) and added the custom fields.
    3) I set the visibility of the table extension and created the entries with TICUS.
    4) I configured control of fields of table extensions.
    5) I configured control of actions for adding a row (ADD_TICUS)
    6) I added the custom fields in SM30 to table /SAPSRM/V_MDFSBC_DEFAULT
    The table extension is visible on the Confirmation screen but the custom fields are not editable and I'm not able to fill in data into them.
    When I click on the add row button, a row is added to the table but the fields are still uneditable.
    I need to populate this table extension with some data before it gets displayed to the user, and then the user needs to complete the empty custom fields.
    I tried to add data to BBP_PDICF, but it still does not appear in the table extension.
    Please can someone give me some guidence?
    Regards,
    Andrew

    Hey Andrew,
    Please let me know how you rectified the issue?
    Are these the steps to be followed? Even I need to add  a table in the header level of PO document.
    Please share your experience.
    Kind Regards,
    Gayathri

  • Storage business document in SRM 7

    Hi,
    We have done setup of archive link (SAP Web Application Server-Application Server-Basis Services-ArchiveLink-Basic Customizing)
    During creation of shopping cart in portal we attach some document e.g.word document (.docx), after ordering shopping cart when we display
    shopping cart in BBP_PD we can not see same in attachement list.
    When we attach document (Store business document)in BBP_PD we can display same in attachement link (Archive link).
    Now attached document is going on SRM server, we want to store this in business document (Archive link)
    Can you please give your feedback.
    Thanks
    Sudhir

    Hi,
    This note seems to be for adding a custom table , I have to add custom fields in the supplier business partner screen.
    Do you have any idea how this should be done?
    Thanks & Regards
    Prabhu

  • Services for Object - Store Business Documents (issue with XLSX files)

    Hi,
    We are using the Services for Object > Store Business Document to be able to drag and drop files into (for example) Sales Inquiry, Sales Order, Sales Quotations etc.
    Within OAC2 we have set up the global document types and these have been linked to the relevant Object Types and Content Repositories in OAC3.  We have also set up the Content Repository as Document Area 'ARCHLINK'.
    The ArhciveLink Basic Settings in OAG1 have the 'Always Copy Document Class from Document Type' set under Storage Settings.
    The issue we are having is with XLSX document types.  When we drag and drop the XLSX documen type using the Store Business Document the file is stored against the Sales Order but when you come to view the attachments MS Excel opens but an error message appears saying 'Excel cannot open the file '******' because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file'?
    We have reviewed SAP notes 1925897, 1739026 and 1145885 however non appear to give me a clear answer as to why this is happening?
    I have found that if we unselect the option 'Always Copy Document Class from Document Type' in OAG1 then we can open the XLSX files.
    As we have a significant amount of documents attached to various objects, what would be the implications of making this change agianst existing records and new records?
    Any advice on this issue would be greatly appreciated.
    Gary B

    Hi David,
    No joy I'm afraid!!
    I added entry 'xlslx' with the relevant MIME Type, Application and Description into table TOADD for the ArchiveLink settings and also this entry was already in tables SDOKMIME and SDOKFEXT for KPro.
    I then following the process via the Services for Object within VA12 (Change Inquiry) to then Create > Store Business document > Select the relevant Document Type > Drag and Drop the XLSX file into the empty box.
    I then saved the record and tried to view the attachement but I am still getting the same message  'Excel cannot open the file '******' because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file'?
    Our client is on componet SAP_BASIS release 701 Support Level 0014 and Support Package SAPKB70114 and I can see that note 1237688 is for SAPKB70112?
    Regards
    Gary

  • Using GOS to store business document on the content server

    Hello All,
    BACKGROUND
    We use content server to store business documents via ArchiveLink.  The process to store a business document is via Generic Object Services menu path "Create -> Store business document". 
    ISSUE
    When document is stored in such a way, the actual name of the document is not displayed in the "Attachment list" of the GOS menu nor is it stored on the content server.  What we see instead in the "Attachment list" is a description of the Archive object (TOASP-objecttext) for all documents that we store. 
    NEED HELP
    We need to have a document's name (i.e. name of the uploaded file) displayed in the "Attachment list" of GOS.  We also need to be able to retrieve this file name programmatically via a function call or a class method. 
    Any help is greatly appreciated.
    Gene.

    1. In GOS attachment list i can able to see the attachment name (without extension) may be you need to check your layout using change layout (its may hidden)
    2. For getting attachment name programatically try this way
      i_object-typeid = 'BUS2012'.
      i_object-catid  = 'BO'.               
      i_object-instid = yatthdr-docno.       " Document Number
      refresh : i_brel, i_link.
    * Get Attachment List
      append 'ATTA' to i_brel.
      if not i_brel is initial.
        select *
          from srgbtbrel
          appending corresponding fields of table i_link
          for all entries in i_brel
          where
            instid_a eq i_object-instid and
            typeid_a eq i_object-typeid and
            catid_a  eq i_object-catid and
            reltype  eq i_brel-reltype.
      endif.
      wa_filter-send_info = ' '.
      wa_filter-no_content = 'X'.
      loop at i_link into ls_link.
        clear : wa_doc_data.
        wa_fol_cont-doc_id = ls_link-instid_b.
        call function 'SO_DOCUMENT_READ_API1'
          exporting
            document_id                = wa_fol_cont-doc_id
            filter                     = wa_filter
          importing
            object_header              = wa_obj_hdr    
            document_data              = wa_doc_data
          exceptions
            document_id_not_exist      = 1
            operation_no_authorization = 2
            others                     = 3.
    You can find the File Name in the WA_OBJ_HDR

  • How can I get INSTID_B for the documents which are stored using Store Business Document functionality

    Dear experts,
    I had activated the functionality of Store Business document and successfully stored documents in external server.
    My client have a custom function module which is used to send emails.In that FM they used SO_DOCUMENT_READ_API1, SO_DOCUMENT_SEND_API1 function modules.They passed Instance Ident(SRGBTBREL->INSTID_B)(eg: FOL33000000000004EXT39000000000026) as export parameter to the FM 'SO_DOCUMENT_READ_API1' and get the attachment details and content.
    Here my problem is I do not have entries in the table SRGBTBREL for the documents which are stored using the Store Business Document functionality and without INSTID_B I am unable to use the FM 'SO_DOCUMENT_READ_API1' to get the document details and content. Please help me to find INSTID_B for documents which are stored using Store Business Document functionality or please let me know if there is any other way to use FM 'SO_DOCUMENT_READ_API1' for documents which are stored using Store Business Document.
    Thanks in advance.
    Regards,
    Kiran

    Hi Kiran,
    You can use the following method to get the information. For example if you want to get BO documents for a customer
    CALL METHOD cl_binary_relation=>read_links
       EXPORTING
         is_object           = ls_lpor
         it_relation_options = lt_relat
       IMPORTING
         et_links            = lt_links.
    then fill  ls_por-instid with a customer number (KUNNR), ls_por-typeid = 'KNA1' and ls_por-catid = 'BO'.
    Table  lt_relat should contain a line option  for each document type (for example 'I' 'EQ' 'NOTE', 'I' EQ 'ATTA', 'I' EQ 'URL', ...
    In table lt_links you will get your information.
    Maybe some other methods of class CL_BINARY_RELATION may also solve your issue.
    Regards,
    Klaus

  • Business Object Services- Attachment vs store business document

    Hi,
    There are two ways to add attachments to a Purchase requisition.
    1. as a generic attachment- (System --> services for object --> create attachment )
    2. as a business document ( System --> services for object -->store business doucment)
    Looks like in both the options, attachments could be stored on HTTP Content server.
    What are pros and cons of storing an attachment as a business doc?
    What are additional functions possible with option 2?
    Thanks ,
    Vinay

    Hi,
    Attachments are stored in binary format.
    Advantage of  storing in SAP is speedy access, than compared to content server.
    Disadvantage some of the table space grows exponently.
    Some of the tables attachments get stored are SO*
    To get the link for the folder and attachments stored in SRGBTBREL
    Various type of attachments are ATTA NOTE URL MSG etc.
    For custom attachment options can be enabled using class CL_GOS_MANAGER
    aRs
    If useful pl. assign points
    Message was edited by:
            a®

  • Store business document inactive in transaction CJ20N

    Hi,
    The option "Store Business Document" is inactive in the transaction CJ20N.
    I saw a couple of forums that said that I have to create an archive link for this but I don't know for example what "Object Type" I can use for this in the transaction "OAC3" or what steps I have to follow to enable this option.
    Thanks for the help!

    Hi,
    I think that I figure it out how can I activate the "store business document" using your comments and this forum:
    Activate GOS business application for object PREL
    Now, my question is, could I use any TOA0# table when I'm creating an object type in the transaction OAC3?
    I saw that in my system I have the tables TOA01, TOA02 and TOA03 created but these tables contains entries.. is ok if I use for example TOA01 for the "Object type" that I have to create?
    Thanks for the help!
    Carlos

  • Table extension not being saved

    Hi,
    I have implemented Table extension at item level for SC and from the config perspective all looks fine.
    1) Created Append struture with required fields
    First step: appending the field to the correct structure in SE11 or via transaction SPRO.
    Structure names for table extensions are according to the pattern:
    INCL_EEW_PD_<x>_CST_<y> with
    <x>: HEADER, ITEM
    2)
    Path in IMG (transaction SPRO):
    SAP SRM -> SRM server ->
    -> Cross-Application Basic Settings
    -> Extensions and Field Control (Personalization)
    -> Create Table Extensions and Supply with Data
    -> Define Customer Table Extensions on Item Level
    Second step: you additionally need to append the new table extension field to the
    corresponding INCL_EEW_PD_<x>_CST structure called u2018cross-documentu2019 structure. This can
    also be done in IMG
    You can explicitly enter the very same field(s) (name and type) into both append structures.
    It is recommended, however, to first create another structure with the new field (in SE11) and
    then include that other structure in both append structures
    (menu path in SE11 screen: -> Edit -> Include -> Insert).
    Default append structure names in this example are
    ZAINCL_EEW_PD_ITEM_CST_SC and
    ZAINCL_EEW_PD_ITEM_CST
    when using the IMG path..
    3)
    Third step: Set visibility of the table extension.Create an entry with TICUS for item data (THCUS for header data).
    Donu2019t miss to populate the Transaction Type field - you could save the table entry without it,
    but it will not work!
    4)
    Fourth step: Configure Control of Fields of Table Extensions. Create an entry with TICUS for item data (THCUS for header data).Donu2019t miss to populate the Set Level field - you could save the table entry without it, but it will not work!
    Fifth step: Configure Control of Actions
    Sixth (final) step: SM30 - maintain view /SAPSRM/V_MDFSBC_DEFAULT
    I have rechecked the config several times but could not find any reason for the data not to be saved.
    When I add the data to the table structure and if click enter or check button the data disappears. The entries are not captured in BBP_PDICF  table either. i can see the Z structure in se11 for BBP_PDICF.
    I have checked doc_change badi for any issues but could not find the issue. Any idea as where I should check for the data not being saved issue?

    Hello Srinivas,
    Please do this step:
    In SM30-maintain view /SAPSRM/V_MDFSBC_DEFAULT
    Object set type :TICUS
    Structure field name : custom field
    Object type : BUS2121
    set level : item
    Field visible : X
    field enable : X
    Regards,
    Neelima

  • IW52 + Get link data  when stored via 'Store the business document'

    Hi,
    For  Notification change - IW52:
    FM BDS_GOS_CONNECTIONS_GET is used to get the information when attachment are stored via 'Create attachment' .
    CALL FUNCTION 'BDS_GOS_CONNECTIONS_GET'
        EXPORTING
          classname             =  'BUS2080'
          objkey                   =  The notification number
        TABLES
          gos_connections          = w_connections
    EXCEPTIONS
       NO_OBJECTS_FOUND         = 1
       INTERNAL_ERROR           = 2
       INTERNAL_GOS_ERROR       = 3
      OTHERS                   = 4.
    Can any one please let me know FM or Method that should be used to retrieve the link data when attachment are stored via 'Store the business document'.?
    Regards,
    Himanshu

    Hi,
    Try with FM ARCHIVOBJECT_GET_URI or ARCHIV_GET_CONNECTIONS. With this FM you get the business documents attached to an object. You have to fill the object type and the object id.
    Regards,
    Edited by: Jose Vaquero Polonio on Jan 5, 2011 10:42 AM

  • GOS - Store Business Document

    Hello,
    For a maintanance work order, I want to store a document at GOS -> Create - > Store Business Document in transacion IW32.
    Is there any standard FM available to achieve this ?
    Regards,
    Anand

    See the following example:
    PARAMETERS: p_key TYPE swo_typeid OBLIGATORY,
    p_type TYPE swo_objtyp OBLIGATORY,
    p_file TYPE c LENGTH 100 OBLIGATORY,
    p_desc TYPE so_obj_des OBLIGATORY.
    DATA: ls_fol_id TYPE soodk,
    ls_obj_id TYPE soodk,
    ls_obj_data TYPE sood1,
    ls_folmem_k TYPE sofmk,
    ls_note TYPE borident,
    ls_object TYPE borident,
    lv_ep_note TYPE borident-objkey,
    lv_offset TYPE i.
    DATA: it_objhead TYPE STANDARD TABLE OF soli,
    it_content LIKE STANDARD TABLE OF soli,
    wa_content LIKE soli.
    ls_object-objkey = p_key.
    ls_object-objtype = p_type.
    TRY.
    OPEN DATASET p_file FOR INPUT IN BINARY MODE.
    WHILE sy-subrc = 0.
    READ DATASET p_file INTO wa_content.
    APPEND wa_content TO it_content.
    ENDWHILE.
    CLOSE DATASET p_file.
    CATCH cx_sy_file_access_error.
    MESSAGE 'Error reading file' TYPE 'E'.
    ENDTRY.
    CALL FUNCTION 'SO_CONVERT_CONTENTS_BIN'
    EXPORTING
    it_contents_bin = it_content[]
    IMPORTING
    et_contents_bin = it_content[].
    CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
    EXPORTING
    region = 'B'
    IMPORTING
    folder_id = ls_fol_id
    EXCEPTIONS
    OTHERS = 1.
    ls_obj_data-objsns = 'O'.
    ls_obj_data-objla = sy-langu.
    ls_obj_data-objdes = p_desc.
    lv_offset = STRLEN( p_file ) - 3.
    ls_obj_data-file_ext = p_file+lv_offset(3).
    ls_obj_data-objlen = LINES( it_content ) * 255.
    CALL FUNCTION 'SO_OBJECT_INSERT'
    EXPORTING
    folder_id = ls_fol_id
    object_type = 'EXT'
    object_hd_change = ls_obj_data
    IMPORTING
    object_id = ls_obj_id
    TABLES
    objhead = it_objhead
    objcont = it_content
    EXCEPTIONS
    active_user_not_exist = 35
    folder_not_exist = 6
    object_type_not_exist = 17
    owner_not_exist = 22
    parameter_error = 23
    OTHERS = 1000.

  • Link invoice with Business Document

    Hi all,
    I am looking for a way to link my invoices (from R/3 Invoice overview) with the original scanned invoice in TIFF format (business document).
    I can see that this is possible using the "Attach Business Document" feature in the change invoice sreen, but I do not want to set this link up manually.
    Is there anyway assign a "business document" to an invoice (or the other way around) automatically?
    Thanks!

    ....you can use GOS (generic object serivces) to add attachments.
    Here is a SD billing example....
    Add this program to an output type in transaction NACE
    *& Report  ZZCREATE_ATTACH                                             *
    *& Triggered by billing output-type ZRD4                               *
    *& Create a "service for object" attachement URL
    report  zzcreate_attach.
    tables: nast.
    data: tmp_vbeln like vbrk-vbeln.
    data:
    *--Object_a
        p_botype like obl_s_pbor-typeid,
        p_bo_id  like obl_s_pbor-instid,
    *--Object_b
        p_docty  like obl_s_pbor-typeid,
        p_msgtyp like sofm-doctp,
        p_url(300),
        p_title(30),
    *--Relationship
        p_reltyp  like mdoblrel-reltype.
    *-Include for BO macros -*
    include : <cntn01>.
    types: begin of ty_message_key,
            foltp     type so_fol_tp,
            folyr     type so_fol_yr,
            folno     type so_fol_no,
            doctp     type so_doc_tp,
            docyr     type so_doc_yr,
            docno     type so_doc_no,
            fortp     type so_for_tp,
            foryr     type so_for_yr,
            forno     type so_for_no,
           end of ty_message_key.
    data : lv_message_key type ty_message_key.
    data : lo_message type swc_object.
    data : lt_doc_content type standard table of soli-line with header line.
    data : tmp_oblguid16 type oblguid16.
    *&      Form  entry
    *       text
    *      -->RETURN_CODE  text
    *      -->US_SCREEN    text
    form entry using return_code us_screen.
      perform create_url.
      return_code = 0.
    endform.                    "ENTRY
    *&      Form  create_url
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form create_url .
      if nast-objky+10 ne space.
        nast-objky = nast-objky+16(10).
      else.
        nast-objky = nast-objky.
      endif.
      tmp_vbeln = nast-objky.
    *-Load class. -*
      class cl_binary_relation definition load.
      class cl_obl_object      definition load.
    *-Set default values -*
      p_botype = 'VBRK'.
      p_bo_id  = tmp_vbeln.
      p_docty  = 'MESSAGE'.
      p_msgtyp = 'URL'.
      p_title  = 'Web Hotel'.
      p_reltyp = 'URL'.
      p_url = 'www.mydoc.tiff'.                   "Here you must add your URL !!!
    *-First derive the Attachment's ( MESSAGE )document type. -*
      p_docty = 'MESSAGE'.
      case p_reltyp.
    *   In case of URls
        when 'URL'.
          p_msgtyp = 'URL'.
    *   In case of Notes / Private Notes
        when 'NOTE' or 'PNOT'.
          p_msgtyp = 'RAW'.
        when 'ATTA'.
          p_msgtyp = 'EXT'.
    *   Not implemented as yet...exit
          exit.
        when others.
    *    ....exit
          exit.
      endcase.
    *-Create an initial instance of BO 'MESSAGE' - to  -*
    *-call the instance-independent method 'Create'.   -*
      swc_create_object lo_message 'MESSAGE' lv_message_key.
    *-Define container to pass the parameter values -*
    *-to the method call in next step.              -*
      swc_container lt_message_container.
    *-Populate container with parameters for method-*
      swc_set_element lt_message_container 'DOCUMENTTITLE' p_title.
      swc_set_element lt_message_container 'DOCUMENTLANGU' 'E'.
      swc_set_element lt_message_container 'NO_DIALOG'     'X'.
      swc_set_element lt_message_container 'DOCUMENTNAME' p_docty.
      swc_set_element lt_message_container 'DOCUMENTTYPE'   p_msgtyp.
    *-'DocumentContent' is a multi-line element ( itab ). -*
    *-In case of URLs..it should be concatenated          -*
    *-with &KEY& in the begining.                         -*
      case p_msgtyp.
        when 'URL'.
          concatenate '&KEY&' p_url into lt_doc_content.
          append lt_doc_content.
    *-In case of Notes or Private Notes, get the data -*
    *-from files on appl server or from wherever ?    -*
    *-(remember background).                          -*
        when 'RAW'.
          lt_doc_content = 'Hi How r u?' .
          append lt_doc_content.
    *-In case of File attachments upload file -*
        when 'EXT'.
      endcase.
      swc_set_element lt_message_container 'DocumentContent' lt_doc_content.
      swc_call_method lo_message 'CREATE' lt_message_container.
    *-Refresh to get the reference of        -*
    *-create 'MESSAGE' object for attachment -*
      swc_refresh_object lo_message.
    *-Get Key of new object -*
      swc_get_object_key lo_message lv_message_key.
    *-Now we have attachment as a business object instance.      -*
    *-We can now attach it to our main business object instance. -*
    *-Create main BO object_a -*
      data: lo_is_object_a type sibflporb.
      lo_is_object_a-instid = p_bo_id.
      lo_is_object_a-typeid = p_botype.
      lo_is_object_a-catid  = 'BO'.
    *-Create attachment BO object_b -*
      data: lo_is_object_b type sibflporb.
      lo_is_object_b-instid = lv_message_key.
      lo_is_object_b-typeid = p_docty.
      lo_is_object_b-catid  = 'BO'.
    *-TRY -*
      call method cl_binary_relation=>create_link
        exporting
          is_object_a            = lo_is_object_a
    *    IP_LOGSYS_A            =
          is_object_b            = lo_is_object_b
    *    IP_LOGSYS_B            =
          ip_reltype             = p_reltyp
    *    IP_PROPNAM             =
    *    I_PROPERTY             =
         importing
           ep_link_id             = tmp_oblguid16
    *    EO_PROPERTY            =
    endform.                    " create_url

  • Store Business document in FD32

    Hi All
    Can anyone help me out on how  to activate  the functionality of Store Business document in FD32
    It in ->Go to - FD32 
    ->On Title BAR(customer credit management change :overview) click on the ICON displayed left corner
    Create - Store Business document
    It is below create attachments . i need send the data to another system
    Regards
    Sujan

    Hello,
    For your requirement, you should have ArchiveLink configuration...
    Below are the step you should perform for Late Document Archiving
    > Create Document Type and assign document class in transaction OAC2
    >> Assign Content Repository, Link table to your Business object type and document type in transaction OAC3.
    After this you can perform Late document archiving in FB32 transaction with help of GOS = Generic object service.
    Steps in GOS - Select Create > Click on Store Business document >> Select your document type and attach required image. This will help in storing incoming or outgoing documents for your business transactions in archive server through content repository assigned to document type.
    Note: Above works if Archive Infrastructure in place & connected to SAP system. If not then directly you can attach the incoming and outgoing documents to your business transaction so that all the attachment will be stored in SAP database.
    Hope this information will help you.
    -Thanks,
    Ajay

  • CHiP BSSP_ATTACHMENTS store business document

    I added the CHiP BSSP_ATTACHMENTS to my custom web dynpro application.  I got it to work, but the attachments attach to the content server.  We want the attachments to go to the archive server (i.e. IXOS).  To do this manually, you would to the GOS menu and choose 'Store business document'.  I believe the CHiP is using the GOS menu item 'Attach' which stores to the content server (SAP database).
    Anyone know how I can tell the CHiP to store to the archive server instead?
    Thanks.

    Hello,
    For your requirement, you should have ArchiveLink configuration...
    Below are the step you should perform for Late Document Archiving
    > Create Document Type and assign document class in transaction OAC2
    >> Assign Content Repository, Link table to your Business object type and document type in transaction OAC3.
    After this you can perform Late document archiving in FB32 transaction with help of GOS = Generic object service.
    Steps in GOS - Select Create > Click on Store Business document >> Select your document type and attach required image. This will help in storing incoming or outgoing documents for your business transactions in archive server through content repository assigned to document type.
    Note: Above works if Archive Infrastructure in place & connected to SAP system. If not then directly you can attach the incoming and outgoing documents to your business transaction so that all the attachment will be stored in SAP database.
    Hope this information will help you.
    -Thanks,
    Ajay

  • Business document

    When load photos with tx OAOR where are stored the Business documents and how can I configure this?
    I would like to download all the attached photos to materials to a external directory with a background process.
    have SAP a FM or class to download a photo attached as BO to a directory?.

    Obtain photos of Materials and save in a directory.
    FUNCTION z18sdwsget_material_photo.
    ""Interfase local
    *"  IMPORTING
    *"     VALUE(PI_CLASSNAME) LIKE  BAPIBDS01-CLASSNAME
    *"     VALUE(PI_CLASSTYPE) LIKE  BAPIBDS01-CLASSTYPE
    *"     VALUE(PI_OBJECT_KEY) LIKE  BAPIBDS01-OBJKEY
    *"     VALUE(PI_ALL) LIKE  BAPIBDS01-X DEFAULT 'X'
    *"     VALUE(PI_DIRECTORY) LIKE  BAPIBDS01-X OPTIONAL
    *"     VALUE(PI_DIRECTORY) TYPE  SDOK_CHTRD OPTIONAL
    *"     VALUE(PI_ALIAS_NAME) TYPE  SDOK_FILNM OPTIONAL
    *Constantes
      CONSTANTS: c_logobject LIKE  sdokrecl-re_class VALUE 'LOGOBJECT'.
    Varaibales locales
      DATA: l_matnr     LIKE mara-matnr,
            l_classname LIKE bapibds01-classname,
            l_objkey    LIKE bapibds01-objkey.
    Areas de trabajo
      DATA: wa_connections         LIKE bapiconnec,
            wa_result              LIKE sdokrelist.
    Tablas internas locales
      DATA: i_infoobjects LIKE bapiinfobj OCCURS 1 WITH HEADER LINE,
            i_signature   LIKE bapisignat OCCURS 1 WITH HEADER LINE,
            i_components  LIKE sdokcomcho OCCURS 1 WITH HEADER LINE,
            i_sdokerrkey  LIKE sdokerrkey OCCURS 1 WITH HEADER LINE.
      REFRESH: i_signature,
               i_sdokerrkey,
               i_components.
      l_classname = pi_classname.
      IF l_classname+0(7) = PI_CLASSNAME.           "'BUS1001'.
        l_matnr = pi_object_key.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = l_matnr
          IMPORTING
            output = l_matnr.
        l_objkey = l_matnr.
      ELSE.
        l_objkey = pi_object_key.
      ENDIF.
      CALL FUNCTION 'BDS_PHIOS_GET_RIGHT'
       EXPORTING
    LOGICAL_SYSTEM        =
         classname             = pi_classname
         classtype             = pi_classtype
         client                = sy-mandt
         object_key            = l_objkey
    ALL                   = 'X'
         check_state           = 'X'
       TABLES
         infoobjects           = i_infoobjects
         signature             = i_signature
       EXCEPTIONS
         nothing_found         = 1
         parameter_error       = 2
         not_allowed           = 3
         error_kpro            = 4
         internal_error        = 5
         not_authorized        = 6
         OTHERS                = 7.
      IF sy-subrc <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ELSE.
      LOOP AT i_infoobjects.
        MOVE: i_infoobjects-ph_objid TO i_components-objid,
              i_infoobjects-ph_class TO i_components-class,
              PI_DIRECTORY        TO i_components-directory,
              PI_ALIAS                 TO i_components-alias.
        APPEND i_components.
      ENDLOOP.
      CALL FUNCTION 'SDOK_PHIOS_GET_COPY'
        EXPORTING
          client      = sy-mandt
        TABLES
          components  = i_components
          bad_objects = i_sdokerrkey.
    ENDIF.
    ENDFUNCTION.

Maybe you are looking for

  • Userexit for sales orders

    Hi, I want to set that from one distribution channel I can sell only from specific storage location... Does anybody know which user exit I need to adopt? Br Saso

  • Merging xml files element by lement

    Hi, I have two xml files of dept and emp tables. I want to merg these two xml files in such a way that the output should be grouped by deptnos. i.e., under dept deptno 10 child node, i should get all emp child nodes who have deptno 10. How can I do t

  • Create a Java File

    Hello, I have some java script that I embed into my html, is it possible to create a java script file with this script? This way I only have ot update the script. I have dreamweaver and I tried to create a java file using that but when I choose to in

  • Lookout 4.5 Upgrade

    Hello all, A customer called that is running Lookout 4.5 on Windows 2000 and would like my company to provide an updgrade.  They of course want to spend as little money as possible on development, so asked us to see what version of Lookout (and Windo

  • Hello Guys Am Thinking About Get This Creative Sound Blaster X-Fi Xtreme Music

    The Thing Is I Will Be Use it for Native Instruments Traktor DJ Studio 3 will this work a need soundcard with Multi-channel audio interface so can monitor the sound though the head phones and have the music going thoug the speakers a dont No if this