FBCJ PROBLEM IN 2 STEPS
HI
I AM POSTING 1 PAYMENT DOCUMENT THROUGH FBCJ CASH JOURNAL.AT THE TIME ENTRY IS POSTING BUT ITS COMING AS A DOUBLE
ERRO1:
EX:
ACCOUNTIING DOCUMENT:1300000051
ACCOUNTIING DOCUMENT:1300000053
PROFIT CENTERE DOC:00000025
PROFIT CENTERE DOC:00000027
CONTROLLING DOCUMTNT:2366669
CONTROLLING DOCUMTNT:2366670
BUT IT IS SUPPOSE TO COME AS A ONCE EACH, INSTAD OF TWICE.
NOTE FOR ERRO 1 (FOR ERROR1,:IN FBL3N REPORT WE R GETTING ENTRY 2 TIMES BECAUSE ITS GENERATIGN 2 TIMES IN FBCJ)
AND ERROR 2 IS:
ACTULAY THE FBCJ PROCESS IS OPENING BALANCE +RECEIPTS-PAYMENTS=CLOSING BALANCE,
HERE CLOSING BALANCE DIFFERENCE IS ALSO COMING IS AS FOLLOWS.
FOR EX OPENING BALANCE IS 10000
RECEIPTS ARE 2000
PAYMENTS ARE 1000
MEANS SUPPOSE TO SHOW AS 10000+2000-1000=11000
HERE ITS NOT SHOWING AS 11000.BUT ITS SHOWING AS 10700,THROUGH Z PROGAME
T CODE IS ZFIFBCJ_R.300 DIFFERENCE MY USER POSTED 1 REVERSAL DOCUMENT.EVEN THAT 300
FIGURE ALSO SHOWING AS PAYMENT BUT NOT IN CASH JOURNAL BALANCE DIRECTLY
(NOTE FOR ERROR2:IN FBCJ BALANCE IS RIGHT BUT ZFIFBCJ_R TCODE BALANCE IS ERONG)
LET EM KNOW POSSIBLE REASONS
REGARDS
SUMATHI
Dear all and anupan,
i am facing the problem with cash journal entry.lts generating entry twice.for every entry suppose to generate 1accounting doc,1controlllign doc,1profit centre doc
but for my cash journal generating 2accounting doc,2controlllign doc,2profit centre doc
accounting doc:130000035
accounting doc 130000037
controllign doc:001000025
controlling doc:001000027
profit centere doc:90000025
profit centere doc:900000027
pls provide possible sulutions
sumathi
accenture
Similar Messages
-
Problem creating job steps variants
Hi Gurus!
I have a problem with job steps creation.
In my program I need to copy the exist job with some condition accords to job steps variants.
But when I create the new job and it steps and variants in SM37, I can not see the variants names, only number.
For example in template that I am copying it looks like that:
No. Program name/command Prog. type Spool list Parameters User Lang.
1 RMCVNEUA ABAP BW_TEMPLATE aaa EN
But in job that I create it is:
Program name/command Prog. type Spool list Parameters User Lang.
RMCVNEUA ABAP &0000000000271 ddd EN
How can I create steps with variant names instead of numbers/indexes? BW_TEMPLATE instead of &0000000000271.
My code:
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = lv_jobname
sdlstrtdt = lv_date
sdlstrttm = lv_time
IMPORTING
jobcount = lv_jobcount
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
SUBMIT (ps_tbtcp-progname) VIA JOB pv_jobname NUMBER pv_jobcount
USING SELECTION-SET ls_cat-variant
AND RETURN.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = lv_jobcount
jobname = lv_jobname
direct_start = lv_imm_run
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
invalid_target = 8
OTHERS = 9
Edited by: Dani_K on Oct 27, 2010 4:35 PMNo any suggestions?
-
Problem with One-Step Approval of Contracts ws14000088
Hi, I have a problem with the One-Step Approval of Contracts ws14000088, the workflow can't find approverat the task TS14007969
regards
DayanaHi
<b>Please go through these links, which will definitely help -></b>
Which SRM version are you using ?
Re: Problem with one step approval contract workflow
Re: No Approver(s) Found
Reminders for work item
Re: How to add a new field to the notification mail
Do let me know.
Regards
- Atul -
I am using RoboHelp X5. It seems I can't get RoboPDF to
start. Neither can I uninstall it to reinstall it. I want to be
able to directly generate PDF without going through Word first.
I have the RoboHelp 6 upgrade, but I wanted to finish my
current project before attempting the upgrade. Makes sense, right?
But I heard generating PDF is much easier in 6 than in X5. Is this
true? How difficult is the upgrade?
Craigquote:
Originally posted by:
Peter Grainge
The reason I asked was that some people have reported they
cannot uninstall it because it does not appear in Add / Remove.
When advised where it is, it then transpires that they had not seen
it. Hence asking the what was happening. OK?
If you want to remove manually that's up to you. If RH6 finds
some trace, it is likely to refuse to install.
Adobe are aware that there were problems with 1 Step so you
might do better to get in touch with Tech Support.
Oh good. I have already stumped the unofficial experts. Sigh.
While RoboHelp functions just fine, RoboPDF has never functioned.
And to make things even better, while RoboPDF installed, it will
not run. Why? Because when I checked the shortcut's properties, and
looked at the execution path, the path was incorrect. The path
pointed to where the exe file was not. I have never seen that. It
pointed to an empty folder. I searched for the exe file, found it,
and corrected the path. Still no go. I think I will have to visit
the guys over at Adobe, unless you folks have a brilliant idea. -
Problem with Decision step execution
Hi Friends,
I have a problem with executing a decision step. When I execute the decision using SAP_WAPI_DECISION_COMPLETE the workitem goes to completed state and doesn't do anything after that. But when I execute the same step from SBWP the subsequent steps gets executed and rest all works fine. I am sure there is a problem with Decision step . The task I am using is TS00008267. Is there a replacement for this step or is there something to do with feature ADVANCE WITH DIALOG or agents .I have agents in place. Please help.
-Rajeshwhen I write the decision using FM , the WI is set to completed but
I am not sending any status to workflow container from the task container
. Is this the issue for workflow not able to continue !
There is no necessity of sending any result back to the workitem container. In the decision step container , it contains a standard container element WIResult it will populated based, on the decision you took on the workitem (IF it is a Decisionworkitem).
when I execute the FM to write the decision, the task ( generic decision task)
is not getting executed.
Can you pelase let us know what is the return code, th function module is retruning back, once you try to execute the workitem by using the FM, if it is other than zero then can you please let us know what is the message.
, Before trying to execute the workitem can you please check whether the workitem is stored in the standard workitem header table SWWWIHEAD. as the above function module will validate the workitem from the header table..... -
after update from 4.3.3 t0 5.1.1 ipad first
ipad can cannot the itunes..but itunes find the recovery
my problem..selepas step 6 hanya ada restore sahaja,tetapi bila tekan restore ,tertulis,'the ipad'ipad' could not be restore.And unknown error (21)...what it the problemiPad: Basic troubleshooting
http://support.apple.com/kb/TS3274
Update and restore alert messages on iPhone, iPad, and iPod touch
http://www.buybuyla.com/tech/view/012953a0d412000e.shtml
iOS: Resolving update and restore alert messages
http://support.apple.com/kb/TS1275
iPad: Unable to update or restore
http://support.apple.com/kb/ht4097
iTunes: Specific update-and-restore error messages and advanced troubleshooting
http://support.apple.com/kb/TS3694
Cheers, Tom -
Problem in using Step into and Step Over button in Test Stand user interface development.
hi,
I am developing operator interface in VC++
currently I am facing a problem, I have created Teststand UI button controls dynamically on the dialog, I have assigned the buttons for break, Resume, Break all, Resume all, Step into and step over.
Break, Besume, Break all , Resume all buttons are working fine, the Step into and step over buttons are enabling if I break the execution, but after breaking the execution when I click the Step into button I expect that the current step will be executed and, breaks at the next statement, but when I click the Step Into button It is behaving like resume button, I mean the executioin is going on till the end of the sequence file, it is not breaking at the next statement,
Is my Step into button working the way it is supposed to be?, it is the same case with my step over button alsoI am connecting the TSUI button control to the execution view mgr in the CTestExecDlg:nDisplayExecutionApplicationMgr(LPDISPATCH exec, ExecutionDisplayReasons reason)
message funciton , and nothing I am doing nothing else, this is my code statement how I am connecting the button to the execution view manager.
mExecutionTab.m_pControlPtrArray[0].mExecutionViewMgr->ConnectCommand(mExecutionTab.MiscControls.m_StepInto,CommandKind_StepInto,0,CommandConnection_NoOptions);
mExecutionTab.m_pControlPtrArray[0].mExecutionViewMgr->ConnectCommand(mExecutionTab.MiscControls.m_StepOver,CommandKind_StepOver,0,CommandConnection_NoOptions);
Am I missing anything wrong? Can anyone please help me out.Al B,
I'm not the original author of this post, but I have encountered a similar problem. My C# application has implemented the following "debug" buttons that work just fine: Run All, Pause, Continue, Stop. But my Step Over button causes the Sequence to run to completion. When the user clicks on the StepOver button, only one line is executed:
this.axExecutionViewMgr.Execution.StepOver();
but it behaves like its calling
this.axExecutionViewMgr.ResumeExecution();
Can you offer any insight into this issue? -
Problem in lsmw. step: display field mapping and conversion rule
hi,
The IDOC structure to be mapped is missing in step 5[lsmw using IDOC]. Hence target structures are missing in auto gnerated conversion program.
As a result the the step Convert Data step is failing.[Converted data cant be generated]
I am using standard BAPI charcteristics as my Basic Type.
Anyone having idea why the target structure is missing??..The problem is solved....The field mapping was missing coz i didnt assign the target structure properly....
-
Problem with Switch Step in BPM
Hi,
I am using Switch Step in BPM, to check a condition. I created following condition (App_Resp./p1:App_Resp_MT/Response = true). The mentioned is correct and it should succeed but it is failing. Its going thru OTHERWISE branch. Can anybody help me to solve this out?
Thanks,
Yaseen.HI,
I checked in the workflow the xml file generated contains value 'true'.
Its not multiline and looks xpath reflects for the changes made.
I think it may be problem that needs to deploy any OSS notes.
Please throw some idea.
Thanks,
Yaseen. -
Problems in SEND STEP with transport confirmation
Hi everyone.
I have a send step in a BPM. This send step has the 'transport confirmation' switch activated. If destiny system (SAP R3) is down, XI will retry to send the message.
Problem is that XI has been waiting for a long time (because of R3 backups) and now, the interface is stoped on that step, waiting for the transport confirmation that isn't going to arrive.
I would like to now the way to 'restart' this step because XI must notice that R3 is up again and is not sending the message.
Regards.Hi,
I am not sure about restarting but you can put deadline branch and after sometime atleast kill the bpm so that bpm resources are free.
Thanks,
TUhin -
PC issue.--Problem with index step.
Hi
Today our two chains are failed at loading ..
source is R/3 & update mode is delta.
Iam corrected the error and loaded the delta again useing repeat option,in cube request showing repeat of last delta.In monitor screen overall status is green but Total status showing is RED.But in cube it is showing green.loaded fine
For one chain when iam click on repeat on loading step ,it is loaded data fine into cube ,but unfortunately deleting index turned into yellow looking like execuating .This index step avalible on top of the loading step. before index step executed fine, load step is failed.when iam clck on repeat it is went to executing index step. I donot no why..but it is still showing yellow...
Now my question is, weather chains run tommrow with out any problem with deltas..? because chain still showing red colour.
Thanks
BkHello Krishna Rao
I will explain clearly we have one PC haveing say 5 steps.1 2 3 4 5.
Third step is Deleting Index and Fourth step is Loading into cube.
Today our chain is failed at fourth step.Iam corrected the error and clicked on the repeat ..loading into cube done fine
But strangely in went to Third step to execute. that is still in yellow colour .But total chain status is showing red.
And also in batch monitor job was finished successfully.But in chain index step showing still yellow..
I think now iam clear for you...
Bk -
WMS Problem with 2 step picking
Hello Expert,
In WMS I activate the 2 step picking. I have created a group of delivery and make a trasfer order with the total quantity of the deliveries. I create the trasfer order on 2 picking phase and I trasfer the material on storage type 200 with movement type 850. I confirm the trasfer order and I see the stock on storage type 200. The problem is that i cannot create the individual trasfer order related each single delivery. I tried with VL37 wave pick monitor but I get no output from the program. Any idea on where is my mistake?
Thanks
JosyHi Josy
Sorry I can not answer your question since I met problem when creating TO for the group. Can you tell me which t-code you used to create group? I created the group via VL06P, from the menu - subsequent function - group and then create.(group type K). After that I go to LT0E for the first picking. But when I enter the group number, system notice me the group number is not exist in table T311. Do you know why?
thanks a lot.
Tony -
Problem Inserting Shared Steps.
A user created query to insert steps on the Web Access Client when building a test case. Now the user can´t run any queries and gets the error:
Expecting end of string. The error is caused by «[System.WorkItemType]». Parameter name: wiql
The Query editor is non-functional for inserting shared steps for this user.
This is only effecting the user and the Insert Shared Steps works correctly on MTM, as this is only a problem on the Web Access client.Hi Parks4619,
Thanks for your reply.
Yes, the modifications in Insert shared steps query editor will be remembered in Web Access, but as far as I know after clicked the
Insert shared steps icon, it will only open the INSERT SHARED STEPS dialog, query won’t be executed until the user click the
Run query icon manually in this dialog. You configured the query will be executed automatically after clicked the
Insert shared steps icon to open the INSERT SHARED STEPS dialog? If yes, how did you configure that?
If this issue only happened on this one user, please try to remove it from your TFS Server, and clean the Cache on your TFS Server, then re-add this user back to your TFS Server.
Clean the Cache for TFS 2013 manually(delete the content of the folder only, not the cache folder itself):
Clean the Cache folder on Server machine. The folder path is:
C:\Program Files\Microsoft Team Foundation Server 12.0\Application Tier\Web Services\_tfs_data.
After cleaned, on Server machine, click Start and select
Run… to open the dialog box, then input iisreset.exe and click OK, wait it run completely.
If you can reproduce this issue, please share the detailed reproduce steps here, it will help us provide the better response.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
ITunes Match problem - Stalling at Step 2
Thought I'd give iTunes Match a go. However, the process keeps stalling and erroring at Step 2, trying the match songs with iTunes Store library. It always gets to "101 of 4158 Songs Checked" and no further. Been doing this everytime for about 5 days. Any thoughts before I contact Apple for a subscription refund?
This is a known current problem. Please see this thread for more info: https://discussions.apple.com/thread/6355061?tstart=0
Its very frustrating and it may be that the best alternative is to persue a refund and use another cloud service that doesn't stop working for a week at a time. -
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.
Maybe you are looking for
-
Test Your BlackBerry Phone for any Problems with Special Shortcut
If you own a BlackBerry mobile phone (or plan to buy one), here's a very useful shortcut (or can we say Easter Egg) that enables you to perform a complete health checkup of your BlackBerry hardware. You will be able to test the keys of your BlackBerr
-
I have a file to IDoc scenario in my production XI box (EXP). This scenario sends the IDoc to my productions ECC box (EP1). In SXMB_MONI in EXP the message status is fail because "Unable to convert the sender service BS_SAPPI700_EXD200 to an ALE logi
-
Can anyone help me? When I add this code for creating and Add-to-cart PayPal button to an existing web (code view) in Dream Weaver it works in browser preview but totally freezes up when I click back on the layout tab in Dream Weaver. I have to force
-
Horror Stories about "Self Cracking" Screens
Hi All! I'm planning to upgrade from my Xperia P to a Z1 Compact. While reading up on the phone i came across so many posts about Cracking Screens of the Z series of phones including the Z1 Compact, which I was so interested in getting. Durability
-
não consigo me conectar na itunes store