How to attach custom code after invoice save/modify

Hi to all,
i should solve techically this problem.
I have an invoice document.
After the modify/save of the invoice document, i should start a custom procedure that, line by line, read the invoice document just saved, and save the net value of each position in a custom table.
I cannot simply read the whole net amount of the document, because only positions that fulfill some conditions must be added to the custom table.
On the second step, i should modify that document and create another invoice document whith the positions that doesen't fulfill the conditions above. The same check (and the same code) must be executed on invoice modify also.
Exit, BADI, business transaction events, workflow (that i never use), modify standard trx code (but the customer doesen't want).
These are the methods that i know. I've already searched for exit, BADI and BTE (event 00001030 for example), but nothing of these seems help me on solve the problem, because they all start before the document is saved on the database (so i don't have the document number and the effective data saved).
Any good suggestions/hints/links/solutions etc... will be surely rewarded.
Thx a lot
Andrea

Hi again,
i was quite sure that the problem was solved but .... i was wrong.
The problem is more difficult that what i wrote in the first post.
For this, i need your help/suggestions.
If i create a document 0000001 with VA01 trx, after the document is saved on db,i have to :
- read positions of 0000001 invoice document
- add the net value of some positions in a custom table
- modify some data of some invoice positions of 0000001 invoice document
- save again the document 0000001
Whith the BADI, i can save the net value of the invoice positions in the custom table. The problem is that the BADI code is executed before the commit work. But i think i can solve this problem using a function module ... in update task.
The main problem comes after i saved the net value in the custom table, because i have to modify the invoice document just created.
Before the commit i don't have any values in the db, so how i can modify that values? And with which technique? The BADI doesen't support "PERFORMS" (on commit) and in a function module (in update task) i cannot use instructions like call transaction, call screen, submit etc because they set an implicit commit work --> that means dump during registration.
How i colud solve the problem? Workflow?
Thx a lot again
Andrea

