CONVERT_TO_ID SAP Method Converts External Format of Ordering Reason into ID









Below is documentation, parameters and attributes of ABAP Method CONVERT_TO_ID within SAP class /SCMB/CL_BUYTYPE. There is also a number of example ABAP code snipts to help you use the functionality of this method.

This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name /SCMB/CL_BUYTYPE into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Static

This is a Static Method so you can call it directly

The following technical details of method CONVERT_TO_ID can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method CONVERT_TO_ID

.

NameTypeData TypeDescriptionDefault Value
IV_CODEImportingTYPE
/SCMB/BUYTYPE_CODE
Stability Code
RV_IDReturningTYPE
/SCMB/BUYTYPE_CODE_ID
Stability Code (ID)



Exceptions of Method CONVERT_TO_ID

/SCMB/CX_BUYTYPE - Order Reason Exceptions

Example ABAP coding


DATA: lv_IV_CODE TYPE /SCMB/BUYTYPE_CODE,
lv_RV_ID TYPE /SCMB/BUYTYPE_CODE_ID,
lv_other TYPE c.

CALL METHOD /SCMB/CL_BUYTYPE=>CONVERT_TO_ID(
EXPORTING
IV_CODE = lv_IV_CODE
RECEIVING
RV_ID = lv_RV_ID )



"Alternate coding for Method Call with returning parameter
lv_RV_ID = /SCMB/CL_BUYTYPE=>CONVERT_TO_ID(
EXPORTING
IV_CODE = lv_IV_CODE ).

Links to Related Class(s)

/SCMB/CL...
Full list of available SAP object classes

Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!