Sunday, April 28, 2013

BAPI for Vendor address

To get company details address call function BAPI_VENDOR_GETDETAIL.

Data:
  vendor TYPE   bapivendor_04,
  companydetail  TYPE  bapivendor_05,
  return1  TYPE  bapiret1,
  v_return LIKE TABLE OF bapiret2.

 CALL FUNCTION 'BAPI_VENDOR_GETDETAIL'
      EXPORTING
        vendorno      = wa_final_temp-lifnr
        companycode   = p_bukrs
      IMPORTING
        generaldetail = generaldetail
        companydetail = companydetail
        return        = return1
      TABLES
        bankdetail    = v_return.

Thanks

Sunday, April 21, 2013

BAPI for Company address

To get company details address call function BAPI_COMPANYCODE_GETDETAIL. It will return company  address including Telephone, Fax no.

CALL FUNCTION 'BAPI_COMPANYCODE_GETDETAIL'
  EXPORTING
    companycodeid             = p_bukrs
 IMPORTING
   COMPANYCODE_DETAIL        = wa_DETAIL
   COMPANYCODE_ADDRESS       = wa_ADDRESS
   RETURN                    = RETURN.

Thanks
Rizvi

Tuesday, April 16, 2013

Control the default Reverse Date at VL09

I want Reversal Date and Actual GI Date will be same Reverse Goods Movement (VL09). So I am going to set a popup message and checking for the date when user will click on Reverse button. 

Copy the standard program RVV50L09 to ZRVV50L09.
Go to line WHEN 'WAST' . (for Reverse button)
Add this code.

      IF xlikpukwa-wadat_ist NE  xlikpukwa-stdat.
        MESSAGE i000(fb) WITH 'Reversal Date & Actual GI Date should be the same.' .
        CLEAR sy-ucomm.
        sy-ucomm = 'MABL'.
        is_selfield-exit = gc_noout.

        PERFORM check_list_selection.

      ENDIF.

Thursday, April 11, 2013

How to create PDF from Smartforms?

Many times end users  come to me and ask to create PDF from Smartforms. So I am going to share a small tips to create PDF from smartforms.

  • Go to your smartforms tcode.
  • Run the report and click print preview.
  • Now write tcode PDF!







  • A popup window will come.
  • Just save it to your local disk.

Thanks
Rizvi

Tuesday, April 9, 2013

How to upload new pictures and logos?

Do the following steps:

Go to TCODE: SE78.













Expand Graphics (for BMP)

















Double click on Bitmap








Enter name of the picture








Select Graphic -->  import
Mention file location



















Go to Print preview (to check logo is aploaded or not)

Enjoy :)

Thanks
Rizvi

Monday, April 8, 2013

How to disable print option in smartforms?


To disable print option change parameter ssfcompop-tdnoprint. User will only able to view the samrtforms.
DATA: t_ssfcompop TYPE ssfcompop.

       t_ssfcompop-tdnoprint = 'X'.
       t_ssfcompop-tdnoarch  = ' '.
       t_ssfcompop-tdnoprev = ' ' .

  CALL FUNCTION fm_name
    EXPORTING
      output_options     = t_ssfcompop
      p_bukrs            = p_bukrs
      p_kunnr            = p_kunnr
    TABLES
      it_final           = it_final
      so_budat           = so_budat
    EXCEPTIONS
      formatting_error   = 1
      internal_error     = 2
      send_error         = 3
      user_canceled      = 4
      OTHERS             = 5.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
Thanks
Rizvi :)

Sunday, April 7, 2013

How to add search help to selection parameter?

I was looking for help to add search help in selection parameter. But I didn't find any simple one to understand for a newbie like me. So I am going to explain for the beginner how to add search help in selection parameter.

In my previous post I have shown how to create search help. Now I will use that one.

DATA:  it_return TYPE STANDARD TABLE OF ddshretval,
            wa_return LIKE LINE OF it_return.

PARAMETERS: p_traid TYPE likp-traid.

Go to AT SELECTION-SCREEN.
Change the line  AT SELECTION-SCREEN ON VALUE-REQUEST FOR  p_traid.

Now call FM F4IF_FIELD_VALUE_REQUEST

  CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
      tabname                   = 'likp'
      fieldname                 = 'TRAID'
      searchhelp                = 'ZTRAID'
   TABLES
     return_tab                =  it_return[]
   EXCEPTIONS
     field_not_found           = 1
     no_help_for_field        = 2
     inconsistent_help         = 3
     no_values_found          = 4
     OTHERS                    = 5          .
  IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.



Read it_return table data and assign to the parameter.

IF sy-subrc EQ 0.
    READ TABLE it_return  INTO wa_return INDEX 1.
    p_traid = wa_return-fieldval.
  ENDIF. 

Now it will work :).

Thanks
Rizvi :)

Saturday, April 6, 2013

Step by step process to create elementary search help

I want show how to create a search help for Transport ID with ship to party name, delivery number and delivery date.
  • Go to SE11.
  • Select Search Help.





  • Provide the search help name start with Z or Y. Select the create button.








  • Select Elementary search help
  • Write the Short description.
  • In search help parameter write TRAID KUNNR VBELN LFDAT 











Save it, Check It and Activate it. :)

Thanks
Rizvi :)


Tuesday, April 2, 2013

Who I am ?

This is Rizvi Saleheen a SAP professional in Bangaldesh.I have 3 SAP project experience including 1 full cycle implementation as an ABAP consultant.

Summary

• Overall 5 years of experience as an IT professional including 1 full life cycle SAP implementations and 3 support projects.
• Extensive experience in developing and supporting SAP ABAP solutions ECC-6.
• Proficient with ABAP Workbench tools (ABAP Dictionary, ABAP Editor, Smart-Forms, ALV report and SAP Script).
• Exposure in SAP modules including SD, MM, PP, FICO, HCM, PM and QM.
• Clear concept on database updates with Open SQL, Oracle native SQL, and Pl/SQL.
• Having good working knowledge on Oracle database 9i, 10g and Oracle Developer Suite 6i, 10g.
• Experience in complete life cycle of project development (SDLC), including Planning, Programming, Analysis/Design, Testing, Documentation, Database Designing, End-user training and Support. Conversant with Agile practices, Scrum approaches.

Find my profile in Linkedin
UA-40152711-1