Similar Messages

  • How to invoke a Java Custom Code after creating a resource in OIM Console

    Greetings.
    I want to invoke a custom code after creating the resource "OID User" on the OIM Administration Console. For example invoke a custom code that creates The Form's resource access descriptor (RAD) on the OID.
    I have read the Developer's Guide for Oracle Identity Manager book but I don't get how to solve my requirement.
    Should I use a "Java Task" on the design Console?
    Could Anybody provide me the detailed steps to do that?
    Thanks
    Ramiro Ortíz.

    Greetings.
    I want to invoke a custom code after creating the resource "OID User" on the OIM Administration Console. For example invoke a custom code that creates The Form's resource access descriptor (RAD) on the OID.
    I have read the Developer's Guide for Oracle Identity Manager book but I don't get how to solve my requirement.
    Should I use a "Java Task" on the design Console?
    Could Anybody provide me the detailed steps to do that?
    Thanks
    Ramiro Ortíz.

  • How to Attach Customer at Top Task Level?

    How to Attach Customer at Top Task Level?

    Hi
    If you are on Projects FP-M, you should see the setup.
    Using Forms
    Open the form - Projects, Templates and enter the project number.
    Go to Options > Billing information > Billing setup.
    Look for the left uper section called Revenue and Billing Information.
    First lise is Revenue Accrual Method
    Second line is Invoice Method
    Third line is a check box - Customer at Top Task
    Fourth line is a check box - Invoice Method as Top Task
    If you don't see those fields, you may be not on the right version of the system.
    Dina

  • How do you redirect the user to a custom page after the "Save" button is clicked?

    In SharePoint 2010, I could add the following code to a save button to redirect the user to a custom page.
    <input type="button" value="Submit" class="btnStyle" name="btnSave" onclick="javascript: {ddwrt:GenFireServerEvent('__commit;__redirect={/SitePages/Thankyou.aspx}')}" />
    However, how do you do this for a save button in SharePoint Online? The code of a save button in SharePoint Online looks like
    <input type="button" value="Save" name="ctl00$ctl33$g_175de2e0_43c1_4005_bac5_0ab02439686f$ctl00$toolBarTbl$RightRptControls$ctl00$ctl00$diidIOSaveItem" onclick="if (!PreSaveItem()) return false;if (SPClientForms.ClientFormManager.SubmitClientForm('WPQ1')) return false;WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$ctl33$g_175de2e0_43c1_4005_bac5_0ab02439686f$ctl00$toolBarTbl$RightRptControls$ctl00$ctl00$diidIOSaveItem&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, true;javascript: {ddwrt:GenFireServerEvent('__commit;__redirect={/SitePages/Thankyou.aspx}')}))" id="ctl00_ctl33_g_175de2e0_43c1_4005_bac5_0ab02439686f_ctl00_toolBarTbl_RightRptControls_ctl00_ctl00_diidIOSaveItem" accesskey="O" class="ms-ButtonHeightWidth" target="_self">

    Not exactly what you are asking for, but if you are creating the link then you could add "?Source=" to the URL.
    http://yourServer/sites/yourSite/Lists/TestList/NewForm.aspx?Source=/SitePages/Thankyou.aspx
    Mike Smith TechTrainingNotes.blogspot.com
    Books:
    SharePoint 2007 2010 Customization for the Site Owner,
    SharePoint 2010 Security for the Site Owner

  • How to add Custom code in Report Painter

    Hi All,
      I have a requirement to add Authorization checks at Profit Center Level for 8A-PCA001G report. This is the first time am working on Report Painter/Writer. I am wondering whether i can add custom code or not. Please suggest me how to do this. I copied 8A-PCA001G into a zreport but did not find anywhere to add custom code.
    Any help would be really appreciated.
    Thanks,
    Kumar

    Hi Kumar,
    You cannot write custom code (0% coding) in an Report Writer/Painter report. The code is generated by SAP while generating the Report group. The only place in a report writer report where you can write very minimal code is at varables level or formulas inside reports.
    At the report group header level, there is provision to provide authorization group. Try that.
    Regards,
    Subin John.
    Edited by: subin john on Mar 24, 2011 10:36 AM

  • How to attach source code

    Hi,
    I am new to JDeveloper and want to know that how to attach source of a jar file to JDeveloper. I want to explore source code JSF API in the JDeveloper but when I open any class e.g. FacesServlet.java JDeveloper simply open that class file without any documentation. However I am more interested to see java documentation.
    I look around the configuration of the Tool -> Manage Libraries and found that source path and doc path is missing but it is disabled. I am not able to attach source, please help. Earlier I was using Eclipse and it provides simple option to attach source of any jar file.
    Thanks

    The way of choice (at least my way ;-) ) is to create a new library and add the source of the jars I like to see into the source path. You don't need to add the classpath or docpath.
    Then add this library to your project and you should be able to see the source.
    Timo

  • How to execute custom code only when a specific node is selected in infoset

    Hi,
    We have written a piece of custom code under a node (P1045). Not all users will have access to this Infotype as it is related to Appraisals. So, when users (w/no access to 1045) try to run a Query for other info types data, they are getting error message 'Can not access 1045'. Custom code is getting generated whenever user runs a query. Tried to control custom code with simple IF condition by giving user name. Still generating 1045 code.
    All users use same infoset, where a group of users has access to 1045 and another group does not have access to 1045.
    Appreciate your inputs to get this resolved.
    Thanks,
    Swapna.

    Why don't you try another aproach, instead of adding the infotype to the infoset, create a new table as an alias (with the fields you want to show in regards to infotype 1045) and fill it in the node depending on the authorization check for that infotype in the code ?
    I think that adding the infotype as a node will always get the data from the infotype regardless, that is why it's showing the error.

  • How to insert custom code in HTM

    Hello, I need to insert some custom Javascript in the head, start, and end of my HTML files. Unfortunately, RoboHelp does not appear to offer this feature. It is really a big surprise since I can get this code in there using a number of other, much less expensive tools. In fact, Framemaker itself offers this capability in a simple save as the HTM. I have tried using custom markers in Framemaker, editing the HTML Mapping table in the reference page of the Framemaker file, nothing causes RoboHelp to pick up this code. In fact, RoboHelp reproducibly hangs when it encounters the code in a marker.
    If anyone has any ideas about this, I would really appreciate it.
    Thanks,
    Z.

    Bill
    If you would like to create a FM doc that has one such marker I'm happy to poke around to see if I can find an answer. Although I have it installed, I'm not a FM user so please include any FM information you think I might need. Hopefully my knowledge of RH will help.
    See my contact page to send the file.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How to attach PDF files to invoice document from ECM.

    Hi Gurus,
    We have one requirement in that around three million  invoice pdf files are there in ECM system. we need to attach those pdf files(GOS) to  existing invoice document in SAP.as we searched in SCN we found one function module ARCHIVE_CONNECTION_INSERT. for this  function module we need pass mandatory import parameters as SAP object ID ,Document ID and some other variables(object type, doc.type , repository ID).
    My problem is how can I find the value of  respective SAP object ID and Document ID  form ECM system. and how can I match the SAP object ID and Document ID.
    please  help on this.
    Thanks in advance!!
    Regards,
    Vigneshwar.D

    Hello,
    Check with Global document type is maintained for the PDF you are looking for in OAC2. You will find the Document type, for the respective object type, check in OAC3. Content Repository is the archiving ID. Search by the archiving ID.
    Regards
    Rakesh

  • How to clean up code after pressing

    Hey,
    I am trying to run a program which controls a remote power supply.  The way the power supply (BK Precision 1786B) is controlled is by writing a 26 byte hex array with specific addresses for each command (20= remote control setting, 21= output of voltage status, 23=set voltage, 24=set current, etc.)  The way I am communicating to the power supply is by sending the code through the basic serial read and write VI.  It has worked phenomially.  I would like my program to turn on the remote control, turn on the output status, start ramping up the voltage at a fixed rate, and then when the desired voltage is hit, the stop button is pressed and the last command to set the voltage back to zero and output status off before the whole program ends.   The most important thing I am asking for is the ability to set the voltage to zero directly after I press stop.  I am controlling a peltier chip and what is happening is that when I restart the computer, the chip will be a surge of a high voltage before resetting to zero because of the code.
    ANy thoughts?
    Thanks,
    Katie
    Solved!
    Go to Solution.
    Attachments:
    sequence control of power supply.vi ‏92 KB

    Hey Raven Fan,
    Thank you for the link to the action engine discussion.  I started out trying the enum and was not quite getting it to work so I started messing around with the event case so that it would be a bit cleaner.  Would you mind looking at it and seeing if it is the most efficient way to set this problem up.  My other question is how to initiate and keep the slow ramp up in voltage, which occurs in the last event case.  I am not sure if that should be a separate VI or if I could keep it contained in this one.   Thanks!
    -Katie 
    Attachments:
    Control of PS.vi ‏89 KB
    hex.vi ‏17 KB
    Com to DCPS.vi ‏32 KB

  • Custom code after creating a new user via CUA

    Hi experts!
    In our landscape we are using CUA for adding users in CRM 7.0. A new requirement is to adjust some default Web UI related settings for every new user created. There is no standard customizing setting for that, but it is possible to programmatically set prsonal settings using cl_pers_admin class' set_data method.
    The question is if there is any BADI or User Exit for user creation procedure? If it is present, wouldn't it conflict with CUA routines? Many thanks in advance.

    No. Not the main Library folder. Make absolutely sure you are in the Home Library folder and not the main Library folder.
    Your Home Library folder is hidden in Lion. To get to it, in the Finder menu, select GO and hold the option key down. Select Library in the submenu. The Finder window will open in your Home Library. This is where your user prefs are stored.
    Once there, you will see the Preferences folder. Open it up, select all items within it and move them to the trash. You will need to restart in order for the new Finder preferences to be recreated.
    Once you restart, then you will be back to the default preferences to the system and all applications. And yes, it will affect all settings including your Dock, just as logging into a new user. You will have to reset everything there also.
    If you wish to do a selective method, instead of deleting all preferences, try deleting the one associated with your problem. Screen saver problems should be affected by the system preferences, so try deleting this:
    com.apple.systempreferences.plist
    com.apple.systempreferences.plist.lockfile
    Note that when you delete system file preferences, a restart will be required. For applications, just quit the application before trashing preference files.

  • How to reset ipod code after forgetting it

    I changed my simple password code the number one and i forgot the numbers now its locked how do i fix it.???

    iOS: Unable to update or restore

  • How to attach custom output type to tcode VT02N

    HI All,
    My requirement to  create a new print program, form and output type i.e. to be attached to transaction VT02N when called.
    Please help to resolve
    -  How we create new output type
    -  Attach smartform/ spascript to the output type
    -  Take print of the smartforms using output type .
    there is some predefined output type in different application like in application v7 we are using the output type ALTR and there is smartrform associated with that output type but unable to take the print of that smartform.
    Regards,

    How we create new output type
    Copy the existing std output type to some Z*** output type
    menu path
    IMG Guide - Logistic Execution - Transportation - Basic Transportation Function - Output Control - Maintain Output Determination for shipment -Maintain Output Types
    Attach smartform/ spascript to the output type
    onthe same screen of output type click on processing routine folder on right and under form field assign ur smartform
    Take print of the smartforms using output type
    Either create a condition record (dont remember the tcode but u can search from SAP menu)  or while creating shipment doc...assign the ouput type (in shipment doc screen, from menubar  Goto ->Output ).......do not forget to specify the communication mode ie logical destination
    take printout from VT02n screen( initial screen goto-> output) or using VT70
    Regards
    Jagdish
    Edited by: jagdish parihar on Jan 23, 2008 11:31 AM

  • How to attach custom form LOV to find (torch symbol) button

    Hi,
    We are working on Oracle Applications 11.5.10.2. We are customizing new forms and registered with Oracle Apps, there are lov's on the form and we want to attach lov to the find button on tool menu.
    Our requirement is when ever click on find button, it has to display all the values in the LOV. But our custom form is not reaching this requirement.
    Please help us in this regard to make link between LOV and find button
    Thanks in Advance...
    Venky.

    Hi,
    I can you make your requirement a bit clear.
    From the below text what I could able to understand is, when we click on the browse button(i.e. tourch symbol) it should dispaly a list of values from which we can select a values and the form will display the records pertaining to onl those records .Is that True?
    Rgds,
    Naveen.

  • How to attach Source Code to Jprofiler?

    Hi,
    I am using Jprofiler to profile local application. But i am unable to map source code to deployed application.
    Is there any specific directory structure to be followed to save the source code so that at runtime jProfiler can point it to?
    I have tried specifying the external path in Source Path tab of Application settings. But it doesnt work for me.
    can someone please answer this?
    thanks in advance.

    You'd have to refer to the JProbe instructions/docs.

Maybe you are looking for