$(function () { pageContext.i18n.modTalk = 'moderation talk'; pageContext.i18n.replyToComment = 'Reply'; pageContext.i18n.modTalkEmpty = 'moderation talk is empty'; pageContext.url.getModTalk = "/comments/%25ID%25/listModTalk.json"; pageContext.url.possibleCommentRecipients = "/comments/%ID%/possibleRecipients.json"; pageContext.url.commentEdit = '/comments/%25ID%25/edit.html'; pageContext.url.commentView = '/comments/%ID%/view.html'; pageContext.i18n.commentVisibility = { 'full': 'Viewable by all users', 'op': 'Viewable by the original poster', 'mod': 'Viewable by moderators', 'opAndMod': 'Viewable by moderators and the original poster', 'other': 'Advanced visibility', 'dialogTitle': 'Comment visibility', 'selectGroups': 'Visible to groups', 'selectOther': 'Other recipients', 'selectOriginalPoster': 'Original poster', 'selectModerators': 'Moderators', 'selectAssignees': 'Asked to answer users' }; pageContext.i18n.commentMenuLabels = { 'comment-edit': 'comments.menu.edit', 'comment-delete': 'comments.menu.delete', 'comment-convert': 'comments.menu.convert' };pageContext.i18n.answer= { bestAnswer: 'Best Answer', controlBar : { accept: 'Accept', unaccept: 'Unaccept', acceptCommand: 'Accept this answer as correct', cancelAcceptedCommand: 'Remove this answers accepted status' } }; window.croles = { u: false, op: false, m: false, og: false, as: false, ag: false, dc: false, doc: false, eo: false, ea: false }; tools.init({ q: { e: false, ew: false, eo: false, r: false, ro: false, d: false, dow: false, fv: false, c: false, co: false, p: false, tm: false , ms: false, mos: false }, n: { f: false, vf: false, vfo: false, vr: false, vro: false, c: false, co: false, vu: false, vd: false, w: false, wo: false, l: false }, c: { e: false, eo: false, d: false, dow: false, ta: false, tao: false, l: false }, a: { e: false, ew: false, eo: false, d: false, dow: false, a: false, aoq: false, ao: false, tc: false, tco: false, p: false, tm: false }, pc: croles }, { tc: true, nsc: true }); commandUtils.initializeLabels(); }); Skip to Content

Shopping cart get auto approved wrongly

Nov 23, 2016 at 08:22 AM


avatar image

Hello All,

I am facing an issue with the shopping cart auto approve wrongly.

We have created a Z class for the standard class "/SAPSRM/CL_WF_RULE_CONTXT_SC". In this class we have created a method "STEP_TRIGERRED" which Check if a step need to be trigger (BRF).

In the below method when there is not process level find then CATCH is getting triggered and a message.

But the issue is when ever this catch is getting triggered the shopping cart status is getting changed automatically to Approved. It should be in Awaiting Approval status.

Kindly let me know if you have some solution for this issue.

ev_data_missing = 'X'.

IF iv_property IS SUPPLIED.
lv_level-level_seqnr = iv_property.
CALL METHOD /sapsrm/cl_wf_apv_facade=>get_current_process_level
iv_document_guid = iv_document_guid
es_process_level = ls_process_level.

MOVE-CORRESPONDING ls_process_level TO lv_level. "#EC ENHOK

CREATE OBJECT lo_wf_rule
guid = iv_document_guid
level = lv_level.

lv_trigger = lo_wf_rule->get_trig_prop( lv_level-level_seqnr ).

CATCH /sapsrm/cx_wf_not_found.
* No process level available.
MESSAGE w123(/sapsrm/brf) INTO mv_msg.
mo_wf_brf_msg->write_brf_msg( ).
RAISE EXCEPTION TYPE /sapsrm/cx_wf_rule_error.
CATCH zcx_pu_wf_rhodia INTO lx_err_rule.
RAISE EXCEPTION TYPE /sapsrm/cx_wf_rule_error
previous = lx_err_rule.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers