SAP Function Modules

BAPI_JOA_GETDETAIL SAP Function module - Get detailed information for joint operating agreement







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

Associated Function Group: GJV_JOA
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM BAPI_JOA_GETDETAIL - BAPI JOA GETDETAIL





CALL FUNCTION 'BAPI_JOA_GETDETAIL' "Get detailed information for joint operating agreement
  EXPORTING
    companycodeid =             " bapijoakey-comp_code  Company code
    joa =                       " bapijoakey-joa  Joint Operating Agreement
  IMPORTING
    joadescription =            " bapijoa-joatext  Short description of JOA
    joacontract =               " bapijoa-contract  Contract
    joacostcalculation =        " bapijoacostcalculation  Costcalculation data
    joaclass =                  " bapijoa-class  JOA class
  TABLES
*   joaeqgfull =                " bapijoaeqgfull  JOA equity group data
*   joaeqgpartnerfull =         " bapijoaeqgpartnerfull  JOA equity group partner data
*   joaburdenrate =             " bapijoaburdenrate  JOA burden rate data
*   joapenalty =                " bapijoapenalty  JOA Penalty categories
*   joaprojectparameter =       " bapijoaprojectparameter  JOA Project parameters
*   joaparentoverhead =         " bapijoaparcompoverhead  Parent overhead data
*   joadrillratio =             " bapijoadrillstatratio  Drilling statistical ratio assignments
*   joaprodratio =              " bapijoaprodstatratio  Production statistical ratio assignments
*   joaprodratiothrsh =         " bapijoaprodstatratiothrsh  Production ratio threshold
    return =                    " bapiret2      Return messages
    .  "  BAPI_JOA_GETDETAIL

ABAP code example for Function Module BAPI_JOA_GETDETAIL





The ABAP code below is a full code listing to execute function module BAPI_JOA_GETDETAIL 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_joadescription  TYPE BAPIJOA-JOATEXT ,
ld_joacontract  TYPE BAPIJOA-CONTRACT ,
ld_joacostcalculation  TYPE BAPIJOACOSTCALCULATION ,
ld_joaclass  TYPE BAPIJOA-CLASS ,
it_joaeqgfull  TYPE STANDARD TABLE OF BAPIJOAEQGFULL,"TABLES PARAM
wa_joaeqgfull  LIKE LINE OF it_joaeqgfull ,
it_joaeqgpartnerfull  TYPE STANDARD TABLE OF BAPIJOAEQGPARTNERFULL,"TABLES PARAM
wa_joaeqgpartnerfull  LIKE LINE OF it_joaeqgpartnerfull ,
it_joaburdenrate  TYPE STANDARD TABLE OF BAPIJOABURDENRATE,"TABLES PARAM
wa_joaburdenrate  LIKE LINE OF it_joaburdenrate ,
it_joapenalty  TYPE STANDARD TABLE OF BAPIJOAPENALTY,"TABLES PARAM
wa_joapenalty  LIKE LINE OF it_joapenalty ,
it_joaprojectparameter  TYPE STANDARD TABLE OF BAPIJOAPROJECTPARAMETER,"TABLES PARAM
wa_joaprojectparameter  LIKE LINE OF it_joaprojectparameter ,
it_joaparentoverhead  TYPE STANDARD TABLE OF BAPIJOAPARCOMPOVERHEAD,"TABLES PARAM
wa_joaparentoverhead  LIKE LINE OF it_joaparentoverhead ,
it_joadrillratio  TYPE STANDARD TABLE OF BAPIJOADRILLSTATRATIO,"TABLES PARAM
wa_joadrillratio  LIKE LINE OF it_joadrillratio ,
it_joaprodratio  TYPE STANDARD TABLE OF BAPIJOAPRODSTATRATIO,"TABLES PARAM
wa_joaprodratio  LIKE LINE OF it_joaprodratio ,
it_joaprodratiothrsh  TYPE STANDARD TABLE OF BAPIJOAPRODSTATRATIOTHRSH,"TABLES PARAM
wa_joaprodratiothrsh  LIKE LINE OF it_joaprodratiothrsh ,
it_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_return  LIKE LINE OF it_return .


DATA(ld_companycodeid) = some text here

DATA(ld_joa) = some text here

"populate fields of struture and append to itab
append wa_joaeqgfull to it_joaeqgfull.

"populate fields of struture and append to itab
append wa_joaeqgpartnerfull to it_joaeqgpartnerfull.

"populate fields of struture and append to itab
append wa_joaburdenrate to it_joaburdenrate.

"populate fields of struture and append to itab
append wa_joapenalty to it_joapenalty.

"populate fields of struture and append to itab
append wa_joaprojectparameter to it_joaprojectparameter.

