Read system datasource  in the moment  "action success"

Hi all,
For example i have a goods receipt po form open with data.I push add button.Its posible to read from the datasources(OPDN,PDN1) of form in the moment of the action succes. What is the best way to obtain the head and lines data of the created document?.
if (pVal.FormTypeEx == "143" & pVal.ItemUID == "1" & pVal.EventType == SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED & !pVal.Before_Action & pVal.ActionSuccess & pVal.FormMode == 3)                {
                string cod_artikulo, descripcion_artikulo, cod_documento, n_linea, cantidad, cod_proveedor, nom_proveedor, aa, fecha_documento;
                int resint;
                bool linea_inputlisth_insertada = false;
                oDBDataSource = oForm.DataSources.DBDataSources.Item("PDN1");
                oDBDataSource1 = oForm.DataSources.DBDataSources.Item("OPDN");
                cod_documento = oDBDataSource1.GetValue("docnum", 0).ToString().Trim();
                cod_proveedor = oDBDataSource1.GetValue("cardcode", 0).ToString().Trim();
               for (int i = 0; i < oDBDataSource.Size; i++)
                    aa = oDBDataSource.GetValue("u_aa", i).ToString().Trim();
In that case the datasources are empty because already there is no information in the form.
If i catch the same event with this code (only to have information in the form):
if (pVal.FormTypeEx == "143" & pVal.ItemUID == "1" & pVal.EventType == SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED & pVal.Before_Action & pVal.FormMode == 3)                {
I see that cod_proveedor has the correct data (head data,from datasource1), but "aa" (from datasource) only have the empty row of the matrix. Why? How is the best way to solve this (to obtain the data of the successfully created document)?
The last solution is to use SQL sentences to obtain all data of the created document, but no exist other best way?.
Sorry for my poor english.
Thank you and regards.

there are two ways when you want the info of a added document.
1. you can use the status bar
save the original docnum and than check a. and b.
a. the document is added with the same number as displayed on the form.
     the StatusBar message is saying that the operation has been succesfully done.
b. the document is added with a different number as displayed on the form when you pressed Add.
     In this case the StatusBar message is saying something like "The actual posted document number is: XXX".
2. create a header UDF with a timestamp
when pressed the button create the timestring and put it in a udf.
when action_success = true get the docentry with a select and than use odocument.getbykey

Similar Messages

  • Read System Information from the Client

    Hi,
    i am looking for a java native interface that allows me to read the client's system information like it can be done with the sigar lib.
    http://support.hyperic.com/confluence/display/SIGAR/Home
    Does anyone know if there are alternative native libraries available?!
    Thanks in advance,
    Patrick

    I'm doing exactly the same in both projects.The OS loads the library into the process space.
    You know it works in java. Thus it means specifically that it is an environment problem. It is not a java problem and it is not a library problem.
    The problem is that the library fails to load.
    General reasons for loading failures. There might be others.
    - It isn't a library. Can't be this because you got it to work already.
    - It has dependencies, other libraries, that don't exist or are not in the shared library path.
    - It isn't in fact the same as the other webstart app. Different location, different coniguration, permissions problem, something else.

  • Does Adobe Reader for iOS have the ability to open inbedded links to additional PDF docs?  If not, then what would be the best way to use these already created PDF's?

    Does Adobe Reader for iOS have the ability to open inbedded links created with Acrobat Standard to additional PDF docs?  If not, then what would be the best way to use these already created PDF's on an I Pad?

    driddy61,
    As of June 2014, none of the Adobe Reader mobile products support the hyperlink action for opening a separate PDF document.
    Adobe Reader for iOS
    Adobe Reader for Android
    Adobe Reader Touch for Windows 8
    In addition, the Reader mobile products do not open multiple windows/documents simultaneously, which would make the navigation between PDF documents nearly impossible. (Once a hyperlink takes you to a different PDF document, you have no way to go back to the original PDF document.)
    The only Adobe Reader product that fulfills your department's requirements is Adobe Reader XI (mostly for Windows/Mac desktop/laptop computers).  Acrobat Pro and Standard are paid products.
    Because you are in search of a less expensive device for your department, you could get a Windows tablet instead of a Windows desktop/laptop computer. Microsoft Surface Pro (that you've mentioned in your previous reply) is just one example.  You can also find other less expensive Windows tablets.
    Tablets
    However, please keep in mind that there are two different types of Windows tablets running two different operating systems.
    (a) A Windows tablet with an Intel-based processor running Windows 8.1 Pro
    Example: Surface Pro 3
    You can install and run traditional desktop apps (e.g. Adobe Reader XI) and new Windows Store apps ("Modern" or "Metro-style" apps).
    (b) A Windows tablet with an ARM-based processor running Windows RT 8.1
    Example: Surface 2
    You can only install and run Windows Store apps (e.g. Adobe Reader Touch) but not traditional desktop apps like Adobe Reader XI.
    In general, type (b) tablets are more affordable than type (a) tablets.  However, if you want to run Adobe Reader XI, you do need to check the technical specification of each tablet and make sure the following conditions are met.
    Processor: Intel
    Operating system:  Windows 8/8.1 or Windows 8/8.1 Pro, not RT
    Hope this helps you choose the right device for your department.  Please let us know if you have any questions about system requirements or supported features in the Adobe Reader products.

  • Smsy "Read System Number" customer number unknown for installation

    Hi gurus,
    I 'm configuring SMSY and following the steps outlined in the IMG in the basic settings and trying to configure RFC connections to/from satellite systems. In SMSY, I have 2 systems configured SMA and BIF.
    tcode SMSY-> Systems -> SAP ERP -> SMA , Tab "System Data in SAP Support Portal".
    Click "Read System Number" returns error SAP customer number unknown for installation number 0020179718. <-Why?
    Click "Installation Data" shows data from SMP with correct installation number and correct customer number 706822.
          The S-user listed under "Contact Persons" is not mine, not the correct one. <- Why? How to fix?
          The system number from SMP matches value in System Number field.
    Click "System Data" shows data from SMP also shows correct data.
    Why unable to "Read System Number" when the correct system number is read via "Installation Data" and "System Data"?
    tcode SMSY->Systems->SAP ECC->BIF, Tab "System Data in SAP Support Portal".
    Click "Read System Number" returns error "SAP customer number unknown for installation number 0020472810". <- Why?
    Click "Installation Data" shows data from SMP with correct installation number and correct customer number 706822.
          The S-user listed under "Contact Persons" is correct one.
          The system number from SMP matches value in System Number field.
    Click "System Data" shows data from SMP also shows correct data.
    Why unable to read system number?
    When I login to SMP with same S-user, under System Data Maintenance, the same data is displayed as in "Installation Data" and "System Data" links.

    I don't know what happened. I came into work today and tested the "Read System Number" and it worked. I read thru the 2 notes you mentioned, just read now. The first notes I had already followed before opening this thread. The 2nd notes also talked about turning off BAdI implementation AI_SDK_SP_RFC_RP, of which I did a couple of days ago before opening this thread. I had turned turned off BAdI and simplified the AISUSER table and removed the customer number field, in order to get back to the "single-user number" basic setup in the IMG.
    I had found the problem with the wrong contact info on the SMA system. It was wrong in the SMP system maintenance under installation data.
    Thanks for your help.
    -Don.

  • ITunes successfully installs in my computer but the moment I open it, a message will appear showing that microsoft has stopped working and the program will close. What do I do?

    iTunes successfully installs in my computer but the moment I open it, a message will appear showing that microsoft has stopped working and the program will close. What do I do?

    Let's first try updating your QuickTime Player to the most recent version. Does that help with the iTunes launch errors?

  • Hi. at the moment i am still using 10.5.8 version of MAC OS X. what do i need to upgrade my IMAC to the latest OS system? thanks

    hi. at the moment i am still using 10.5.8 version of MAC OS X. what do i need to upgrade my IMAC to the latest OS system? thanks

    System requirements
    2 GB of RAM
    8 GB of available hard disk or solid state storage
    To upgrade from an old version of OS X, the computer must be running at least v10.6.8.[7]
    The following models are officially supported:[7]
    iMac (Mid 2007 or newer)
    MacBook (Late 2008 Aluminum, or Early 2009 or newer)
    MacBook Pro (Mid/Late 2007 or newer)
    MacBook Air (Late 2008 or newer)
    Mac Mini (Early 2009 or newer)
    Mac Pro (Early 2008 or newer)
    Xserve (Early 2009)
    The following models support AirPlay Mirroring:
    iMac (mid-2011 or newer)
    Mac Mini (mid-2011 or newer)
    MacBook Air (mid-2011 or newer)
    MacBook Pro (early 2011 or newer)
    The following models support AirDrop:
    MacBook Pro (late 2008 or newer)
    MacBook Air (late 2010 or newer)
    MacBook (late 2008 or newer)
    iMac (early 2009 or newer)
    Mac Mini (mid-2010 or newer)
    Mac Pro (early 2009 with AirPort Extreme card or newer)
    Your Mac...
    http://www.everymac.com/systems/apple/imac/specs/imac-core-2-duo-2.66-20-inch-al uminum-early-2009-specs.html
    You have to call Apple to get 10.6 first somehow, as they removed it from the online store.

  • HT4796 I did all of the above and the migration was successful, but I don't know where the files are.  It says they're under a different user, 'owner' .  I tried to access via sys pref/system/users&groups, but it asks for a password for owner which I don'

    Migration Assit , PC to MAC - The migration was successful, but I don't know where the files are.  It says they're under a different user, 'owner' .  I tried to access via sys pref/system/users&groups, but it asks for a password for owner which I don't have.  What must I do to access my files?
    My experience is with MS PC's I'm new with the MAC Book Pro.

    Then, see if this works:
    Mac OS X 10.6 Help- If you forget your administrator password
    If you are running Lion or Mountain Lion you may need to do the following to access the same utility:
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    When the menubar appears select Terminal from the Utilities menu. Enter resetpassword at the prompt and press RETURN. Follow instructions in the dialog window that will appear.
    Or see Reset a Mac OS X 10.7 Lion Password and OS X Lion- Apple ID can be used to reset your user account password.

  • There are still no BW systems  connected to the Datasource

    Hi All,
    We are currently implementing BW retail project and trying to retrieve POS data using IDOCs through PIPE but we are facing a problem when we try to process idoc from POS workbench (/POSDW/MON0).We are  sending idocs(WBUPON- POS interface: Upload sales docs (receipts) non-aggregated)  using transaction we19 and then when we go to the POS workbench and try to process related idocs choosing supply bw immediately ...etc option after this we are getting the following error with a message class RSQU and message no 10.
    <b>There are still no BW systems  connected to the Datasource</b> I am working on BW  side with datasources such as  2LIS_43_poscas and 2LIS_44_posrec.
    Our system is SAP BI 7.0 with support package level 12.Can you please suggest something on this problem
    Is there anyone who has experienced  this kind of problem.Could you please give a look and share your solutions with me OR can somenone show how to transfer pos data into BW system.
    Waiting for rewarding points for good answers.
    Thanks in Advance,
    Regards,
    #Bill J.

    Satish ,
    Thank you very much for the answer but my r3 system is ecc 5.0 so this note is suitable for it ? What else can you suggest related to this problem ?
    Thanks & Regards,
    #Bill J.

  • An error was received while reading backup file- Cancelling Operating system error 995(The I/O operation has been aborted because of either a thread exit or an application request.).

    Hi,
    We have been getting the below error while restoring a database onto SQL Server 2008. We are using lite speed and performing a full restore. When we restart the server, the restore is completed cleanly but every 3 or 4 days once, the restore is failing.
    We have tried everything from installing a patch that was supposed to fix it but it is not.
    Error Message:
    BackupIoRequest::ReportIoError: read failure on backup device 'VDI_7D17E958-2468-45A8-B7F0-EB73D0BF0F3A_3'. Operating system error 995(The I/O operation has been aborted because of either a thread exit or an application request.).
    The backup is getting validated successfully but failing while trying to read it. Any help would be greatly appreciated.
    Thanks,
    Sree

    Hello,
    I would try to get the latest update for the LiteSpeed software, based on the following thread:
    http://www.red-gate.com/messageboard/viewtopic.php?t=5968
    Please read the following article too:
    http://troubleshootingsql.com/2011/02/09/troubleshooting-that-darn-backup-error/
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Getting error while opening a saved for later notification: The selected action is not available. The cause may be related to security. Contact your system administrator to verify your permission level for this action.

    Hi All,
    While opening a saved for later notification, we are getting "The selected action is not available. The cause may be related to security. Contact your system administrator to verify your permission level for this action". error.
    This is a custom notification.
    Please help.
    Thanks
    Raghava

    HI All,
    Please help on this issue.
    Thanks
    Raghava

  • In mail how do I get the latest entries to appear at the top automatically, at the moment I have to move the cursor from the bottom to the top to read the latest email?

    In mail how do I get the latest emails to appear at the top of the column automatically. At the moment I have to scroll up from the bottom oldest entires to find my latest mail arrivals

    What device are you using?
    I assume you are talking about something other than the iPad?
    Is there a sort order above the date column? Clicking on this can switch between Ascending and Descending order.

  • HT1768 I get a message "The file "iTunes Library.itl" cannot be read because it was created by a newer version of iTunes." Please advise what I need to do to get around this issue - at the moment iTunes wont open up!

    I get a message "The file "iTunes Library.itl" cannot be read because it was created by a newer version of iTunes." Please advise what I need to do to get around this issue - at the moment iTunes wont open up!

    Hi did you ever get a solution to this problem? Having the same issue myself!

  • "The system cannot find the file specified" - error reading properties file

    I have packaged a class file and a .properties file in the same folder as a ejb-jar file and in the class file i try reading the properties file and it throws me the error - "The system cannot find the file specified". But when I put the complete path, it has no problem finding the file.
    I know that this must be the problem with classpath, but can anybody tell me why it is not finding the properties file even if they are in the same folder. How do I make class files find .properties file which are in a folder.
    Any help will be greatly appreciated.

    Hi,
    I am not sure if your question is realted to the Oracle Application Server - anyway, if you are packaging a class file and a properties file in a JAR File, you need to read the contents in a different manner...something like this... :
    URL url = new URL("jar:file:/home/duke/duke.jar!/");
    JarURLConnection jarConnection = (JarURLConnection)url.openConnection();
    You might want to have a look at this link for more information :
    http://java.sun.com/docs/books/tutorial/index.html
    You may also get better responses if you post your question in one of the Java Forums.
    Regards,
    Sandeep

  • In Acrobat Reader DC for Android, how do I prevent Verizon Cloud from launching when clicking the floating action button to retrieve files?

    I have a Verizon-branded Samsung Galaxy S5, which means a lot of Verizon apps were added from the factory install.
    Recently I upgraded Adobe Acrobat Reader to its most recent version.
    When I clicked on the floating action button to open a PDF, it launched Verizon Cloud instead of showing my file directory.
    Unless I disabled Verizon Cloud altogether, every time I did this, I would get the Verizon Cloud app instead of a file listing.
    Reader DC is the only app that does such a thing. Is this a defect?

    Thanks for the information.
    To remove the Verizon cloud storage from Adobe Acrobat DC application, you can 'Turn off' the Verizon cloud application from 'Settings'-->'Application Manager'-->'All applications'. After doing this, every time you tap on the Floating Action button, you will be presented the list of all your pdf files on your device.
    If you would like to view both the Verizon cloud based files as well as files from your internal memory/SD card, I would request you to download some file manager application from the Google Play Store such as And Explorer, ES File Explorer etc. After doing this, whenever you will tap on the floating action button, you will be provided an option to open the files either from the Verizon cloud or the files on your device.
    Hope this helps. Please let us know if you observe any more issues.
    Thanks.

  • Declarative workflows cannot automatically start if the triggering action was performed by System Account

    Hi , 
    I have very strange problem .Only in one site collection across the farm i am getting this error while starting OOTB workflow in list. Everywhere else it works, even another site collection within same web application. I have stopped and restarted all the
    work flow feature but still same issue?
    sachin

    Errors in ULS logs
    Declarative workflows cannot automatically start if the triggering action was performed by System Account. Canceling workflow auto-start. List Id: %s, Item Id: %d, Workflow Association
    Id: %s
    RunWorkflow: Microsoft.SharePoint.SPException: User cannot be found.   
     at Microsoft.SharePoint.SPUserCollection.get_Item(String loginName)   
     at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.LoadWorkflowBytesElevated(SPFile file, Int32 fileVer, Int32& userid, DateTime& lastModified)   
     at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.LoadWorkflowBytesElevated(SPWeb web, Guid docLibID, Int32 fileID, Int32 fileVer, Int32& userid, DateTime&
    lastModified)   
     at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.<>c__DisplayClass1.<LoadWorkflowBytes>b__0(SPSite elevatedSite, SPWeb elevatedWeb)   
     at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.LoadWorkflowBytes(SPWeb web, Guid docLibID, Int32 fileID, Int32 fileVer, Int32& userid)   
     at Microsoft.SharePoint.Workflow.SPNoCodeXomlCompiler.LoadXomlAssembly(SPWorkflowAssociation association, SPWeb web)   
     at Microsoft.SharePoint.Workflow.SPWinOeHostServices.LoadDeclarativeAssembly(SPWorkflowAssociation association)   
     at Microsoft.SharePoint.Workflow.SPWinOeHostServices.CreateInstance(SPWorkflow workflow)   
     at Microsoft.SharePoint.Workflow.SPWinOeEngine.RunWorkflow(SPWorkflowHostService host, SPWorkflow workflow, Collection`1 events, TimeSpan timeOut)   
     at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflowElev(SPWorkflow workflow, Collection`1 events, SPWorkflowRunOptionsInternal runOptions)
    Microsoft.SharePoint.SPException: User cannot be found.   
     at Microsoft.SharePoint.SPUserCollection.get_Item(String loginName)   
     at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.LoadWorkflowBytesElevated(SPFile file, Int32 fileVer, Int32& userid, DateTime& lastModified)   
     at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.LoadWorkflowBytesElevated(SPWeb web, Guid docLibID, Int32 fileID, Int32 fileVer, Int32& userid, DateTime&
    lastModified)   
     at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.<>c__DisplayClass1.<LoadWorkflowBytes>b__0(SPSite elevatedSite, SPWeb elevatedWeb)   
     at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.LoadWorkflowBytes(SPWeb web, Guid docLibID, Int32 fileID, Int32 fileVer, Int32& userid)   
     at Microsoft.SharePoint.Workflow.SPNoCodeXomlCompiler.LoadXomlAssembly(SPWorkflowAssociation association, SPWeb web)   
     at Microsoft.SharePoint.Workflow.SPWinOeHostServices.LoadDeclarativeAssembly(SPWorkflowAssociation association)   
     at Microsoft.SharePoint.Workflow.SPWinOeHostServices.CreateInstance(SPWorkflow workflow)   
     at Microsoft.SharePoint.Workflow.SPWinOeEngine.RunWorkflow(SPWorkflowHostService host, SPWorkflow workflow, Collection`1 events, TimeSpan timeOut)   
     at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflowElev(SPWorkflow workflow, Collection`1 events, SPWorkflowRunOptionsInternal runOptions)
    The emailenable value is true. And it just does not work for one site collection. It should not be regarding any hot fix. 
    Thank you for your suggestions and time. I will dig up further.
    sachin

Maybe you are looking for

  • Getting a single value from an array collection

    I have an array collection that was created from an XML file through the HTTP Service. One of the nodes in the XML file was product_number and I can display all of the items in this node in a datagrid so I know the array has the name of the node in i

  • TOSHIBA S/N 73VSMEGES X13 NOT PICKING UP IN DESK TOP WITH SATA 2 CABLE

    HI MY WIFE BOUGHT ME A TOSHIBA 500 HARD DRIVE FROM NEWEGG.COM AND I TRIED TO INSTALL IT IN MY DESK TOP BUT MY MOTHER BOARD WILL NOT PICK UP THE HARD DRIVE. CAN ANYONE HELP ME WITH WHY THIS HARD DRIVE IS NOT WORKING. I HAVE BUILT A FEW OF MY DESK TOPS

  • BCM4328 - broadcom-wl vs ndiswrapper

    I'm using Arch linux on my Macbook, and I have almost everything set up the way I want. But there is one thing that's bugging me a little bit. I know that it has Broadcom BCM4328, from lspci: 02:00.0 Network controller: Broadcom Corporation BCM4328 8

  • Equipment Master

    Hi, client has same naming convention for asset as well as Equipemnt Master.bec equipment is nothing but a asset.instead of putting asset no in equipemnt master,He just want to capture/fetch Equipment master no in sap for plant maintenance as Asset i

  • Cumulative totals in report

    Hi, I've a table having customer code, customer name, dr_cr, amount fields SELECT a.CUCODE, a.cuname, a.DR_CR, decode(a.DR_CR,'D',a.AMOUNT) Debit, decode(a.DR_CR,'C',a.AMOUNT) Credit, nvl(decode(a.DR_CR,'D',a.AMOUNT),0)-nvl(decode(a.DR_CR,'C',a.AMOUN