Change Workstatus with BPF step completion using BADI

Hi Experts,
I have a requirement of changing Workstatus as soon as the user clicks on “Submit/Approve/Reject” button from the BPF.
We are trying to implement the same by referring to the thread Automating Work status Change in BPF
Now the thing is, we have written the BADI referring above thread which needs to be pass with some parameters(Owner & Context Members).
Our concern is how to pass active context members to BADI, and how to trigger the same from the Submit/Approve/Reject button in BPF?
Is it a manual invocation through script/DM, or is there any other way?
Since I am new to BPC BADI’s and requirement is urgent, please help………
Thanks in advance
Priyanka Jagtap

Hi Anjan,
I referred to the below link for debug:
Debugging BPC 10 for NetWeaver
Followed following steps:
1. Logged in to BPC client using user X.
2. Went to the page where BPF step needs to be submitted.
3. Logged in to SAP GUI and set a breakpoint in class CL_BPC_REST_RES at line 56 using same user X.
I have created Enhancement Implementation for BADI UJ_BPC_BPF_SUBMIT.
Filters provided are:
APPL_ID = ABC
APPSET_ID = XYZ
DRV_DIM_MEM = 0166
STEP_ORDER = 1.
In "IF_UJ_BPF_SUBMIT_LOGIC_HANDLER~EXECUTE_SUBMIT_LOGIC" method i have written break-point.
When i clicked on SUBMIT, error appears as
I tried with and without filter as mentioned in Re: About bpc aprove badi question.
Please help. I am not able to debug and move ahead.

