Wednesday 26 September 2012

How to Create Elementary search help


        Steps to create a Elementary search help.


         1. Go to tcode: SE11 and follow the screenshot below and click create
      
               
             
      2. select elementary search help and continue
      3. follow the screenshot below.

       













                    
              

Friday 14 September 2012

Passing Parameter to SAP Smartforms Part II

After we created a smartforms in Part I. Now we will going to create a Z driver program for our smartforms


 1. Goto SE38 - ABAP Editor and create a Z program

2. Paste the sample code below

* Program Title      : Demo Driver Program for Smart form
* Program Description: Demo Driver Program for smart form to print the PR Number.
*                      we will call here the smartform and pass a parameter
* SAP R/3 Module     : Material Management (MM)
* SAP R/3 version    : SAP R/3 Enterprise / Basis Release : 700

*** ------------------------------------------------------------------------------- ***

DATA FM_NAME TYPE RS38L_FNAM" Name of the Function Module

*-------------- START OF SELECTION SCREEN Design----------------------------*
SELECTION-SCREENBEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERSPR_NO LIKE EBAN-BANFN OBLIGATORY.
SELECTION-SCREENEND OF BLOCK B1.

*-------------- END OF SELECTION SCREEN Design------------------------------*

START-OF-SELECTION.

  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      FORMNAME           'ZPASS_PARAMETER' " Pass the smartform Name
    IMPORTING
      FM_NAME            FM_NAME " Name of Function Module
    EXCEPTIONS
      NO_FORM            1
      NO_FUNCTION_MODULE 2
      OTHERS             3.
  IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
* ----------------------------- FORMS ------------------
*Take Note: In the exporting, the PR_Number here is the parameter we defined in smartform
*           Global settings then in the form Interface
*           and PR_No is the parameter here in driver program that will going to pass in PR_Number
  CALL FUNCTION FM_NAME
    EXPORTING
      PR_NUMBER        PR_NO
    EXCEPTIONS
      FORMATTING_ERROR 1
      INTERNAL_ERROR   2
      SEND_ERROR       3
      USER_CANCELED    4
      OTHERS           5.
  IF SY-SUBRC <> 0.
    MESSAGE S000(ZSD_INV).
  ENDIF.


3. Save and Activate your program
4.Click Direct processing
5. Enter parameter
6. Execute




 

Wednesday 12 September 2012

Passing Parameter to SAP Smartforms Part I

Passing Parameter to Smartforms from Driver Program

1. Go to transaction SMARTFORMS
2. Enter smartform name then click create


3.  In the Global Settings double click the Form Interface.
4. In the import tab, define the parameter name to be pass on from driver program
    ex: below is the PR_Number

 5. Now goto Pages and Windows, then right click to create a Text in the Main window to display the parameter.

     
6. Text1 has been created. To display the value of the parameter in text1, you need to insert field, to do that   click button with Plus sign (+)

  7. Enter the field name between the ‘&’ (Ampersand) as shown below. Then click continue
  8. All words highlighted by black in text, it means this a variable as shown below


   
 9. Save and Activate the Smart Form.
 10.  Test run the Smart Form by clicking on Execute


   11. Enter Value in PR_Number then click Execute
    12. The Result




Monday 10 September 2012

SAP TUTORIAL! A STEP BY STEP for FRESHER

This is a step by step and easy to follow guide that will help you start your career in SAP. but for now! this is under development. :)