SAP Classes

Share |

GET_DATA_RESULT_DEF SAP Method - Get the result definition to data


GET_DATA_RESULT_DEF is a standard SAP ABAP method of class RS_BCT_PBPC_ADD_DATA_SVC available within R/3 SAP systems depending on your version and release level. Below is the standard documentation available for it. You can view this information and more if you enter the class name RS_BCT_PBPC_ADD_DATA_SVC into the relevant SAP transaction such as SE24 or SE80 and then select the method GET_DATA_RESULT_DEF

Contribute(Add Comment)
See the comments section below for any useful hints, tips and information specific to this SAP Method. Also please feel free to add any further details you feel would be useful or ask any questions you may have. You can then easily find this info again simply by searching on the method name GET_DATA_RESULT_DEF or its description.


Class Name: RS_BCT_PBPC_ADD_DATA_SVC

Method Name: GET_DATA_RESULT_DEF

Method Type: Instance Method
This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.

Importing Parameters:
   I_FIELDNAME " Field Name TYPE FIELDNAME
   I_EXPRESSION " BRF: Expression TYPE BRF_EXPRESSION

Returning Parameters:
   RE_RESULT_DEF " Result Definition TYPE REF TO RESULT_DEF

Exceptions:
   NOT_FOUND -


Example ABAP coding

DATA:
   ld_I_FIELDNAME TYPE FIELDNAME ,
   ld_I_EXPRESSION TYPE BRF_EXPRESSION ,
   ld_RE_RESULT_DEF TYPE REF TO RESULT_DEF.

" ld_I_FIELDNAME = "<Populate with value>
" ld_I_EXPRESSION = "<Populate with value>

DATA: lo_SVC TYPE REF TO RS_BCT_PBPC_ADD_DATA_SVC .
CALL METHOD lo_SVC->GET_DATA_RESULT_DEF(
EXPORTING
   I_FIELDNAME = ld_I_FIELDNAME
   I_EXPRESSION = ld_I_EXPRESSION
RECEIVING
   RE_RESULT_DEF = ld_RE_RESULT_DEF
EXCEPTIONS
   NOT_FOUND = 2 ).

"Alternate coding for Method Call with returning parameter

ld_RE_RESULT_DEF = lo_SVC->GET_DATA_RESULT_DEF(
EXPORTING
   I_FIELDNAME = ld_I_FIELDNAME
   I_EXPRESSION = ld_I_EXPRESSION ).


comments powered by Disqus