Similar Messages

  • N-Step workflow using BADI.

    Dear Experts,
    I want to implement N-step workflow using Badi. I have already maintained the data in Z table for approvers and corresponding limits.
    Based on the shopping cart value, cost centre and plant i will pick the approver from the Ztable.
    I would apreciate if you can guide me step by step. I would appreciate if anyone send me the sample code for this.
    Thanks
    Ravi

    Hi,
    Determing the approvers for the SC using Z table would be the simplest method.
    You can store the combination of values(e.g. a/c assignment,plant fields etc) in the Z table and the corresponding approver names as well asl the approval levels (no of approvers) for those combinations.
    E.g. for SC with values between rs.1- rs.100,level approval would be 1 and the approver would be ABC.
    Maintaining Z table will be based on your requirement/fields for determing the approvers.In the BADI ,you will just need to determine the runtime values for the determing fields(e.g. a/c assignment,plant etc) and then fetch the approver names and approval levels from the Z table.
    For determing the runtime values for the determing fields(e.g. a/c assignment,plant etc),in the BADI,at the start,use the FM BBP_PD_SC_GETDETAIL to fetch the SC details such as a.c assignment,plant etc and then acc fetch the approver details from the Z table and pass to the export parameter APPROVAL_TABLE in the badi.For more details,refer the documentation of the badi:
    http://help.sap.com/saphelp_srm50/helpdata/en/58/c14e3c59bfe747e10000000a11402f/frameset.htm
    For sample code of N-Level Approver BADI - BBP_WFL_APPROV_BADI,
    Refer to this link ->
    how to code APPROVAL_ADMINISTRATORS in n-step WF?

  • How to change Vendor text  in shopping cart using BADI/Function module

    Hi
    If any could help me out that i want to change vendor text using BADI/FMs.
    Using  BADI" bbp_catalog_transfer"   i dint find any parameter for vendor text. please let me know if there any idea to resolve the problem

    Hi,
    you should find the vendor text within the BAdi
    BBP_DOC_CHANGE
    Method for shopping carts
    BBP_SC_CHANGE
    Here you could use the Changing Parameter
    CT_LONGTEXT
    The table contains 2 important fields:
    TDID, where you can identify the type of text, in your case this should be ITXT for standard shopping carts (vendor text within positions)
    TDLINE: which contains the text
    You are now able to change the vendor text directly within this BAdi with standard ABAP methods.
    Best regards
    Andreas

  • Confirming TO with 2-step confirmation using L_TO_CONFIRM

    I have been using function module L_TO_CONFIRM in several programs with good results, but now I have a scenario where 2-step confirmation is enabled, which means that the TO is confirmed in two steps (with manual confirmation using LT12 you first confirm the "pick" and then in a second confirmation the "transfer").
    I have not found a way to do this with L_TO_CONFIRM. The documentation (long text for structure LTAP_CONF) talks about many variants, and even mentions 2-step confirmations in connection with TO splitting, but it never explains how to actually perform the 2-step confirmation. Anyone that has any experience with this? Useful answers will of course be rewarded.
    /Leif

    I am interested in configuring the 2-step confirmation, but seem to be missing something in config.  Can you give me the required config items for this functionality?  Thanks.

  • Issue with Virtual Key Figures Using BADI

    Hi,
    We are populating values for a few virtual key figures in a query over a multiprovider through a BADI implementation(RSR_OLAP_BADI). On execution the VKF fields appear blank in the report.
    We tried debugging the methods of BADI by adding Break-Points in specific points. On doing so, we found that the values are properly updated in the 'Field-Symbols' used in the Compute method, but the same values do not appear in the report result and the fields are blank.
    Kindly provide any pointers or suggestions.
    Thanks.

    First check in <b>Technical Information</b> in <b>RSRT</b> , whether the
    <b>Virtual Char/Key</b> Fig is<b> Y</b> or <b>N</b>.

  • Want a complete migration guide to upgrade 11.1.0.7 to 11.2.0.3 database using DBUA..We are implementing R12.1.3 version and then have to migrate the default 11gR1 database to 11.2.0.3 version. Please help with some step by step docs

    Want a complete migration guide to upgrade 11.1.0.7 to 11.2.0.3 database using DBUA..We are implementing R12.1.3 version and then have to migrate the default 11gR1 database to 11.2.0.3 version. Please help with some step by step docs

    Upgrade to 11.2.0.3 -- Interoperability Notes Oracle EBS R12 with Oracle Database 11gR2 (11.2.0.3) (Doc ID 1585578.1)
    Upgrade to 11.2.0.4 (latest 11gR2 patchset certified with R12) -- Interoperability Notes EBS 12.0 and 12.1 with Database 11gR2 (Doc ID 1058763.1)
    Thanks,
    Hussein

  • Customizing the email message sent from BPF after step completion

    Is it possible to customize the email message sent by BPF after a step completion.I would like to customize the email sent by the SAP BPC once a BPF step has been completed. Is it possible to add some dynamic parameters related to the BPF as part of the email message, for example : Cost Centre, Account, Finance or any dimension related to the BPF
    Currently it sends out a message as given below
    [Approve Data] step of [Test BPF 1] has been completed by dom\bpfuser
    Where 
    [Test BPF 1]         => Name of the BPF
    [Approve Data]  => A Step in the BPF
                    dom\bpfuser    => Domain\ User name
    Note :In the APPSET Parameter  BPFSTEP_COMPLETE_MSG  we tried to add a custom message but it seems to add to display along with the existing message and treats the variables as plain text.

    I used the Note 2 for over 6 months before it started happening. About the same time, my husband's iPhone started sending text to email messages at attachments to I blamed it on his phone. I went into his settings and couldn't find any reason and I checked a multitude of websites and saw MANY people having the same issue with no resolution. I also tried deleting all text history and contact info from both of our phones but it continued to happen until I reset my phone to factory defaults.
    2 weeks ago I purchased the Note 3 and text messages from my daughter started coming as [email protected] Again, I tried purging all contact information and text message history from both phones with no success. I waited until my daughter upgraded to a Galaxy S4 Mini. I reset my phone to factory at the same time I was setting her phone up and that has fixed the problem again.
    My main concern now is that this bug will again randomly rear it's ugly head and I'll again have to reset my phone to factory, losing all my settings and taking days to customize it the way I want it again.
    Thank you for ANY help you can give.

  • How to reverse/change SRM PO with status "transaction completed"

    We use Extended Classic scenario in our company.      There is a PO has outstanding G/R balance,   but user accidently hit the button "complete"on this PO  in SRM ,   in result the PO has been completed with status "transaction completed".    And nothing can be performed on this PO.   
    G/R balance is out there and now it has financial impact as it blocked the funding thru internal order. 
    Anyone have idea how we can resolve this problem.    Can we reverse/change the PO status?   Please note G/R canu2019t be entered in ECC as restricted.  
    Thanks,
    Frieda

    I think it was CRM_JEST. But the way to easily select the correct entries:
    1. Go to transaction BBP_PD
    2. Enter BUS2201 and the order number
    3. Double click on the status table, this will take you to SE16 with all the different status for the PO
    4. Select the entry to delete
    5. Enable debugging by putting /h into the transaction field
    6. Double click "CODE" and change this to "DELE"
    7. F8 (leave debugging)
    8. Click on the delete icon and save.
    Done.

  • How can u  triger IDOCS wen ever vendor no. changes in XK02 Using BADI's

    Hi all
               When ever i change the vendor no.. in XK02,the idoc have to  be triggrer using BADI in ECC6.0 version.Pls Any one help me how to create BADI AND IDOC IN ECC6.0.I am  new to both IDOCS and BADI.
    Given badi name was -- VENDOR_ADD_DATA_BI .
               Where to u have add funtionality whether in BADI or in particulatr Tcode programe name(means Include programe name)
    Pls guide me
    Thanks

    Hi,
    I have done something similar but not the exact. My requirement was to send Customers and moreover I didn't make use of the BADI, instead I used events and change pointers.
    What you can do is:
    1. put the following code (or something similar) inside your BADI (make sure the BADI is fired only for XK02 and not for t.codes XK01, XK03,...)
    This program RBDSECRE is same as T.code BD14. The variable w_vendor_number should match with your BADI parametes.
              SUBMIT RBDSECRE WITH SELLIFNR  EQ w_vendor_number
                                              WITH MESTYP    EQ 'CREMAS'
                                              WITH LOGSYS    EQ w_logsys_name
                                              WITH nomsg        EQ 'X'
                                              AND  RETURN.
    2. create a distribution model for the logical systems and the idoc message type in BD64.
    Hope this Helps,
    Sumant.

  • Changing PO default currency using BADI

    Hi all,
    I received a requirement to use the same currency in PO than was chosen in PR.
    For example,
    a PO from PR created in USD should be in USD
    a PO from PR created in EUR should be in EUR
    I am trying to do this using BADI ME_PROCESS_PO_CUST but despite I assign the value of currency from PR in methods PROCESS-HEADER and PROCESS-ITEM the value is not changing. I checked trying to change any other field like "item text" for example and it works, so I guess I'm using the BADIs the right way.
    Do you know any other way to do this o maybe the clue to this particular problem.
    Thanks in advance,
    Sebastián Ligueros

    the currency in the PR is usually your home currency (from company code)
    The currency in the PO is the currency that is maintained in vendor master.
    A PR is generic can be assigned to a vendor in USA which has prices in USD, or to a vendor in Germany which has the prices in EUR, or to a vendor in England with GBP.
    Do you really think that the vendor is lucky if create the PO in USD while   the offered prices are in EUR.

  • HT2204 I have recently immigrated to the US but my apple ID is still stuck with my previous country. How do I change the country? Preferably without using a credit card

    I have recently immigrated to the US but my apple ID is still stuck with my previous country. How do I change the country? Preferably without using a credit cardI've only been here in the US 2 months and still have no US credit card.

    Your credit or debit card credentials must be associated with the same country where you reside.
    "Although you can browse the iTunes Store in any country without being signed in, you can only purchase content from the iTunes Store for your own country. This is enforced via the billing address associated with your credit card or other payment method that you use with the iTunes Store, rather than your actual geographic location."
    From here >  The Complete Guide to Using the iTunes Store | iLounge Article

  • How can I sync my iPhone on a different computer without erasing my applications? My iPhone was earlier synced with a PC which I don't use anymore. Please help with proper steps, if any.

    How can I sync my iPhone on a different computer without erasing my applications? My iPhone was earlier synced with a PC which I don't use anymore.
    On the new computer, I am getting a message that my all purchases would be deleted if I sync it with new iTunes library.
    Please help with proper steps, if any.

    Also see... these 2 Links...
    Recovering your iTunes library from your iPod or iOS device
    https://discussions.apple.com/docs/DOC-3991
    Syncing to a New Computer...
    https://discussions.apple.com/docs/DOC-3141

  • I run Final Cut Express 4.0.1; I shoot with a Sony HDR-CX260V. How do I import from the camera directly to Final Cut, without having to go through the intermediate step of using iMovie?

    I use Final Cut Express 4.0.1; I shoot with a Sony HDR-CX260V.
    How do I import from camera to Final Cut without going through the intermediate step of using iMovie?

    If you shoot in one of the following modes you should be able to Log & Transfer directly into FCE:
    HD:  1920x1080/60i (FX or FH mode)
    HD:  1440x1080/60i (HQ or LP mode)
    SD:  720x480/60i
    1080/60p (PS mode) seems to be the default mode in your camcorder.  FCE only supports progressive video in 720p50 or 720p60.   That's probably why you have had to import via iMovie.
    It would be better to upgrade to Final Cut Pro X, the version currently supported.  FCE was discontinued over 18 months ago and is not supported on Lion or Mountain Lion.

  • HT204053 I need to use an existing ID (email address) on a new iPhone. It tells me "choose another ID - that one is in use," with the option to "use existing ID," however, it is an endless loop, referring me only to change my password on the existing ID.

    I need to use an existing ID (email address) on a new iPhone. It tells me "choose another ID - that one is in use," with the option to "use existing ID," however, it is an endless loop, referring me only to change my password on the existing ID.
    How do I enable my new device with an existing ID - I do not need to change the password for the millionth time!
    None of the FAQs (or the Community choices below) address new devices, they are all about APPS and iCloud stuff.

    If it is an existing iCloud ID, you should be able to just go to Settings>iCloud and sign in with it.

  • Single step workflow with multiple approvers (without using a group)

    Hi,
    is it possible to have a single step workflow with multiple approvers without using a group? This is for a contract document.
    i want to add a number of users based on particular logic. The approvers are random and do not belong to any particular group.
    DO let me know if it is possible or if any of you have done that.
    thanks in advance.
    regards,
    rubio

    Hi Rubio,
    I believe the behavior would be, if individual users are added as approvers then the system would require each approver to approve the document. However, if you use the user group, you could set the role so that it would be either ALL or ANY.
    Regards,
    Vikram

