Saturday, September 3, 2016

Steps to create domain

1. Go to t-code SE11.
2. Select the Domain radio button, enter the name of the domain that you want to create
3. Press create.
4. Enter the short description.
5. Place the cursor in the data type and press F4 to get the list of SAP data types.
6. In the popup window select the correct data type.
7. Enter the number of characters.
8. Enter the decimal places if it applicable to data type that you have selected.
9. Save and activate the domain.


Thanks

Tuesday, October 8, 2013

Add Vendor Code and name in FBL3N report


To add Vendor Code and name in FBL3N report use BTE concept. 
  • Append structure in RFPOS & RFPOSX. 
  • In SE38 to regenerate the program RFPOSXEXTEN. 
  • Create a new function module ZXXXX and assign it to BTE 00001650.
  • In the FM select the vendor code from BSIK or BSAK by Document no. 

Monday, June 3, 2013

Authorization check for selection option

I want to share AUTHORITY-CHECK OBJECT for selection opting.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-002.
PARAMETERS:p_bukrs type bkpf-bukrs OBLIGATORY.
SELECT-OPTIONS :  so_audat FOR vbak-audat OBLIGATORY,
      so_auart FOR vbak-auart OBLIGATORY,
      so_kunnr FOR vbak-kunnr,
      so_matnr FOR vbap-matnr,
      so_vrkme FOR vbap-vrkme OBLIGATORY,
      so_lgort FOR vbap-lgort,
      so_werks FOR vbap-werks,
      so_vkorg FOR vbak-vkorg,
      so_vtweg FOR vbak-vtweg,
      so_spart FOR vbak-spart.
SELECTION-SCREEN END OF BLOCK b1.

Want to check Authorization for so_vkorg, so_vtweg, so_spart.

Go to AT SELECTION-SCREEN OUTPUT.
Now AT SELECTION-SCREEN.
Call  V_VBAK_VKO.

Check the code.

SELECT *
FROM  vbak
          INTO TABLE tmp_vbak
         WHERE audat IN so_audat
      AND auart IN so_auart
      AND vkorg IN so_vkorg
      AND vtweg IN so_vtweg
      AND spart IN so_spart
      AND bukrs_vf = p_bukrs.

   LOOP AT tmp_vbak INTO  wa_tmp_vbak.
     AUTHORITY-CHECK OBJECT 'V_VBAK_VKO'
        ID 'VKORG' FIELD  wa_tmp_vbak-vkorg
        ID 'VTWEG' FIELD  wa_tmp_vbak-vtweg
        ID 'SPART' FIELD  wa_tmp_vbak-spart
        ID 'ACTVT' FIELD '03'.
   ENDLOOP.
   IF sy-subrc <> 0.
     MESSAGE 'No authorization' TYPE 'E'.
   ENDIF.

Hope it will work
Rizvi
UA-40152711-1