Create vendor using BAPI CALL FUNCTION 'VENDOR_INSERT' "in update task EXPORTING i_lfa1 = i_lfa1 "Vendor Master: General data:- address,country etc i_lfb1 = i_lfb1 "Vendor Master: Company data accounting information i_lfm1 = i_lfm1 "Vendor Master: Purchasing Data (Purchasing organization) TABLES t_xlfas = t_xlfas t_xlfb5 = t_xlfb5 t_xlfbk = t_xlfbk "Bank details t_xlfza = t_xlfza T_XKNVK = T_XKNVK . IF sy-subrc = 0. COMMIT WORK. *Vendor is created ELSE. * Error while creating vendor ENDIF.
Create vendor using BAPI
Change directory entry or development of any development like program, function module ,forms ,sap scripts etc.
- Go to tcode Se03
- Click on the change object directory entries next screen will come .Here we can change development class for any sap object like program ,function group, data element etc…For example change dev class of program check the check box as shown below give program name and execute
- Double click on the package to get the next screen
- Now here click the change button to change the development class shown below Similarly for forms go to se03 follow the same procedure only change the entries as shown below Enter ‘FORM’ press enter ,give the form name and check the check box as shown below
Transaction code for table maintenance
Transaction code for table maintenance




- Create any table go to se11
- Go to the maintenance generator utilities-->table maintenance or (SE56)
- Generate the table maintenance, create a function group in se80 ,(if the function group is not maintained ,we cannot create maintenance screen in SM30 as the module for the maintenance generator going to be saved in the function group)
- Go to code SE93 give the tcode for the table maintenance generator ZEMPLOYEE_TCODE
- press enter go to the next screen fill the values as follows:
Tcode SM30 (maintenance generator), View name = table name, Update = X
- execute the tcode
web service for a (RFC)FM
Craete a function module and use it as a web service.
In this example we have created a web service for a (RFC)FM .
Step 1.Go -->se 37 -->create a (RFC) function module

Import parameter
Export parameter

Code for the function module
DATA : L_T_0105 TYPE STANDARD TABLE OF P0105,
WA_0105 TYPE P0105.
CALL FUNCTION 'HR_READ_SUBTYPE'
EXPORTING
* TCLAS = 'A'
PERNR = PERNR
INFTY = '0105'
SUBTY = '0001'
* SPRPS = '*'
BEGDA = SY-DATUM
ENDDA = SY-DATUM
TABLES
INFTY_TAB = L_T_0105[]
EXCEPTIONS
INFTY_NOT_FOUND = 1
INVALID_INPUT = 2
OTHERS = 3
.
IF SY-SUBRC <> 0.
ENDIF.
SORT L_T_0105 BY ENDDA DESCENDING.
READ TABLE L_T_0105 INTO WA_0105 INDEX 1.
IF SY-SUBRC = 0 .
WRITE WA_0105-USRID TO E_NAME.
CLEAR WA_0105.
ENDIF.




Save it to locall

Now go to the tcode soamanager the below screen will appear in web browser
Go to the single service administration


We will get the list of web services now choose zTest_webservice (motioned while creating the web services)

This will open WSDL save as XML

Now go to the click display binding WSDL URL

Example: http://:8000/sap/bc/srt/wsdl/bndg_E13C4BD379AE8AF1BF850026554B371E/wsdl11/ allinone/ws_policy/document?sap-client=011
Go the EP portal and run the web services using above link
In this example we have created a web service for a (RFC)FM .
Step 1.Go -->se 37 -->create a (RFC) function module
Import parameter
Export parameter
Code for the function module
DATA : L_T_0105 TYPE STANDARD TABLE OF P0105,
WA_0105 TYPE P0105.
CALL FUNCTION 'HR_READ_SUBTYPE'
EXPORTING
* TCLAS = 'A'
PERNR = PERNR
INFTY = '0105'
SUBTY = '0001'
* SPRPS = '*'
BEGDA = SY-DATUM
ENDDA = SY-DATUM
TABLES
INFTY_TAB = L_T_0105[]
EXCEPTIONS
INFTY_NOT_FOUND = 1
INVALID_INPUT = 2
OTHERS = 3
.
IF SY-SUBRC <> 0.
ENDIF.
SORT L_T_0105 BY ENDDA DESCENDING.
READ TABLE L_T_0105 INTO WA_0105 INDEX 1.
IF SY-SUBRC = 0 .
WRITE WA_0105-USRID TO E_NAME.
CLEAR WA_0105.
ENDIF.
Save it to locall
Now go to the tcode soamanager the below screen will appear in web browser
Go to the single service administration
We will get the list of web services now choose zTest_webservice (motioned while creating the web services)
This will open WSDL save as XML
Now go to the click display binding WSDL URL
Example: http://
Go the EP portal and run the web services using above link
Subscribe to:
Posts (Atom)