BAPI for material storage location Add

 We can add material storage location plant wise using third party app or web. BAPI names : BAPI_MATERIAL_MAINTAINDATA_RT Import parameters: HEADDATA: Material Tables: STORAGELOCATIONDATA: Material: Plant: STGE_LOC:   STORAGELOCATIONDATAX: Material: Plant: STGE_LOC:   use below code after completing steps. CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.        

FM for fetch value against unconverted value in SAP ABAP

 In SAP ABAP sometimes we need to show value field data but when we fetch data from table we get unconverted value. Most of the time its happens when we need to show Base unit of measurement.

In below I show you the process with example.Hope it will help you to find the desire field.

Function module name: "CONVERSION_EXIT_CUNIT_OUTPUT"

 

CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT'
            EXPORTING
              INPUT    GS_QAMV-MASSEINHSW
              LANGUAGE SY-LANGU
            IMPORTING
*             LONG_TEXT            =
              OUTPUT   SPEC_U
*             SHORT_TEXT           =
*             EXCEPTIONS
*             UNIT_NOT_FOUND       = 1
*             OTHERS   = 2
            .
          IF SY-SUBRC <> 0.
* Implement suitable error handling here
          ENDIF.
 

 

Here GS_QAMV-MASSEINHSW is your fetching data, here i get CST but in value level it is cSt. User need cSt in their report. So i use uper FM to resolve the issue. Hope it will help to solve the issue.

Comments

Popular posts from this blog

New commodity code create in SAP S/4 Hana

Convert First character to Upper case in SAP ABAP