<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to use BAPI_INTERFACE_GETDOCU correctly? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-bapi-interface-getdocu-correctly/m-p/3935116#M941866</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to get the list of parameters and their definitions for a specified BAPI. It appears I need to call BAPI_INTERFACE_GETDOCU to get this information. However, there is not enough information on how to call the function correctly. The following .NET code, for example, returns an error that objname or objtype is not specified.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
p.Bapi_Interface_Getdocu(null,   null,   null,  "BAPI_MATERIAL_SAVEDATA",  null, null, null, null, out ret2, ref tbl);
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please help me on calling this function correctly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jun 2008 18:55:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-03T18:55:56Z</dc:date>
    <item>
      <title>How to use BAPI_INTERFACE_GETDOCU correctly?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-bapi-interface-getdocu-correctly/m-p/3935116#M941866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to get the list of parameters and their definitions for a specified BAPI. It appears I need to call BAPI_INTERFACE_GETDOCU to get this information. However, there is not enough information on how to call the function correctly. The following .NET code, for example, returns an error that objname or objtype is not specified.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
p.Bapi_Interface_Getdocu(null,   null,   null,  "BAPI_MATERIAL_SAVEDATA",  null, null, null, null, out ret2, ref tbl);
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please help me on calling this function correctly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 18:55:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-bapi-interface-getdocu-correctly/m-p/3935116#M941866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T18:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to use BAPI_INTERFACE_GETDOCU correctly?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-bapi-interface-getdocu-correctly/m-p/3935117#M941867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i'm afraid that if you don't start with the ABAP side first, it's going to take a long time to figure out the required fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to manually simulate the BAPI in SAP - meaning, go to the transaction that the BAPI performs and start putting in data on the screen until it's just enough to get your data back. When you figure that out, those will be the fields you need to fill in your call.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 20:06:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-bapi-interface-getdocu-correctly/m-p/3935117#M941867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T20:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to use BAPI_INTERFACE_GETDOCU correctly?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-bapi-interface-getdocu-correctly/m-p/3935118#M941868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The documentation of BAPI_INTERFACE_GETDOCU is quite verbose:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

 FU BAPI_INTERFACE_GETDOCU
 ____________________________________________________
 Short Text
     Read BAPI Interface Documentation
 Functionality
     This method reads the interface documentation for a BAPI.
     The method enables you to read out and make available to developers the
     information they need to implement BAPIs correctly.
     The parameters of this method delimit the documentation to be displayed.
     With these parameters you can specify whether you want to display the
     documentation on a business object, method, parameter or field. The BAPI
     interface documentation below can be accessed with this method:
     o   The documentation on the business object, if one of the two
         parameters OBJTYPE or OBJNAME contains a value and the parameters
         METHOD, PARAMETER and FIELD are BLANK.
     o   The documentation on the method, if one of the two parameters
         OBJTYPE or OBJNAME contains a value and the method name is specified
         in the parameter METHOD. The parameters PARAMETER and FIELD must
         also be BLANK.
     o   The docmentation on the parameter, if the parameter name is also
         transferred in the field PARAMETER.
     o   The field name, if the field name is also transferred in the
         parameter FIELD. This is only possible, if a structure has been used
         for the parameter.
 Example
     In this example the documentaion on the BAPI  "Employee.GetList" is
     retrieved without the parameter documentation. It is displayed in
     English (EN) in RTF text format.
     Import Parameter    Value
     OBJTYPE
     OBJNAME             "Employee"
     METHOD              "GetList"
     PARAMETER
     FIELD
     LANGUAGE            "EN"
     TEXTFORMAT          "RTF"
 Notes
     Messages are returned in the parameter RETURN. This parameter
     documentation contains the return codes and their descriptions.
 Parameters
     OBJTYPE
     OBJNAME
     METHOD
     PARAMETER
     FIELD
     LANGUAGE
     TEXTFORMAT
     LINKPATTERN
     RETURN
     TEXT
 Exceptions
 Function Group
     BATG
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not find the BAPI immediately in the BOR (transaction SWO1) therefore I searched table SWOTLV with VERB = 'SAVEDATA'. And here I found the BAPI belonging to business object &lt;STRONG&gt;BUS1001006&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To retrieve data from BAPI_INTERFACE_GETDOCU use the following IMPORTING parameter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OBJTYPE = 'BUS1001006'
LANGUAGE = 'EN'
TEXTFORMAT = 'RTF'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to call the BAPI using&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OBJNAME = 'StandardMaterial'
OBJTYPE = 'SaveData'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but here I did not retrieve any data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just tried another combination of IMPORTING parameter:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OBJNAME = 'StandardMaterial'     " no OBJTYPE !!!&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other textformats are:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SCR	SAPscript
ASC	ASCII
RTF	Rich text format
HTM	HTML&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 20:16:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-bapi-interface-getdocu-correctly/m-p/3935118#M941868</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-06-03T20:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to use BAPI_INTERFACE_GETDOCU correctly?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-bapi-interface-getdocu-correctly/m-p/3935119#M941869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pradeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 00:48:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-bapi-interface-getdocu-correctly/m-p/3935119#M941869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-05T00:48:41Z</dc:date>
    </item>
  </channel>
</rss>

