Steps for badi ?
Please let me know the step for the creation of the badi and How to identify the badi which are implemented in the particular transaction.
Check these links..
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
New to enhancements
creation of table in ecc6
for Function module exits
New to ABAP Enhancements
For menu Exits and screen exit
USER EXIT
Search through www.enips.com.
You can find lot of material there.
BADI's
http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
http://support.sas.com/rnd/papers/sugi30/SAP.ppt
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
http://members.aol.com/_ht_a/skarkada/sap/
http://www.ct-software.com/reportpool_frame.htm
http://www.saphelp.com/SAP_Technical.htm
http://www.kabai.com/abaps/q.htm
http://www.guidancetech.com/people/holland/sap/abap/
http://www.planetsap.com/download_abap_programs.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
/people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
/people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
User Exits
http://www.erpgenie.com/sap/abap/code/abap26.htm
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sapgenie.com/abap/code/abap26.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
http://www.easymarketplace.de/userexit.php
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sappoint.com/abap/userexit.pdfUser-Exit
TO find all BADI's
Follow the below steps to find out what all BADI's are called when you press any button in any transaction.
1) Goto se24 (Display class cl_exithandler)
2) Double click on the method GET_INSTANCE.
3) Put a break point at Line no.25 (CASE sy-subrc).
Now
4) Execute SAP standard transaction
5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
7) This way you will find all the BADIs called on click of any button in any transaction.
Regards,
Balaji Reddy G
***Rewards if answers are helpful
Similar Messages
-
Deactivate steps for BADI Enh Implemenatation
Hi friends,
I've assinged and activated one BADI enhancement implementation object for MIGO under se19. Now, I want deactivate the same...i've tried it in se19 screen by Ctrl + F4 (Edit implementation->new badi enhanc impl text) but its not working out....
Pls reply and provide the steps how to solve it.
thanks & regards
sankar.Hi,
The process varies from SAP old versions and ECC 6. 0. Which system are you using.
If it is older version that ECC 6.0 then,
take transaction SE19. Give your BADI Implementation name. On the same screen above the Implementation name there is a deactivate button. You may use that.
Hope this helps.
Regards,
Renjith Michael. -
Problem in Creation of implementaton for Badi FAGL_DERIVE_SEGMENT
Hello Abapers,
I am facing problem when creating a implementaion for BADI FAGL_DERIVE_SEGMENT,
FAGL_DERIVE_PSEGMENT,
The error is when i am going to save any of BADI implemenations, Specify filter types..
The badi is very important to meet my requirement.So How to solve this problem.
Waiting for your favourable replies.
Thanks & Regards
Maruthi.KHi,
Implementing a Filter-Dependent Business Add-In
If you want to use a filter-dependent Business Add-In, you will need an implementation for each relevant filter value. Multiple filter values may use the same implementation, however.
When implementing a filter-dependent Business Add-In, proceed as follows:
Create an implementation by referring to the corresponding Business Add-In definition.
Enter a characteristic filter value for the implementation, or choose F4 and select a value from the list of possible entries displayed. In principle, it is possible to define multiple characteristic filter values for each implementation.
Use the Class Editor to fill the interface method.
In the string conversion example, you would make the following entries for each country:
BRD:
translate parameter to upper case.
Ireland:
translate parameter to lower case.
Italy:
translate ...
Repeat steps 1-3 for each implementation that you create.
Activate your implementations.
Now, whenever you execute the report program described above, different country-specific implementations are executed.
Regards -
Function module (FM) to read budget to be used in n-step approval badi
We have SRM 5.0 with ECC 6.0 (extended classic). For capital expenses we are going to have budget check in SRM based of account assignment internal orders in R/3. In shopping cart line item approval workflow, it is required to read the budget available for that internal order and compare with shopping cart value...what is the function module to read budget assigned to that internal order, that will used in n-step approval badi at every step??
Thanks,
Kim r.Hi
<b>Please try the related SRM function modules, which will definitely help -></b>
B470_BUDGET_READ
BBP_PD_USER_BUDGET_AMOUNTSPENT
BBP_PD_USER_BUDGET_CHECK
BBP_PD_USER_BUDGET_DEFINED_GET
BBP_PD_USER_BUDGET_SAVE
BBP_PD_USER_BUDGET_SCVALUE_GET
BBP_REQREQ_CHECK_BUDGET
META_BUDGET_READ
META_BUDGET_READ Function module in turn calls RFC-enabled 'BBP_BUDGET_READ' Function module in the R/3 or the ECC System.
Hope this will definitely help.
Do let me know.
Regards
- Atul -
Problem in N-STEP Approval BADI
Hi ,
I'am new to Workflows,I need your guidance in finishing
the Item_level Approval BADI.
I'am working on N-Step Approval Badi(Item Level Implementation)
I have pasted the code here.There will be Multiple levels(Max 15 Levels) of Approvals.
When a new Shopping cart is created this BADI is not working.
Can you please suggest me, am i missing something in the code.?.I'am also new to ABAP but i hope i'am managing with it.
Please Help me out.
METHOD if_ex_bbp_wfl_approv_badi~get_remaing_approvers .
Interface parameters:
OBJECT_ID TYPE CRMT_OBJECT_ID "Import
OBJECT_TYPE TYPE CRMT_SUBOBJECT_CATEGORY "Import
GUID TYPE BBP_GUID_32 "Import
ACTUAL_APPROVAL_INDEX TYPE SWH_NUMC10 "Import
APPROVAL_HISTORY_TABLE TYPE BBP_WFL_APPROVAL_HISTORY_BADI "Import
APPROVAL_TABLE TYPE BBPT_WFL_APPROVAL_TABLE_BADI "Export
NO_FURTHER_APPROVAL_NEEDED TYPE BOOLEAN "Export
INCLUDE <swfcntn01>. "Workflow
DATA:
ls_header TYPE bbp_pds_sc_header_d,
lt_item TYPE TABLE OF bbp_pds_sc_item_d,
ls_item TYPE bbp_pds_sc_item_d,
lt_account TYPE TABLE OF bbp_pds_acc,
ls_account TYPE bbp_pds_acc,
lt_partner TYPE TABLE OF bbp_pds_partner,
ls_partner TYPE bbp_pds_partner,
lc_partner TYPE but000-partner,
lt_result_tab TYPE TABLE OF swhactor,
ls_result_tab TYPE swhactor,
lc_cost_ctr TYPE bbp_pds_acc-cost_ctr,
lv_co_code TYPE bbp_pds_sc_item_d-be_co_code,
lt_prodcat TYPE TABLE OF zmwfprodcat,
ls_prodcat TYPE zmwfprodcat,
Inserted by Rakesh Palle for Assets DR # D0001055958
lt_asset TYPE TABLE OF zmwfprodcat,
lt_final TYPE TABLE OF zmwfprodcat,
ls_asset TYPE zmwfprodcat,
ls_final TYPE zmwfprodcat,
lv_asset TYPE c,
End of insertion DR # D0001055958
Being D0001055958
lt_order TYPE TABLE OF zmwfprodcat,
ls_order TYPE zmwfprodcat,
lv_order TYPE c,
End D0001055958
lt_sets TYPE TABLE OF zmwf_sets,
ls_sets TYPE zmwf_sets,
lt_roles TYPE TABLE OF str_agr2,
ls_roles TYPE str_agr2,
lt_users TYPE TABLE OF str_agrs,
ls_users TYPE str_agrs,
lc_persnumber TYPE usr21-persnumber,
ls_approver TYPE bbp_wfl_approval_table_badi,
ls_approver_check TYPE bbp_wfl_approval_table_badi,
lv_guid TYPE crmd_orderadm_h-guid,
lv_call_value1 TYPE bbp_wfl_app_property,
ev_app_obj_guid TYPE bbp_guid_32,
lc_sobid TYPE req_name,
lc_objid TYPE hrp1001-objid,
lc_objid_s type hrp1001-objid,
lt_appr_def TYPE TABLE OF bbpt_wfl_lia_def,
lt_approver TYPE TABLE OF bbp_wfl_approval_table_badi,
lc_slapprover TYPE hrv1222a-low,
li_limit TYPE bbp_limit,
li_last_level TYPE zmwfprodcat-appr_level,
li_stepno TYPE i,
lv_index type i,
lc_stepno(3) TYPE c,
lc_first(1) TYPE c,
lc_pass(1) TYPE c,
li_last_setid LIKE ls_prodcat-setid,
c_cost_centre TYPE bbp_wfl_app_criterion VALUE 'COST_CTR',
li_stop_amt LIKE ls_header-total_value,
li_set_amt LIKE li_stop_amt,
lt_cost_ctr type table of zitem_costctr,
ls_cost_ctr type zitem_costctr,
ls_approval_item TYPE bbps_wfl_item_approval,
lt_approval_items TYPE TABLE OF bbps_wfl_item_approval.
Business objects type (local constants)
CONSTANTS:
c_shop TYPE crmt_subobject_category VALUE 'BUS2121',
c_aprover_value TYPE zmwf_setty VALUE 'AV',
c_comp_value TYPE zmwf_setty VALUE 'CD',
**// Begin D0001055958
c_ac_value TYPE zmwf_setty VALUE 'AC',
c_ad_value TYPE zmwf_setty VALUE 'AD',
c_oc_value TYPE zmwf_setty VALUE 'OC',
c_od_value TYPE zmwf_setty VALUE 'OD',
**// End D0001055958
c_yes(1) TYPE c VALUE 'X',
c_no(1) TYPE c VALUE ' ',
c_requisitioner TYPE bbp_pds_partner-partner_fct VALUE '00000016'.
**********begin of change D0001034557
TYPES : BEGIN OF ty_swhactor,
otype TYPE otype,
objid TYPE actorid,
END OF ty_swhactor.
DATA : lt_user TYPE TABLE OF ty_swhactor,
ls_user TYPE ty_swhactor,
v_guid TYPE BBP_GUID_32.
***********end of change D0001034557
***********begin of change D0001043944
DATA : lt_prodcat2 TYPE TABLE OF zmwfprodcat,
new_approval_table TYPE BBPT_WFL_APPROVAL_TABLE_BADI,
wa_new_approval_table TYPE BBP_WFL_APPROVAL_TABLE_BADI.
***********end of change D0001043944
*****Change by suresh D0001110145
data ws_set type zmwf_sets.
data cd_flag.
*****End of change by suresh D0001110145
DEFINE set_approval_level.
if lc_first = 'X' or
ls_prodcat-appr_level gt li_last_level or
ls_prodcat-setid ne li_last_setid. "D0001055958
add 1 to li_stepno.
clear lc_first.
endif.
ls_approver-approval_index = li_stepno.
END-OF-DEFINITION.
DEFINE set_approval_level_2.
if lc_first = 'X' or
ls_asset-appr_level gt li_last_level.
add 1 to li_stepno.
clear lc_first.
endif.
ls_approver-approval_index = li_stepno.
END-OF-DEFINITION.
DEFINE set_approval_description.
write li_stepno to lc_stepno left-justified.
concatenate 'Approval step #'
lc_stepno
into ls_approver-approval_description.
END-OF-DEFINITION.
CLEAR: lt_prodcat[], ls_approver.
CLEAR: li_stepno.
break-point.
map input data to local data
map char32 to raw16
MOVE guid TO lv_guid.
break-point.
IF object_type = c_shop.
get the details of the shopping cart
CALL FUNCTION 'BBP_PD_SC_GETDETAIL'
EXPORTING
i_guid = lv_guid
i_object_id = object_id
IMPORTING
e_header = ls_header
TABLES
e_item = lt_item
e_account = lt_account
e_partner = lt_partner.
Modification for Item-Level Approval-Start
select * from zitem_costctr
into table lt_cost_ctr.
lv_index = actual_approval_index.
if lv_index = 0.
lv_index = 1.
endif.
LI_STOP_AMT = LS_HEADER-TOTAL_VALUE.
Modification for Item-Level Approval-End
LOOP AT lt_item INTO ls_item.
Modification for Item-Level Approval-Start
if actual_approval_index le lv_index.
ls_approval_item-approval_item_guid = ls_item-guid.
READ TABLE lt_account INTO ls_account
WITH KEY p_guid = ls_item-guid.
if sy-subrc is initial.
READ TABLE LT_COST_CTR INTO LS_COST_CTR
WITH KEY COST_CENTER_NO = LS_ACCOUNT-COST_CTR.
LV_CALL_VALUE1 = LS_ACCOUNT-COST_CTR.
CALL FUNCTION 'BBP_WFL_DIN_APP_OBJ_GET'
EXPORTING
sc_guid = ls_header-guid
criterion1 = 'COST_CTR'
value1 = lv_call_value1
iv_item_value = ls_item-value
iv_add_value = 'X'
IMPORTING
approval_obj_guid = ev_app_obj_guid
TABLES
item_app_obj = item_approval_obj.
ls_approval_item-approval_object_guid = ev_app_obj_guid.
LS_APPROVAL_ITEM-APPROVAL_ITEM_GUID = LS_ITEM-GUID.
APPEND ls_approval_item TO lt_approval_items.
approval_table[] = lt_approver[].
Get the Object ID of user
SELECT SINGLE objid
INTO lc_objid
FROM hrp1001
WHERE sobid = ls_cost_ctr-CC_MANAGER_ID
AND otype = 'CP'
AND plvar = '01'.
IF sy-subrc NE 0.
EXIT.
ENDIF.
SELECT SINGLE objid
INTO lc_objid_s
FROM hrp1001
WHERE sobid = lc_objid
AND otype = 'S'
AND plvar = '01'.
IF sy-subrc NE 0.
EXIT.
ENDIF.
Get the Approver's Limit
CLEAR li_limit.
lc_sobid = ls_cost_ctr-CC_MANAGER_ID.
CALL FUNCTION 'BBP_BW_GET_APPR_LIMIT'
EXPORTING
i_userid = lc_sobid
IMPORTING
e_appr_limit = li_limit.
IF LI_LIMIT > LS_ITEM-VALUE. "LI_STOP_AMT.
SELECT SINGLE persnumber
INTO lc_persnumber
FROM usr21
WHERE bname = lc_sobid.
IF sy-subrc IS INITIAL.
SELECT name_text
INTO ls_approver-name
FROM adrp
UP TO 1 ROWS
WHERE persnumber = lc_persnumber
AND date_from LE sy-datum
AND date_to GE sy-datum.
ENDSELECT.
ENDIF.
ADD 1 TO li_stepno.
ls_approver-approval_index = li_stepno.
ls_approver-approval_agent = lc_SOBID.
set_approval_description.
APPEND ls_approver TO approval_table.
CLEAR ls_approver.
ELSE.
do.
Get the Object ID of user
CALL FUNCTION 'BBP_WFL_DIN_APP_OBJ_GET'
EXPORTING
sc_guid = ls_header-guid
criterion1 = 'COST_CTR'
value1 = lv_call_value1
iv_item_value = ls_item-value
iv_add_value = 'X'
IMPORTING
approval_obj_guid = ev_app_obj_guid
TABLES
item_app_obj = item_approval_obj.
ls_approval_item-approval_object_guid = ev_app_obj_guid.
LS_APPROVAL_ITEM-APPROVAL_ITEM_GUID = LS_ITEM-GUID.
APPEND ls_approval_item TO lt_approval_items.
CLEAR : LC_OBJID,LC_OBJID_S.
SELECT SINGLE objid
INTO lc_objid
FROM hrp1001
WHERE sobid = ls_cost_ctr-CC_MANAGER_ID
AND otype = 'CP'
AND plvar = '01'.
IF sy-subrc NE 0.
EXIT.
ENDIF.
SELECT SINGLE objid
INTO lc_objid_s
FROM hrp1001
WHERE sobid = lc_objid
AND otype = 'S'
AND plvar = '01'.
IF sy-subrc NE 0.
EXIT.
ENDIF.
Get the SL Approver
SELECT SINGLE low
INTO lc_slapprover
FROM hrv1222a
WHERE plvar = '01'
AND otype = 'S'
AND objid = lc_objid_s
AND begda LE sy-datum
AND endda GE sy-datum
AND attrib = 'SLAPPROVER'.
IF sy-subrc NE 0.
EXIT.
ENDIF.
Get the Approver's Limit
CLEAR li_limit.
lc_sobid = lc_slapprover+2.
CALL FUNCTION 'BBP_BW_GET_APPR_LIMIT'
EXPORTING
i_userid = lc_sobid
IMPORTING
e_appr_limit = li_limit.
SUBTRACT '.01' FROM li_limit. "D0001093425
IF li_limit GT 0.
Add the approver to the list
SELECT SINGLE persnumber
INTO lc_persnumber
FROM usr21
WHERE bname = lc_sobid.
IF sy-subrc IS INITIAL.
SELECT name_text
INTO ls_approver-name
FROM adrp
UP TO 1 ROWS
WHERE persnumber = lc_persnumber
AND date_from LE sy-datum
AND date_to GE sy-datum.
ENDSELECT.
ENDIF.
ADD 1 TO li_stepno.
ls_approver-approval_index = li_stepno.
ls_approver-approval_agent = lc_slapprover.
set_approval_description.
APPEND ls_approver TO approval_table.
CLEAR ls_approver.
ENDIF.
If the limit is greater than the stop amount, exit - we are finished
IF li_limit GE li_stop_amt.
EXIT.
ENDIF.
ENDDO.
endif.
endif.
ENDIF.
endloop.
data : cc type BBP_STEP_DESCRIPTION value 'CoCentre_Approvers'.
if actual_approval_index le lv_index.
CALL FUNCTION 'BBP_WFL_DIN_FILL_APPROVER'
EXPORTING
iv_approval_index = lv_index
ic_step_description = cc
iv_criterion1 = 'COST_CTR'
TABLES
it_approval_def = lt_appr_def
it_approval_object = item_approval_obj
et_approver = lt_approver
it_approval_items = lt_approval_items.
endif.
item_approval_table[] = lt_approval_items[].
approval_table[] = lt_approver[].
endif.
Modification for Item-Level Approval-End
Use the product category to link to the Product Category Approval
table and use the corresponding approver(s) for the total shopping
cart value.
SELECT *
INTO TABLE lt_prodcat
FROM zmwfprodcat.
WHERE catid LIKE ls_item-category_id.
IF sy-subrc IS INITIAL.
****begin of change D0001034557
***//Buyer to be the first approver
MOVE lv_guid TO v_guid.
READ TABLE lt_account INTO ls_account
WITH KEY p_guid = ls_item-guid.
****Begin of change by suresh for adding codition for buyer determination
****for company codes 7000 and greater D0001110145
clear cd_flag.
select single * into ws_set
from ZMWF_SETS
where setid = 'FCD1'.
if ( ls_item-be_co_code GE ws_set-val_low and
ls_item-be_co_code LE ws_set-val_high ).
cd_flag = 'X'.
endif.
IF ( ls_item-itm_type = 'LIMI' OR
ls_item-product_type = '02' OR
ls_account-acc_cat = 'AS' ) AND
cd_flag is initial.
*****end of changes by suresh D0001110145
Begin of changes by Suresh-EBDK902401
Added the Object Type and Object ID
CALL FUNCTION 'BBP_PDH_WFL_GET_PURCHASER_LIST'
EXPORTING
IV_GUID = v_guid
IV_OBJECT_TYPE = 'BUS2121'
IV_OBJECT_ID = OBJECT_ID
IV_GET_FIRST_PURCH_FROM_GROUP = 'X'
TABLES
ET_USER = lt_user.
***End of changes by Suresh-EBDK902401
LOOP AT lt_user INTO ls_user.
LOOP AT lt_prodcat INTO ls_prodcat.
IF NOT ls_prodcat-bname IS INITIAL.
CONCATENATE 'US' ls_user-objid INTO
ls_approver-approval_agent.
READ TABLE approval_table INTO ls_approver_check
WITH KEY approval_agent =
*ls_approver-approval_agent
IF SY-SUBRC NE 0.
set_approval_level.
set_approval_description.
ls_approver-name = ls_approver-approval_agent.
APPEND ls_approver TO approval_table.
CLEAR ls_approver-name.
ENDIF.
ENDIF.
CLEAR ls_prodcat.
ENDLOOP.
CLEAR ls_user.
ENDLOOP.
ENDIF.
CLEAR ls_account.
****end of change D0001034557
****begin of change D0001043944
**//Special Approvers to be right after the buyer
IF NOT ls_item-z_spl_approval IS INITIAL.
SELECT * INTO TABLE lt_prodcat2
FROM zmwfprodcat
WHERE setid = ls_item-z_spl_approval.
SORT lt_prodcat2 BY catid appr_level.
LOOP AT lt_prodcat2 INTO ls_prodcat.
IF NOT ls_prodcat-bname IS INITIAL.
CONCATENATE 'US' ls_prodcat-bname INTO
ls_approver-approval_agent.
READ TABLE approval_table INTO ls_approver_check
WITH KEY approval_agent = ls_approver-approval_agent.
IF SY-SUBRC NE 0.
set_approval_level.
set_approval_description.
ls_approver-name = ls_approver-approval_agent.
APPEND ls_approver TO approval_table.
CLEAR ls_approver-name.
li_last_level = ls_prodcat-appr_level.
li_last_setid = ls_prodcat-setid.
ENDIF.
ENDIF.
CLEAR: ls_prodcat,ls_approver_check.
ENDLOOP.
ENDIF.
****end of change D0001043944
LOOP AT lt_prodcat INTO ls_prodcat.
IF NOT ls_item-category_id CP ls_prodcat-catid.
DELETE TABLE lt_prodcat FROM ls_prodcat.
ENDIF.
ENDLOOP.
Inserted by Rakesh Palle for Assets DR # D0001055958
LOOP AT lt_prodcat INTO ls_asset WHERE setid = 'AS01'.
APPEND ls_asset TO lt_asset.
ENDLOOP.
Begin D0001055958
LOOP AT lt_prodcat INTO ls_order WHERE setid = 'OR01'.
APPEND ls_order TO lt_order.
ENDLOOP.
End D0001055958
DELETE lt_prodcat WHERE setid = 'AS01' OR setid = 'OR01'.
"D0001055958
End of insertion DR # D0001055958
SORT lt_prodcat BY catid setid appr_level ASCENDING.
lc_first = 'X'.
SELECT *
INTO TABLE lt_sets
FROM zmwf_sets
FOR ALL ENTRIES IN lt_prodcat
WHERE setid = lt_prodcat-setid.
SORT lt_prodcat BY catid setid appr_level ASCENDING.
lc_first = 'X'.
LOOP AT lt_prodcat INTO ls_prodcat.
Check the set data
IF NOT ls_prodcat-setid IS INITIAL.
READ TABLE lt_account INTO ls_account
WITH KEY p_guid = ls_item-guid.
***// Changed by Rakesh Palle to get ACC_STR & COST OBJ
***// if cost ctr is initial DR # D0001055958
IF ls_account-cost_ctr IS INITIAL.
IF ls_account-acc_str IS INITIAL.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = ls_account-cost_obj
IMPORTING
output = lc_cost_ctr.
ELSE.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = ls_account-acc_str
IMPORTING
output = lc_cost_ctr.
ENDIF.
ELSE.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = ls_account-cost_ctr
IMPORTING
output = lc_cost_ctr.
ENDIF.
***// End of insertion DR # D0001055958
Check for valid Cost Center (set type = space)
lc_pass = c_no.
LOOP AT lt_sets INTO ls_sets
WHERE setid = ls_prodcat-setid
AND setty = space.
IF ls_sets-val_low = lc_cost_ctr OR
( ls_sets-val_low LE lc_cost_ctr AND
ls_sets-val_high GE lc_cost_ctr ).
lc_pass = c_yes.
EXIT.
ENDIF.
ENDLOOP.
IF sy-subrc IS INITIAL AND
lc_pass = c_no.
CONTINUE.
ENDIF.
***// Inserted by Rakesh Palle for Company code verification
Check for valid Company Code (set type = CC)
LOOP AT lt_sets INTO ls_sets
WHERE setid = ls_prodcat-setid
AND setty = c_comp_value.
IF ls_sets-val_low = ls_item-be_co_code OR
( ls_sets-val_low LE ls_item-be_co_code AND
ls_sets-val_high GE ls_item-be_co_code ).
lc_pass = c_yes.
EXIT.
ENDIF.
ENDLOOP.
IF sy-subrc IS INITIAL AND
lc_pass = c_no.
CONTINUE.
ENDIF.
***// End of Insertion for Company code verification
***// Inserted by Rakesh Palle for Asset Company code verification
Check for valid Asset Company Code (set type = AD)
DR # D0001055958
IF lv_asset = 'X'.
LOOP AT lt_sets INTO ls_sets
WHERE setid = ls_prodcat-setid
AND setty = c_ad_value.
IF ls_sets-val_low = ls_item-be_co_code OR
( ls_sets-val_low LE ls_item-be_co_code AND
ls_sets-val_high GE ls_item-be_co_code ).
lc_pass = c_yes.
EXIT.
ENDIF.
ENDLOOP.
IF sy-subrc IS INITIAL AND
lc_pass = c_no.
CONTINUE.
ENDIF.
***// End of Asset Company code verification
***// Check for valid Cost Center (set type = AC)
LOOP AT lt_sets INTO ls_sets
WHERE setid = ls_prodcat-setid
AND setty = c_ac_value.
IF ls_sets-val_low = lc_cost_ctr OR
( ls_sets-val_low LE lc_cost_ctr AND
ls_sets-val_high GE lc_cost_ctr ).
lc_pass = c_yes.
EXIT.
ENDIF.
ENDLOOP.
IF sy-subrc IS INITIAL AND
lc_pass = c_no.
CONTINUE.
ENDIF.
ENDIF.
***// End of Asset Cost Center
***// Inserted by Rakesh Palle for Order Company code verification
Check for valid Order Company Code (set type = OD)
IF lv_order = 'X'.
LOOP AT lt_sets INTO ls_sets
WHERE setid = ls_prodcat-setid
AND setty = c_od_value.
IF ls_sets-val_low = ls_item-be_co_code OR
( ls_sets-val_low LE ls_item-be_co_code AND
ls_sets-val_high GE ls_item-be_co_code ).
lc_pass = c_yes.
EXIT.
ENDIF.
ENDLOOP.
IF sy-subrc IS INITIAL AND
lc_pass = c_no.
CONTINUE.
ENDIF.
***// End of Order Company code verification
***// Check for valid Order Cost Center (set type = OC)
LOOP AT lt_sets INTO ls_sets
WHERE setid = ls_prodcat-setid
AND setty = c_oc_value.
IF ls_sets-val_low = lc_cost_ctr OR
( ls_sets-val_low LE lc_cost_ctr AND
ls_sets-val_high GE lc_cost_ctr ).
lc_pass = c_yes.
EXIT.
ENDIF.
ENDLOOP.
IF sy-subrc IS INITIAL AND
lc_pass = c_no.
CONTINUE.
ENDIF.
ENDIF.
***// End of Order Cost Center
***// DR # D0001055958
Check for SL Approver Value
LOOP AT lt_sets INTO ls_sets
WHERE setid = ls_prodcat-setid
AND setty = c_aprover_value.
IF NOT ls_sets-val_low CN '1234567890 .'.
TRANSLATE ls_sets-val_low USING ', '.
CONDENSE ls_sets-val_low NO-GAPS.
li_set_amt = ls_sets-val_low.
IF ls_header-total_value LT li_set_amt AND
li_set_amt GT li_stop_amt.
li_stop_amt = li_set_amt.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
CHECK ls_prodcat-val_from LE ls_header-total_value
AND ls_prodcat-val_to GE ls_header-total_value.
Begin D0001055958
IF lc_pass = c_no.
CONTINUE.
ENDIF.
End D0001055958
Handle Approver Name - Explicit
IF NOT ls_prodcat-bname IS INITIAL.
CONCATENATE 'US' ls_prodcat-bname INTO
ls_approver-approval_agent.
READ TABLE approval_table INTO ls_approver_check
WITH KEY approval_agent = ls_approver-approval_agent.
IF sy-subrc NE 0.
set_approval_level.
set_approval_description.
ls_approver-name = ls_prodcat-name_text.
APPEND ls_approver TO approval_table.
CLEAR ls_approver-name.
li_last_level = ls_prodcat-appr_level.
li_last_setid = ls_prodcat-setid. "D0001055958
ENDIF.
ENDIF.
Handle Approver Names - Derive from Role
IF NOT ls_prodcat-agr_name IS INITIAL.
ls_roles-agr_name = ls_prodcat-agr_name.
APPEND ls_roles TO lt_roles.
CALL FUNCTION 'BBP_READ_USERS_OF_ROLES'
TABLES
roles = lt_roles
users_of_roles = lt_users
EXCEPTIONS
no_users_available = 1
OTHERS = 2.
IF sy-subrc IS INITIAL.
LOOP AT lt_users INTO ls_users.
SELECT SINGLE persnumber
INTO lc_persnumber
FROM usr21
WHERE bname = ls_users-uname.
IF sy-subrc IS INITIAL.
SELECT name_text
INTO ls_approver-name
FROM adrp
UP TO 1 ROWS
WHERE persnumber = lc_persnumber
AND date_from LE sy-datum
AND date_to GE sy-datum.
ENDSELECT.
ENDIF.
CONCATENATE 'US' ls_users-uname INTO
ls_approver-approval_agent.
READ TABLE approval_table INTO ls_approver_check
WITH KEY approval_agent = ls_approver-approval_agent.
IF sy-subrc NE 0.
set_approval_level.
set_approval_description.
APPEND ls_approver TO approval_table.
CLEAR ls_approver-name.
li_last_level = ls_prodcat-appr_level.
li_last_setid = ls_prodcat-setid. "D0001055958
ENDIF.
ENDLOOP.
ENDIF.
REFRESH: lt_roles, lt_users.
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
Add the SL approvers
CLEAR lc_sobid.
Get the requisioner - in case the cart is created 'on behalf of'
READ TABLE lt_partner INTO ls_partner
WITH KEY partner_fct = c_requisitioner.
IF sy-subrc IS INITIAL.
SELECT SINGLE partner INTO lc_partner
FROM but000
WHERE partner = ls_partner-partner_id.
CALL FUNCTION 'RH_STRUC_GET'
EXPORTING
act_otype = 'BP'
act_objid = lc_partner
act_wegid = 'BP_US'
TABLES
result_tab = lt_result_tab
EXCEPTIONS
no_plvar_found = 1
no_entry_found = 2
OTHERS = 3.
READ TABLE lt_result_tab INTO ls_result_tab WITH KEY otype = 'US'.
lc_sobid = ls_result_tab-objid.
ENDIF.
If the above code failed for any reason use the Created By user as the
requisioner
IF lc_sobid IS INITIAL.
lc_sobid = ls_header-created_by.
ENDIF.
Set the stop amount to the total value of the cart
IF li_stop_amt IS INITIAL.
li_stop_amt = ls_header-total_value.
ENDIF.
DO.
Get the Object ID of user
SELECT SINGLE objid
INTO lc_objid
FROM hrp1001
WHERE sobid = lc_sobid
AND otype = 'S'
AND plvar = '01'.
IF sy-subrc NE 0.
EXIT.
ENDIF.
Get the SL Approver
SELECT SINGLE low
INTO lc_slapprover
FROM hrv1222a
WHERE plvar = '01'
AND otype = 'S'
AND objid = lc_objid
AND begda LE sy-datum
AND endda GE sy-datum
AND attrib = 'SLAPPROVER'.
IF sy-subrc NE 0.
EXIT.
ENDIF.
**break-point.
Get the Approver's Limit
CLEAR li_limit.
lc_sobid = lc_slapprover+2.
CALL FUNCTION 'BBP_BW_GET_APPR_LIMIT'
EXPORTING
i_userid = lc_sobid
IMPORTING
e_appr_limit = li_limit.
SUBTRACT '.01' FROM li_limit. "D0001093425
IF li_limit GT 0.
Add the approver to the list
SELECT SINGLE persnumber
INTO lc_persnumber
FROM usr21
WHERE bname = lc_sobid.
IF sy-subrc IS INITIAL.
SELECT name_text
INTO ls_approver-name
FROM adrp
UP TO 1 ROWS
WHERE persnumber = lc_persnumber
AND date_from LE sy-datum
AND date_to GE sy-datum.
ENDSELECT.
ENDIF.
ADD 1 TO li_stepno.
ls_approver-approval_index = li_stepno.
ls_approver-approval_agent = lc_slapprover.
set_approval_description.
APPEND ls_approver TO approval_table.
CLEAR ls_approver.
ENDIF.
If the limit is greater than the stop amount, exit - we are finished
IF li_limit GE li_stop_amt.
EXIT.
ENDIF.
ENDDO.
ENDIF.
Inserted by Rakesh Palle for Order
DR # D0001055958
IF lv_order = 'X'.
lc_first = 'X'.
LOOP AT lt_order INTO ls_order.
CHECK ls_order-val_from LE ls_header-total_value
AND ls_order-val_to GE ls_header-total_value.
Handle Approver Name - Explicit
IF NOT ls_order-bname IS INITIAL.
CONCATENATE 'US' ls_order-bname INTO
ls_approver-approval_agent.
READ TABLE approval_table INTO ls_approver_check
WITH KEY approval_agent = ls_approver-approval_agent.
IF sy-subrc NE 0.
set_approval_level_2.
set_approval_description.
ls_approver-name = ls_order-name_text.
APPEND ls_approver TO approval_table.
CLEAR ls_approver-name.
li_last_level = ls_order-appr_level.
ENDIF.
ENDIF.
Handle Approver Names - Derive from Role
IF NOT ls_order-agr_name IS INITIAL.
ls_roles-agr_name = ls_order-agr_name.
APPEND ls_roles TO lt_roles.
CALL FUNCTION 'BBP_READ_USERS_OF_ROLES'
TABLES
roles = lt_roles
users_of_roles = lt_users
EXCEPTIONS
no_users_available = 1
OTHERS = 2.
IF sy-subrc IS INITIAL.
LOOP AT lt_users INTO ls_users.
SELECT SINGLE persnumber
INTO lc_persnumber
FROM usr21
WHERE bname = ls_users-uname.
IF sy-subrc IS INITIAL.
SELECT name_text
INTO ls_approver-name
FROM adrp
UP TO 1 ROWS
WHERE persnumber = lc_persnumber
AND date_from LE sy-datum
AND date_to GE sy-datum.
ENDSELECT.
ENDIF.
CONCATENATE 'US' ls_users-uname INTO
ls_approver-approval_agent.
READ TABLE approval_table INTO ls_approver_checkhi,
let me know the following things
1) how many levels are working ? is the workitem send to the second approver (or) not?
is the issue occuring with the first approver?
2) are you using the index value correctly in your approval badi? please check out.
Badi is called during each approval stage
3) what is the value of approval_state in the workflow container ?
if the value is 5 --> it will go to the next approver.
4) have you been able to debug --> the approval process --> this will enable you to find root cause of the issue.
check out FM
BBP_WFL_DIN_APPR_CONTAINER_SET --> this is the point where the approval update happens --> when the approver approves (or) rejects the cart. -
How to create a documentation for Badi?
Hi All,
how to create a documentation for Badi?
This step is requested in the OSS note, but not explained how to perform it...
Thanks and regards,
Alex.Hi All,
solved. created in SE18
I noticed, that it is also possible to create such documentation in SE61 *** well,
Document Class Implementation Guide chapter (SIMG)
Chapter SIMG
Also the translation of documentation could be done in such way:
SE63--->Translation--->ABAP OBjects--->Transport object:
R3TR DSYS SIMGbadi_name_goes_here
Regards,
Alex -
Hi,
Kindly Let me know the Filter Defined for Implementaing
BADI.
Hoping for your Response...!!!Hi,
BADI may be implemented depending on a specific filter value( example COUNTRY-SPECIFIC VERSIONS: distinct implementations of the BADI can be created for the COUNTRY).
a filter type must be entered when defining your enhancement ( a country or industry, for example).
all methods created in the enhancement's interface have filter value 'FLT_VAL' as their import parameter.
the method then selects the active implemetation based on the data provided in the filter value.
for seting the filter value, you must enable the option FILTER DEPEND and provide FILTER TYPE in the ATTRIBUTES of the BADI defination.
SE18 is the transaction code for creating BADI.
Filter dependence for BADI definitions means that each interface method automatically has an importing parameter FLT_VAL assigned ot it. This parameter must be filled with a filter value as current parameter when it is called.
A BADI definition should be marked as filter-dependent whenever the characteristic of the BADI implementation should match the characteristics of the filter type - that is, whenever the implementation of different filter values should be different or should only exist at all for certain filter values.
Typical filter types are line of industry or country.
The BADI is filter dependent. In the first tab of your BADI implementation (SE19), the lower half will contain filter details.
STEPS FOR SETTING UP A FILTER
just go to se18 and give ur BADI name..
then Select 'Attributes' Tab ,there u will find option Filter-Dependent in window named "type"..
check tht filter dependent checkbox and give ur data element/field in the Filter type field say u can give 'MOLGA' ..save and come back..
now go to se19 and implement this BADi and there u can give filter values for filed MOLGA..
Reward Points if found helpfull..
Cheers,
Chandra Sekhar. -
N Step Approval BADI - BBP_WFL_APPROV_BADI
We have implemented this BADI and are having problems with the agent determination.
When creating and ordering the cart the approval preview shows the correct approval agents.
When clicking the 'Agents' button within the workflow log via SWI1, the message 'No selected agents' (Message no. WL795) is shown.
The buffers have been refreshed via SWU_OBUF and the indexes and organisational environment have been refreshed.
Has anyone had this problem before, and if so what steps did you have to undertake to cure it ?
Thanks
KeithHi
<b>Please specify the SRM version(Support packs) details in next reply.</b>
<u>Meanwhile, please go through the following SAP OSS Notes, which will definitely help -></u>
Note 798295 BADI workflow: SRM 3.0 upgrade to 4.0 approver list -> main
Note 748655 SC APPROVAL GRAPHIC PREVIEW NOT CORRECT FOR BADI APPROVERS
Note 843636 PO BADI WORKFLOW does not assign correct approvers
Note 861147 BAdI workflow: Adjusting step name to runtime
Note 883207 BBP_WFL_DIN_APPR_BY_RULE_GET: if BAdI not implemented
Note 713567 SRM-EBP-WFL: Limit is ignored in WS14000109
Note 923463 BAdI n-step approval - Container inconsistent for 1st step
Note 901068 BAdI Workflows: Enhancement of Note 896556
Note 898768 BADI Workflow: Determining current approvers
Note 861147 BAdI workflow: Adjusting step name to runtime
Note 688724 BADI workflow: Problems with substitute
Note 788584 BADI Workflow: empty WI_ID in approver table
Note 780021 BADI Workflow: subsequent approvers after rejection
Do let me know.
Regards
- Atul -
Hi,
Is there any search help to get a list of program names. That can be used in the BADI's.
Or else atleast provide me some steps for creating a search help using search help exit.
Thanks & Regards
Santhosh
Message was edited by:
Santhosh DSHere is how to create search helps..
http://www.sapdevelopment.co.uk/dictionary/shelp/shelphome.htm
you can create new search help for displaying program names.. it is easy... -
Ipod not recognized by itunes...next step for nike+
when i started to set up the nike+ i downloaded the new version of itunes then later downloaded the new software update for the ipod nano...now when i plug the ipod into the computer using the usb cord, i get a message that says this...The software required for communicating with the iPod is not installed correctly. Please reinstall iTunes to install the iPod's software....i have attempted to install, reinstall, remove and install again, itunes and the updated software... yet it still will not recognize the ipod when it is plugged in. How do i get the ipod to be recognized and then what is my next step for using the Nike+ shoes?
ipod nanoI can't even get the tab that says Nike+ when I am trying to sync up. I can't get it to even go on to the Itunes. I can purchase music no problem
-
Step for Publish a development created with Webdynpro for Java
Good Afternoon.
I am new in this of publish development in the portal.
We created a development with Webdynpro java using RFC. We want know what are the step for publish this development in the portal ESS?
The development work fine. But i don't know how to publish this in the portal.
What configurations i have that do In the part of ECC and in the part of portal.?.
Can someone help me?
Kind Regards-Hi,
When i have that do configurations for the following paths:
Employee Self-Service>General Settings>Homepage for Self-Services-->Resources
Employee Self-Service>General Settings>Homepage for Self-Services-->Headers and Area Group Pages
Employee Self-Service>General Settings>Homepage for Self-Services-->Areas
Employee Self-Service>General Settings>Homepage for Self-Services-->Subareas
Employee Self-Service>General Settings>Homepage for Self-Services-->Services.
Kind Regards, -
So I think im finally ready to make the plundge to the 2.6 kernel.
So I need some help. Ive only compiled a kernel a few times, and I never changed many settings.
So could someone give a step by step for it (being sure to list any arch-specific quirks)? I would greatly appreciate it.
Also, I hear theres a patch that lets you run the Official Nvidia drivers with the 2.6 kerne, has anyone gone through this? I really have no idea how to go about doing this,as i've only ever installed the .run file.
Any help would be appreciated.
Also, its possible to switch between the 2.4 and 2.6 kernel, right? (obviously with a reboot).
Lastly, Is a new release of the 2.6 due out anytime soon? I dont want to download and compile this just to find a new version comes out.You have to use module-init-tools which supercedes modutils. I made a PKGBUILD for it for my local system simply so I could uninstall it easier if I wanted. However, you still need the old modutils as well.
Here is my hack to get module-init-tools working:
1. Use the PKGBUILD below to compile and install module-init-tools.
2. For each of modprobe, lsmod, rmmod, depmod, and modinfo from modutils, rename those to modprobe.old, lsmod.old, etc. To find where these binaries are, use "pacman -Ql modutils".
3. Create symbolic links from the binaries that modutils used to provide to the new binaries that module-init-tools provides. Again, use "pacman -Ql module-init-tools" to figure out where the new ones are.
Example - modutils provides /sbin/lsmod. Rename that to /sbin/lsmod.old. module-init-tools provides /usr/bin/lsmod. Create a symbolic link as follows:
[root@limbo root]# ln -s /usr/bin/lsmod /sbin/lsmod
If you aren't 100% sure what i am trying to say here, don't try any of it, or you will bork your system. Also, this is more of a hack, and that's why I didn't upload the package to incoming. I only made the PKGBUILD to keep track of where everything was going.
Anyway... hope this helps you on your way to:
[john@limbo john]$ uname -r
2.6.0-test5
[john@limbo john]$
PKGBUILD
pkgname=module-init-tools
pkgver=0.9.13
pkgdesc=""
url="http://www.kernel.org/pub/linux/kernel/people/rusty/modules/"
depends=()
conflicts=()
backup=()
install=
source=(http://www.kernel.org/pub/linux/kernel/people/rusty/modules/$pkgname-$pkgver.tar.gz)
build() {
cd $startdir/src/$pkgname-$pkgver
./configure
make || return 1
make prefix=$startdir/pkg/usr install -
Steps for Email integration in sap crm system?
Hi Experts,
Please guide me the steps for email integration so that the emails are in syn with the WEB UI Interaction centre.Settings at the backend GUI are already defined.Actually in my case the Development system is not integrated with Email sync in WEB UI.I need to test the email functionality in Development system as steps I have followed are as below:
1)TCode :- SBWP,then I have created a mail & send it to email address which is defined in the SO28
2)TCode :- SOST,there I have clicked on my test mail,select it & click on execute button,green light appears & shows the message that the email is successfully forwarded.
Now when I open Web Ui,select my business role & then I go to inbox in the Navigation Bar,select email & click on search.Then it does not appear anything & shows search result zero.
Kindly suggest me the steps so that I can see my test email in Dev system Web Ui business role .
Thanks
Warm Regards
Vineet JoshiHi Prashant,
Thanks for your response. I want steps to configure communication channels like e-mail & fax to facilitate receipt of invoice from vendors, sending of PO to vendors, cheques, payment advices to name a few. Please let me know the detailed configuration steps for the same and also do we need to instal any tool to facilitate this process.
Thanks
Best regards,
Bhaskar
Edited by: Bhaskar Umashankar on Nov 25, 2008 4:08 AM
Edited by: Bhaskar Umashankar on Nov 25, 2008 4:08 AM -
When I try to setup my new iPad air, I go through all the steps for the iCloud sign-in and choosing security questions and what not. But after I hit the agree to the terms and conditions... It says Apple ID could not be created because of a server error. Have no clue what to do... I've restarted the iPad and get the same message. But my internet works just fine.
1. Turn router off for 30 seconds and on again
2. Settings>General>Reset>Reset Network Settings -
I have problem with syncing in itunes and it stared since i installed new version of itunes.it stuck in backup step for houres.what shud i do?
So, in iTunes, when you look at the shuffle's content (in the sidebar) and click on the playlist under the shuffle, over to the right, the songs are in your desired order, correct? Where do you look, or what do you do, that indicates the playlists are in alphabetical order? Are you saying that when you play the songs while using the shuffle, they play in alphabetical order?
If so, when you listen to the songs on the shuffle, are you using the playlist, or are you using the All Songs list? If you are in the default All Songs list, with the shuffle's power switch set to play-in-order (the middle position), the songs play alphabetically, I believe.
The 3rd gen shuffle uses VoiceOver. If you are in the All Songs list, you need to use VoiceOver to switch to the playlist (see manual linked below for details). When you are in the playlist (with the shuffle's power switch set to play-in-order), then the songs should play in playlist order.
There are more details in the manual for the 3rd gen shuffle, which is online here
http://manuals.info.apple.com/en_US/iPod_shuffle_3rdGen_UG.pdf
See page 22 for the section about setting up and using VoiceOver. The part about switching playlists starts on page 23 (Using the Playlist Menu).
Maybe you are looking for
-
I opened Firefox on a freshly rebooted PC, went to click on a mailto: link in a webpage and get the error message that Thunderbird is already running. Thunderbird is not running, but will not open for sending email. The cause could have something to
-
How to protect web application from piracy?
I m looking for solution to protect Web application from piracy. I want my application run on web server for which it is built, & it musn't run on any other web server. how can i protect my web application from piracy?. Our .Net applications we prote
-
Mail signatures no longer linked to accounts
I've had Mavericks installed since it first came out & most gliches have cleared up. After the last recent upgrade (10.9.2), none of my signatures in Mail are linked any longer to my email accounts. The signatures are still listed (thank goodness) in
-
'Disk is full' error when saving to windows share
All, one of my user is using Macbook pro with office for mac 2011 installed on it. when ever user modifies a file from network share and tries to re-save them he gets the error saying 'disk is full'. the network share has around 800GB of free space a
-
I got "activateFailure" when I tried to activate zoneset after I added new zonings. it says "fabricChange".