Friday, September 19, 2014

Comparing versions of Business Object

1. Get the Program name of BO -  (Go to SWO1. Enter the BO name; Click Display; Double click on BO name; You will get the Program name of the BO)
2. Go to SE38;  Enter the Program name of BO; Dont click on display; Directly click  "Utilities->Version->Version Managment"
 You will get the versions.

Now you can do the remote comparison with Production version.

But this will show only the differences of methods (ABAP codelines). Other differences like Keyfields, Attributes, Exceptions  you can check manually..

Sunday, August 17, 2014

Workflow version change and activating.

1. Goto PFTC->Provide Template number.

2. Change->GOTO->Workflow Builder->Choose Version->You select the Version.

3. Activate the new version.

Wednesday, August 6, 2014

Copy Varient from one system to another

1. Run Report RSTRANSP.
2. Provide the program name as input.
3. Execute the program and provide the transport request number.


Monday, July 22, 2013

Adding SO10 text to Transport request


When we create or add text in SO10 it will not be added or prompt you add it in a transport request. If you want to add SO10 object in a TR, add it manually.

Give the following details

Program ID = R3TR
Object Type = TEXT
Object Name = TEXT,Text Name,Text ID,Language


SAP Dynamic Action

This Link is very good

http://wiki.sdn.sap.com/wiki/display/Snippets/Dynamic+Action

Monday, December 24, 2012

Function module to get work items in a particular User ID


SAP_WAPI_CREATE_WORKLIST

Pass USER = "user ID"

and get table WORKLIST as output.


Sunday, September 23, 2012

BAPI for assigning object to class CL20N class type 032 (Release Strategy)

CL20N is an enjoy T-code because of that BDC will not work properly.

BAPI to change or create value is BAPI_OBJCL_CREATE this BAPI will not update in table, to get data updated in table we have to use BAPI commit  BAPI_TRANSACTION_COMMIT along with BAPI_OBJCL_CREATE.

Sample code.

REPORT  YTEST_CL20N.
* data
data: lw_object type OBJNUM,
      lc_table type TABELLE,
      lw_class type KLASSE_D,
      lw_cltype type KLASSENART.
*table
data: li_valuesnum  type STANDARD TABLE OF BAPI1003_ALLOC_VALUES_NUM WITH HEADER LINE,
      li_valueschar type STANDARD TABLE OF BAPI1003_ALLOC_VALUES_CHAR WITH HEADER LINE,
      li_valuescurr type STANDARD TABLE OF BAPI1003_ALLOC_VALUES_CURR WITH HEADER LINE,
      li_return     type STANDARD TABLE OF BAPIRET2.
*
concatenate 'SZ' 'A9' into lw_object.
CONDENSE lw_object.
lc_table = 'T16FS'.
lw_class = 'PR_OVERALL_RELEASE'.
lw_cltype = '032'.

* character
li_valueschar-CHARACT = 'PR_DOCUMENT_TYPE'.
li_valueschar-VALUE_CHAR = 'ZI02'.
append li_valueschar.
clear: li_valueschar.

*Currency
li_valuescurr-CHARACT = 'PRVALUE1'.
li_valuescurr-VALUE_FROM = '0'.
li_valuescurr-VALUE_TO = '4999'.
li_valuescurr-CURRENCY_FROM = 'SAR'.
li_valuescurr-CURRENCY_TO = 'SAR'.
APPEND li_valuescurr.
CLEAR: li_valuescurr.

* NUMERIC
li_valuesnum-CHARACT = 'ZEMER_PRIO'.
li_valuesnum-VALUE_FROM = '1'.
append li_valuesnum.
clear: li_valuesnum.

CALL FUNCTION 'BAPI_OBJCL_CREATE'
        EXPORTING
          objectkeynew    = lw_object
          objecttablenew  = lc_table
          classnumnew     = lw_class
          classtypenew    = lw_cltype
        TABLES
          allocvaluesnum  = li_valuesnum
          allocvalueschar = li_valueschar
          allocvaluescurr = li_valuescurr
          return          = li_return.

BREAK-POINT.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
*   WAIT          =
* IMPORTING
*   RETURN        =
          .

Please find CL20N screen