"populate fields of struture and append to itab
append wa_joaparentoverhead to it_joaparentoverhead.

"populate fields of struture and append to itab
append wa_joadrillratio to it_joadrillratio.

"populate fields of struture and append to itab
append wa_joaprodratio to it_joaprodratio.

"populate fields of struture and append to itab
append wa_joaprodratiothrsh to it_joaprodratiothrsh.

"populate fields of struture and append to itab
append wa_return to it_return. . CALL FUNCTION 'BAPI_JOA_GETDETAIL' EXPORTING companycodeid = ld_companycodeid joa = ld_joa IMPORTING joadescription = ld_joadescription joacontract = ld_joacontract joacostcalculation = ld_joacostcalculation joaclass = ld_joaclass TABLES * joaeqgfull = it_joaeqgfull * joaeqgpartnerfull = it_joaeqgpartnerfull * joaburdenrate = it_joaburdenrate * joapenalty = it_joapenalty * joaprojectparameter = it_joaprojectparameter * joaparentoverhead = it_joaparentoverhead * joadrillratio = it_joadrillratio * joaprodratio = it_joaprodratio * joaprodratiothrsh = it_joaprodratiothrsh return = it_return . " BAPI_JOA_GETDETAIL
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_joadescription  TYPE BAPIJOA-JOATEXT ,
ld_companycodeid  TYPE BAPIJOAKEY-COMP_CODE ,
it_joaeqgfull  TYPE STANDARD TABLE OF BAPIJOAEQGFULL ,
wa_joaeqgfull  LIKE LINE OF it_joaeqgfull,
ld_joacontract  TYPE BAPIJOA-CONTRACT ,
ld_joa  TYPE BAPIJOAKEY-JOA ,
it_joaeqgpartnerfull  TYPE STANDARD TABLE OF BAPIJOAEQGPARTNERFULL ,
wa_joaeqgpartnerfull  LIKE LINE OF it_joaeqgpartnerfull,
ld_joacostcalculation  TYPE BAPIJOACOSTCALCULATION ,
it_joaburdenrate  TYPE STANDARD TABLE OF BAPIJOABURDENRATE ,
wa_joaburdenrate  LIKE LINE OF it_joaburdenrate,
ld_joaclass  TYPE BAPIJOA-CLASS ,
it_joapenalty  TYPE STANDARD TABLE OF BAPIJOAPENALTY ,
wa_joapenalty  LIKE LINE OF it_joapenalty,
it_joaprojectparameter  TYPE STANDARD TABLE OF BAPIJOAPROJECTPARAMETER ,
wa_joaprojectparameter  LIKE LINE OF it_joaprojectparameter,
it_joaparentoverhead  TYPE STANDARD TABLE OF BAPIJOAPARCOMPOVERHEAD ,
wa_joaparentoverhead  LIKE LINE OF it_joaparentoverhead,
it_joadrillratio  TYPE STANDARD TABLE OF BAPIJOADRILLSTATRATIO ,
wa_joadrillratio  LIKE LINE OF it_joadrillratio,
it_joaprodratio  TYPE STANDARD TABLE OF BAPIJOAPRODSTATRATIO ,
wa_joaprodratio  LIKE LINE OF it_joaprodratio,
it_joaprodratiothrsh  TYPE STANDARD TABLE OF BAPIJOAPRODSTATRATIOTHRSH ,
wa_joaprodratiothrsh  LIKE LINE OF it_joaprodratiothrsh,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return.


ld_companycodeid = some text here

"populate fields of struture and append to itab
append wa_joaeqgfull to it_joaeqgfull.

ld_joa = some text here

"populate fields of struture and append to itab
append wa_joaeqgpartnerfull to it_joaeqgpartnerfull.

"populate fields of struture and append to itab
append wa_joaburdenrate to it_joaburdenrate.

"populate fields of struture and append to itab
append wa_joapenalty to it_joapenalty.

"populate fields of struture and append to itab
append wa_joaprojectparameter to it_joaprojectparameter.

"populate fields of struture and append to itab
append wa_joaparentoverhead to it_joaparentoverhead.

"populate fields of struture and append to itab
append wa_joadrillratio to it_joadrillratio.

"populate fields of struture and append to itab
append wa_joaprodratio to it_joaprodratio.

"populate fields of struture and append to itab
append wa_joaprodratiothrsh to it_joaprodratiothrsh.

"populate fields of struture and append to itab
append wa_return to it_return.

SAP Documentation for FM BAPI_JOA_GETDETAIL


This module is part of the CA-JVA component.

It returns all data of a particular joint operating agreement (JOA).
...See here for full SAP fm documentati

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