Create vendor using BAPI

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.



Protected by Copyscape Web Copyright Checker


Change directory entry or development of any development like program, function module ,forms ,sap scripts etc.
  1. Go to tcode Se03
  2. 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
  3. Double click on the package to get the next screen
  4. 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


Protected by Copyscape Web Copyright Checker

Transaction code for table maintenance


Transaction code for table maintenance

  1. Create any table go to se11


  1. Go to the maintenance generator  utilities-->table maintenance or  (SE56)


  1. 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)

           

  1. Go to code SE93 give the tcode for the table maintenance generator ZEMPLOYEE_TCODE


  1. press enter go to the next screen fill the values as follows:

    Tcode SM30 (maintenance generator), View name = table name,  Update = X

  1. execute the tcode




Protected by Copyscape Web Copyright Checker

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 local
l

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
Protected by Copyscape Web Copyright Checker

























/*Newer Posts*/ Older Posts Home