API_S2K_IP_PART_READ is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name API_S2K_IP_PART_READ into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
ADS2KIPUPL_API_AL
Released Date:
23.09.2002
Processing type: Remote-Enabled
CALL FUNCTION 'API_S2K_IP_PART_READ' "Read a part from Initial Provisioning Database
EXPORTING
i_sqnbr = " adspc_sqnbr
i_pnr = " adspc_pnr
i_mfr = " adspc_mfr
* i_eip = SPACE " adspc_eip
* i_eim = SPACE " adspc_eim
* i_read_suppliers = 'X' " boole_d
* i_read_locations = 'X' " boole_d
IMPORTING
es_spcippdr = " api_cspcippdr
e_part_deleted = " boole_d
e_call_parameters_incorrect = " boole_d
e_part_does_not_exist = " boole_d
* TABLES
* et_spcipparts = " api_spcipparts
* et_spcippdr_text = " api_spcippdr_text
* et_spcipspl = " api_cspcipspl
* et_spcipspl_text = " api_spcipspl_text
* et_spciposds = " api_spciposds
* et_spcippqa = " api_cspcippqa
* et_spcipoch = " api_cspcipoch
* et_spcipcsn = " api_cspcipcsn
* et_spcipcsn_text = " api_spcipcsn_text
* et_spcipeff = " api_spcipeff
* et_spcipuoa = " api_spcipuoa
* et_spciprpde = " api_cspciprpde
* et_extension = " api_spcipextn
. " API_S2K_IP_PART_READ
The ABAP code below is a full code listing to execute function module API_S2K_IP_PART_READ including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).
| ld_es_spcippdr | TYPE API_CSPCIPPDR , |
| ld_e_part_deleted | TYPE BOOLE_D , |
| ld_e_call_parameters_incorrect | TYPE BOOLE_D , |
| ld_e_part_does_not_exist | TYPE BOOLE_D , |
| it_et_spcipparts | TYPE STANDARD TABLE OF API_SPCIPPARTS,"TABLES PARAM |
| wa_et_spcipparts | LIKE LINE OF it_et_spcipparts , |
| it_et_spcippdr_text | TYPE STANDARD TABLE OF API_SPCIPPDR_TEXT,"TABLES PARAM |
| wa_et_spcippdr_text | LIKE LINE OF it_et_spcippdr_text , |
| it_et_spcipspl | TYPE STANDARD TABLE OF API_CSPCIPSPL,"TABLES PARAM |
| wa_et_spcipspl | LIKE LINE OF it_et_spcipspl , |
| it_et_spcipspl_text | TYPE STANDARD TABLE OF API_SPCIPSPL_TEXT,"TABLES PARAM |
| wa_et_spcipspl_text | LIKE LINE OF it_et_spcipspl_text , |
| it_et_spciposds | TYPE STANDARD TABLE OF API_SPCIPOSDS,"TABLES PARAM |
| wa_et_spciposds | LIKE LINE OF it_et_spciposds , |
| it_et_spcippqa | TYPE STANDARD TABLE OF API_CSPCIPPQA,"TABLES PARAM |
| wa_et_spcippqa | LIKE LINE OF it_et_spcippqa , |
| it_et_spcipoch | TYPE STANDARD TABLE OF API_CSPCIPOCH,"TABLES PARAM |
| wa_et_spcipoch | LIKE LINE OF it_et_spcipoch , |
| it_et_spcipcsn | TYPE STANDARD TABLE OF API_CSPCIPCSN,"TABLES PARAM |
| wa_et_spcipcsn | LIKE LINE OF it_et_spcipcsn , |
| it_et_spcipcsn_text | TYPE STANDARD TABLE OF API_SPCIPCSN_TEXT,"TABLES PARAM |
| wa_et_spcipcsn_text | LIKE LINE OF it_et_spcipcsn_text , |
| it_et_spcipeff | TYPE STANDARD TABLE OF API_SPCIPEFF,"TABLES PARAM |
| wa_et_spcipeff | LIKE LINE OF it_et_spcipeff , |
| it_et_spcipuoa | TYPE STANDARD TABLE OF API_SPCIPUOA,"TABLES PARAM |
| wa_et_spcipuoa | LIKE LINE OF it_et_spcipuoa , |
| it_et_spciprpde | TYPE STANDARD TABLE OF API_CSPCIPRPDE,"TABLES PARAM |
| wa_et_spciprpde | LIKE LINE OF it_et_spciprpde , |
| it_et_extension | TYPE STANDARD TABLE OF API_SPCIPEXTN,"TABLES PARAM |
| wa_et_extension | LIKE LINE OF it_et_extension . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| it_et_spcipparts | TYPE STANDARD TABLE OF API_SPCIPPARTS , |
| wa_et_spcipparts | LIKE LINE OF it_et_spcipparts, |
| ld_i_sqnbr | TYPE ADSPC_SQNBR , |
| ld_es_spcippdr | TYPE API_CSPCIPPDR , |
| it_et_spcippdr_text | TYPE STANDARD TABLE OF API_SPCIPPDR_TEXT , |
| wa_et_spcippdr_text | LIKE LINE OF it_et_spcippdr_text, |
| ld_i_pnr | TYPE ADSPC_PNR , |
| ld_e_part_deleted | TYPE BOOLE_D , |
| ld_i_mfr | TYPE ADSPC_MFR , |
| ld_e_call_parameters_incorrect | TYPE BOOLE_D , |
| it_et_spcipspl | TYPE STANDARD TABLE OF API_CSPCIPSPL , |
| wa_et_spcipspl | LIKE LINE OF it_et_spcipspl, |
| ld_i_eip | TYPE ADSPC_EIP , |
| ld_e_part_does_not_exist | TYPE BOOLE_D , |
| it_et_spcipspl_text | TYPE STANDARD TABLE OF API_SPCIPSPL_TEXT , |
| wa_et_spcipspl_text | LIKE LINE OF it_et_spcipspl_text, |
| ld_i_eim | TYPE ADSPC_EIM , |
| it_et_spciposds | TYPE STANDARD TABLE OF API_SPCIPOSDS , |
| wa_et_spciposds | LIKE LINE OF it_et_spciposds, |
| ld_i_read_suppliers | TYPE BOOLE_D , |
| it_et_spcippqa | TYPE STANDARD TABLE OF API_CSPCIPPQA , |
| wa_et_spcippqa | LIKE LINE OF it_et_spcippqa, |
| ld_i_read_locations | TYPE BOOLE_D , |
| it_et_spcipoch | TYPE STANDARD TABLE OF API_CSPCIPOCH , |
| wa_et_spcipoch | LIKE LINE OF it_et_spcipoch, |
| it_et_spcipcsn | TYPE STANDARD TABLE OF API_CSPCIPCSN , |
| wa_et_spcipcsn | LIKE LINE OF it_et_spcipcsn, |
| it_et_spcipcsn_text | TYPE STANDARD TABLE OF API_SPCIPCSN_TEXT , |
| wa_et_spcipcsn_text | LIKE LINE OF it_et_spcipcsn_text, |
| it_et_spcipeff | TYPE STANDARD TABLE OF API_SPCIPEFF , |
| wa_et_spcipeff | LIKE LINE OF it_et_spcipeff, |
| it_et_spcipuoa | TYPE STANDARD TABLE OF API_SPCIPUOA , |
| wa_et_spcipuoa | LIKE LINE OF it_et_spcipuoa, |
| it_et_spciprpde | TYPE STANDARD TABLE OF API_CSPCIPRPDE , |
| wa_et_spciprpde | LIKE LINE OF it_et_spciprpde, |
| it_et_extension | TYPE STANDARD TABLE OF API_SPCIPEXTN , |
| wa_et_extension | LIKE LINE OF it_et_extension. |
You can read the information about a particular Part from the Initial
Provisioning database. This data includes long text for Parts
...See here for full SAP fm documentation
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name API_S2K_IP_PART_READ or its description.
API_S2K_IP_PART_READ - Read a part from Initial Provisioning Database API_S2K_IP_HDR_READ - Read Header and Header Text for a sequence number API_S2K_IP_HDR_CREATE - Update Header table for SPEC2000 Upload API_S2K_IP_GET_PARTS_LIST - Get List of Parts for a given sequence number & location API_RE_TC_GET_LIST - API_RE_TC_GET_DETAIL -