Maybe you are looking for

  • Does my OfficeJet 8500 have an internal hard drive?

    I have an HP OfficeJet Pro 8500 All-In-One (FAX/Scan/Print/Photo) printer that doesn't work and I'd like to get rid of it.  Before I dispose of it, I'd like to know if there's an internal hard drive that could potentially be storing anything I may ha

  • Touchscreen dual head setup help needed

    I'm trying a rather complicated screen setup, with a 17" touchscreen (1280x1024) and a 24" widescreen (1920x1080). Using the opensource ATI driver. The touchscreen works on it's own, and cloning works, but looks ugly on the 24". An extended desktop w

  • How to generate xml file with multiple nodes using sqlserver as database in SSIS..

    Hi , I have to generate the xml file using multiple nodes by using ssis and database is sqlserver. Can some one guide me on to perform this task using script task? sudha

  • Correlation and multiple branches with flowN

    Hi All, I would like to ask a question about correlation.I am trying to spawn "n" processes (Process B) from a master process(Process A), and than collect the responses from these instances.I have an array as an input to Process A, and have a flowN a

  • On my Mac, on my folder I don´t have the library folder as I should ???!!!!

    on my Mac, using the Finder, on my folder, I don´t have the library folder as I should. I think it is strange. When I go to the time machine, the Library folder it is there, but the folder has not the same colour as the other folders (it is light gre