SAP Function Modules

EXTRACT_PARTNER_DETAILS SAP Function module - Extract Partner details from KNA1 and T8JQ







EXTRACT_PARTNER_DETAILS 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 EXTRACT_PARTNER_DETAILS into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: GJVC
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM EXTRACT_PARTNER_DETAILS - EXTRACT PARTNER DETAILS





CALL FUNCTION 'EXTRACT_PARTNER_DETAILS' "Extract Partner details from KNA1 and T8JQ
  EXPORTING
    i_company =                 " t001-bukrs    Company Code
    i_eqgrp =                   " t8jq-egrup    Equity Group
    i_partner =                 " t8jq-partn    Partner
    i_venture =                 " t8jv-vname    Venture
  IMPORTING
    e_equity_share =            " t8jq-eqshare  Export: Equity Share
    e_name =                    " kna1-name1    Export: Customer Title
    .  "  EXTRACT_PARTNER_DETAILS

ABAP code example for Function Module EXTRACT_PARTNER_DETAILS





The ABAP code below is a full code listing to execute function module EXTRACT_PARTNER_DETAILS 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).

DATA:
ld_e_equity_share  TYPE T8JQ-EQSHARE ,
ld_e_name  TYPE KNA1-NAME1 .


SELECT single BUKRS
FROM T001
INTO @DATA(ld_i_company).


SELECT single EGRUP
FROM T8JQ
INTO @DATA(ld_i_eqgrp).


SELECT single PARTN
FROM T8JQ
INTO @DATA(ld_i_partner).


SELECT single VNAME
FROM T8JV
INTO @DATA(ld_i_venture).
. CALL FUNCTION 'EXTRACT_PARTNER_DETAILS' EXPORTING i_company = ld_i_company i_eqgrp = ld_i_eqgrp i_partner = ld_i_partner i_venture = ld_i_venture IMPORTING e_equity_share = ld_e_equity_share e_name = ld_e_name . " EXTRACT_PARTNER_DETAILS
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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:
ld_e_equity_share  TYPE T8JQ-EQSHARE ,
ld_i_company  TYPE T001-BUKRS ,
ld_e_name  TYPE KNA1-NAME1 ,
ld_i_eqgrp  TYPE T8JQ-EGRUP ,
ld_i_partner  TYPE T8JQ-PARTN ,
ld_i_venture  TYPE T8JV-VNAME .


SELECT single BUKRS
FROM T001
INTO ld_i_company.


SELECT single EGRUP
FROM T8JQ
INTO ld_i_eqgrp.


SELECT single PARTN
FROM T8JQ
INTO ld_i_partner.


SELECT single VNAME
FROM T8JV
INTO ld_i_venture.

Contribute (Add Comments)

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 EXTRACT_PARTNER_DETAILS or its description.