Delphi Programming and SAP - errors

Hi Sig,
I need your help...
My problems are :
1. Do you know how to get Customer data from SAP ?
   Because when I tried to get the data, the error shows 'DATA_BUFFER_EXCEEDED'.
2. How to get data in a certain fields ?
   I don't know the function and the statement how to use it.
Thank for your answer about how to use the components of Delphi 5.
Thank You

SAP has dropped support with those Active-X components, some time ago. Also those don´t come with rather poor documentation. I my current solutions I hvae migrated away from those and switched to the native onse from Gs-Soft.
1. I don't know this error, but it could relate to datatype translation from sap to delphi, try using a variant datatype in Delphi
2. Here is a code to get at certain fields
procedure ReadTable;
var
  r, y, iTeljari : integer;
  Table : Variant;
begin
     Table := MySapRfcObject.Tables.Item('XHRSTM');
//sap Table Struct
     //Grid is a TStringGrid component
     Grid.RowCount := Table.RowCount + 1;
     Grid.ColCount := Table.Columns.Count + 1;
     //fill in header row
     iTeljari := 0;
     Grid.Cells[0,0] := 'Line no.';
     Grid.Cells[1,0] := 'Field 1.';
     Grid.Cells[2,0] := 'Field 2.';
     Grid.Cells[3,0] := 'Field 3.';
     Grid.Cells[4,0] := 'Field 4.';
     Grid.Cells[5,0] := 'Field 5.';
     Grid.Cells[6,0] := 'Field 6.';
     Grid.Cells[7,0] := 'Field 7.';
     //fill in table
      for r := 1 to grid.rowCount -1 do begin
        Inc(iTeljari);
        Grid.Cells[0,r] := IntToStr(iTeljari);
        for y := 1 to grid.ColCount -1 do begin
          Grid.Cells[y,r] := Table.Value(r,y);
        end;
      end;
end;
Ps. If you want more code e-mail my directy

Similar Messages

  • Search print program and sap script

    hii , how can i find  trigring print program and sap script  for a particular  purchase order.
            regards  Aditya
    Edited by: aditya shrivastaba on Apr 14, 2008 9:59 AM

    Hey,
    First go with Me22 or 23 with po that you had, and then check with output type for that in the transaction. After that go to TNAPR table and check the corresponding form and print program.
    Or else, go with NAST table in that put PO num in 123456 and put in OBJKY field in nast table. It will give you the output type of it, so that u can find the print program and lay out in TNAPR
    Many thanks,
    Raghu.

  • Tried to access programs and get Error: 16 message. What's the problem? Please help!

    Tried to access programs and get Error: 16 message. What's the problem? Please help! Photoshop, photoshop elements, Dreamweaver - none of my Creative Cloud apps will start-up, since my last update. I need to access these programs for jobs I'm working on.

    Hi wdriver,
    It seems like due to some unknown reason permission from the Licensing folder is removed. Please try launching any of the apps by right clicking and select Run as an Administrator, it should fix the issue by doing that.
    Please let us know if it helps.
    Regards,
    Abhijit

  • How to attach print program and sap script for F150 transaction

    How to attach print program and Z sap script for F150 transaction

    Hi,
    you can find the customization for dunning in transaction SPRO under this path: Financial Accounting->Accounts Receivable and Accaounts Payable->Business Transactions->Dunning.
    Kostas

  • I try to install my CS 5 Photoshop program and it won't open.

    I install my CS 5 Photoshop program and an error comes up in the install section. When I go to open the program an error shows up stating "Could not initialize Photoshop because
    the preferences file was invalid (it has been deleted)". How did this happen and how can it be fixed?

    If the rest of the install was successful the following should help:
    Press and hold Alt+Control+Shift (Windows) or Option+Command+Shift (Mac OS) as you start Photoshop. You are prompted to delete the current settings; Click Yes.
    Let us know how it goes.

  • JCO.Server Error while trying to execute a RFC program from SAP

    Hi,
    We are connecting to an external registered server program from SAP via Web Methods.
    The external server program is registered with the SAP Gateway. We have created a TCP/IP RFC destination and are able to connect to the destination successfully via SM59.
    An RFC function is created in SAP and is called using the syntax CALL FUNCTION "/NGN/BAPI_STRE_SEARCH_PROCESS" DESTINATION 'PRDB2B'. We have also handled the COMM_FALIURE and SYSTEM_FALIURE exceptions in the function call.
    We are monitoring the gateway via SMGW and see a connection log to the RFC destination as below
    Number - 10
    LUname - dev01
    TPName - sapgw00
    User - KRAORANE
    Status - CONNECTED
    Symbolic - PRDB2B
    Conversation - 86520353
    Prot - REG
    SAP return code - 0
    CPIC rtn code - 0
    The external program returns results as expected.
    However sometimes the RFC fails and returns the message “JCO.Server could not create server function /NGN/BAPI_STRE_SEARCH_PROCESS”.
    We are not able to figure what exactly is causing this error. Any help will be highly appreciated.
    -Kiran

    Hi,
    Please see the below links..
    JCO.Server Error while trying to execute a RFC program from SAP
    Re: JCO.Servcer could not find server function
    Re: JCO.Server could not find server function 'SET_SLD_DATA'
    /people/kathirvel.balakrishnan2/blog/2005/07/26/remote-enable-your-rfchosttoip-to-return-host-ip-to-jco
    Re: interfacing SAP with an existing java applications
    http://help.sap.com/saphelp_nw04/helpdata/en/47/80f671ee6e4b41b63c0fe46bd6e4f8/content.htm
    http://www.sapgenie.com/faq/jco.htm
    Regards
    Chilla..

  • SAP ERP - CTS and Backup error CPIC-CALL: 'ThSAPCMRCV'

    hello All,
    I have some issues with transport system and when I try to schedule backup jobs in my ERP system. When I try to reconfigure my transport system the following message:
    Could not start transport control program tp
    Message no. TP608 Diagnosis
    There was an attempt to start the transport control program tp using the local RFC interface. An error occurred here.
      Error code: 4
      RFC error text: timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'
    Meaning of the error codes:
      03  RFC system failure
      04  RFC communication failure
    System Response
    The function terminates. Details about the error can be found in the trace file of the Gateway Monitor (SMGW).
    Procedure
    Contact your system administrator or use report RSTPTEST to localize the error. You can then execute the command again.
    Al ejecutar el reporte RSTPTEST  se presenta:
    Check Transport Tool                                       12.10.2011  16:32:11
           DES System DES
               tp Interface
               Transport Profile
               RFC Destination
               tp Call
    I executed the report RSTPTEST   and the result was successful.
    Another error is generated when I try to schdule the backup jobs in DB13:
    Name and Server     : cobogsap01 - cobogsap01
    DBMRFC Function     : DBM_GETF
    Command             : DBMMDF
    Error               : System Error
    Error Message       : timeout during allocate / CPIC-CALL: 'ThSAPCMRCV' : cmRc=20
    I checked the connection between SAP and DB and is OK. I found in some forums and SAP Notes that this error can be fixed with a kernel update, so I updated the SAP kernel, TP and R3trans files but the error continue.
    I don't know what more I've to check, so I need your help to solve this issue.
    Thanks
    HEPC

    hello Michael,
    I could fix the transport system, was a network issue, but the DB13 error continue, now when I test the DB connection the following error is show by the PRD system.
    Connect. test with "dbmcli db_state"                         Unsuccessful
    I decided to close this message and open another in MaxDB forum.
    Thanks
    HEPC
    Edited by: Hernando Polanía C on Oct 18, 2011 6:32 PM

  • SPAM - SAPKB70016 error during phase Generation of Programs and Screens

    Hi experts,
    I am trying import package SAP BASIS 700 level 16, but i have still errors in phase Generation of Programs and Screens:
    Program /OSP/SAPLR3_REPORT, Include /OSP/LR3_REPORTU38: Syntax error in line 000014
    Type '/OSP/REP_BADI' is unknown
    Program CL_HRBAS_INFTY_BL_COMPUTATION=CP, Include CL_HRBAS_INFTY_BL_COMPUTATION=CI: Syntax error in line 000005
    Type 'HRBAS00INFTYBL' is unknown
    Program CL_HRBAS_OBJECT_OPERATIONS====CP, Include IF_HRBAS_BUF_INTEGRATION_TO_PAIU: Syntax error in line 000007
    Type 'HRBAS_PD_PA_INTEGRATION' is unknown
    Program CL_HRBAS_RHOMBUFFER===========CP, Include IF_HRBAS_BUF_INTEGRATION_TO_PAIU: Syntax error in line 000007
    Type 'HRBAS_PD_PA_INTEGRATION' is unknown
    Program CL_PROXY_WSDL2ABAP============CP, Include CL_PROXY_WSDL2ABAP============CM03G: Syntax error in line 000004
    Type 'SPRX_PROXY_NAMEPROPOSAL' is unknown
    Program CL_WDR_CFG_PERSISTENCE_COMP===CP, Include CL_WDR_CFG_PERSISTENCE_COMP===CM005: Syntax error in line 000014
    Transformation 'WDR_CFG_COMP_TRANSL' has no activeversion
    Program CL_WSSE_PROCESSOR=============CP, Include CL_WSSE_PROCESSOR=============CM009: Syntax error in line 000131
    Transformation 'SEC_SAML_ASSERTION' has no activeversion
    Program SAPLPA_PACKAGE_CHECKS, Include LPA_PACKAGE_CHECKSTOP: Syntax error in line 000030
    Type 'WB_PACKAGE_COMPONENT_CHECK' is unknown
    System is: SAP ERP 6.0 IDES EHP3, kernel221, WIN2003, Oracle 10.2.0.4
    Can you help me pls?

    thank you for your help Sunny
    I solved problem:
    1.)
    Program /OSP/SAPLR3_REPORT, Include /OSP/LR3_REPORTU38: Syntax error in
    line 000014
    Type '/OSP/REP_BADI' is unknown 
    (SE18 -> reactivated Enhancement Spot /OSP/REP_ENH_SPOT  )
    2.)
    Program CL_HRBAS_INFTY_BL_COMPUTATION=CP, Include
    CL_HRBAS_INFTY_BL_COMPUTATION=CI: Syntax error in line 000005
    Type 'HRBAS00INFTYBL' is unknown
    Program CL_HRBAS_OBJECT_OPERATIONS====CP, Include
    IF_HRBAS_BUF_INTEGRATION_TO_PAIU: Syntax error in line 000007
    Type 'HRBAS_PD_PA_INTEGRATION' is unknown
    Program CL_HRBAS_RHOMBUFFER===========CP, Include
    IF_HRBAS_BUF_INTEGRATION_TO_PAIU: Syntax error in line 000007
    Type 'HRBAS_PD_PA_INTEGRATION' is unknown
    Program CL_PROXY_WSDL2ABAP============CP, Include
    CL_PROXY_WSDL2ABAP============CM03G: Syntax error in line 000004
    Type 'SPRX_PROXY_NAMEPROPOSAL' is unknown
    Program SAPLPA_PACKAGE_CHECKS, Include LPA_PACKAGE_CHECKSTOP: Syntax
    error in line 000030
    Type 'WB_PACKAGE_COMPONENT_CHECK' is unknown
    (SE18 -> reactivated types)
    3.)
    Program CL_WDR_CFG_PERSISTENCE_COMP===CP, Include
    CL_WDR_CFG_PERSISTENCE_COMP===CM005: Syntax error in line 000014
    Transformation 'WDR_CFG_COMP_TRANSL' has no activeversion
    CL_WDR_CFG_PERSISTENCE_COMP===CP ,
    Program CL_WSSE_PROCESSOR=============CP, Include
    CL_WSSE_PROCESSOR=============CM009: Syntax error in line 000131
    Transformation 'SEC_SAML_ASSERTION' has no activeversion
    (Tcode STRANS -> reactivated Transformations
    Edited by: Miroslav Mihok on Oct 6, 2009 3:37 PM

  • Every time I TRY to start firefox 18-19 I get an error message : Firefox has stopped working - close the program and check online for a solution - or - close ..

    Every time I TRY to start firefox 18-19 I get an error message : "Firefox has stopped working" - "close the program and check online for a solution" - or - "close the program" this happens TWICE every time I try to start firefox. Eventually after a random number of tries firefox will start normaly. I am useing firefox 19.0.2 now bit I belive it started when I upgraded to firefox 18 but am not sure, it might have been when I upgraded to firefox 19 ... but it has been happening for a very long time and I cannot find any helpfule solutions online.
    I have tried a Clean reinstall but it did not help.

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Every time I TRY to start firefox 18-19 I get an error message : Firefox has stopped working - close the program and check online for a solution - or - close th

    Every time I TRY to start firefox 18-19 I get an error message : "Firefox has stopped working" - "close the program and check online for a solution" - or - "close the program" this happens TWICE every time I try to start firefox. Eventually after a random number of tries firefox will start normaly. I am useing firefox 19.0.2 now bit I belive it started when I upgraded to firefox 18 but am not sure, it might have been when I upgraded to firefox 19 ... but it has been happening for a very long time and I cannot find any helpfule solutions online.

    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    Please report back to see if this helped you!

  • I get an error 7 (Windows error 126) when I try to open itunes. It says that it wasn't installed correctly. I have removed and reinstalled this program and all accompanied programs several times. My itunes was fine until I did an update several months ago

    Please help. I have been using itunes with my ipod nano for years. Several months ago I did a requested upgrade and have not been able to open itunes since. I get an error message that says that itunes was not installed correctly. Error 7 (Windows error 126) I have tried to uninstall all Apple programs and reinstall itunes several times and it doesn't work. I keep getting the same message. I am looking for a solution to get my library back so I can but more songs for my ipod.

    I have same problem--did you ever find a solution?

  • I am trying to update ITunes from 10.4 to 10.5 I have tried from both the program, and from a download on Apple's website. Regardless, I get the following error messages: (1) Installation package for iTunes cannot be found. Try installing to find the inst

    I am trying to update ITunes from 10.4 to 10.5 I have tried from both the program, and from a download on Apple's website. Regardless, I get the following error messages: (1) Installation package for iTunes cannot be found. Try installing to find the installation package 'iTunes.msi' in a folder from which you can install iTunes.  I can't find this folder. I have tried to completely unistall iTunes through the Control Panel, but it wouldn't let me: I tried going directly to the files themselves, but cannot uninstall. Any help would be greatly appreciated. System OS: Win XP SP 3.

    Set the permissions for Everyone in the folder in which CCPackager created, to "Read/Write" enabled. This is strange since there is only an administrator account on the Mac (and that account already has read/write), but it seems to resolve the issue.

  • HT2513 How can I fix iCal that is jammed/frozen/nonresponsive after trying to past in a calendar entry.  I've restarted program and computer.  Unable to remove entry and associated message "the server responded with an error" ICal stuck updating.  Help?

    I was trying to past an entry and the iCal program froze with an error message that can't be deleted, the program stuck indicating updating and totally non-reponsive.  i can only exit by force quit.  It is stuck on yesterday which is the day I was trying to paste an entry.  I think the entry was too large.  How can I get out of this.  i've restarted the program and the ocmputer but it doesn't change.  I wonder if I could use time machine to go back to a previous cal version?  Any ideas?  I have my cal also on iphone and at icloud so I am not at a total loss.  Except that i cal is now totally non functional. 

    Joe,
    Try removing the com.apple.iCal.plist file from your Macintosh HD/Users/yourusername/Library/Preferences Folder. To find that folder, use Finder>Go Menu>Depress the "Option" key>Library. Drag the .plist file to your desktop, and log out/in or restart and check iCal for functionality.

  • After I purchased the creative cloud, I receive an error message when trying to use premier pro cc 2014.  It states "Adobe Premiere Pro 2014.2 has stopped working.  A problem has caused it to stop working.  Windows will close the program and notify you of

    After I purchased the creative cloud, I receive an error message when trying to use premier pro cc 2014.  It states "Adobe Premiere Pro 2014.2 has stopped working.  A problem has caused it to stop working.  Windows will close the program and notify you of a solution."  When I used the trial I never received this message.  Now after purchasing it I receive this error each time I open PP and am unable to use. it.  Any ideas or support to fix this issue?

    What does the detailed crash report say?
    And have you updated your video card drivers from the GPU maker's website? (most crashes on launch are due to bugs in out of date video card drivers)

  • Itunes was working fine. Tries to install latest upgrade and get error message about an invalid character in the path "Program Files (x86)". PC, Win7, nothing else appears to be having same issue.

    Itunes was working fine. Tried to install latest upgrade and get error message about an invalid character in the path "Program Files (x86)". PC, Win7, nothing else appears to be having same issue. Program still works, simply cannor upgrade.

    Thanks b noir,
    I tried this solution without success. After FixIt ran and didn't find a problem, either in looking for issues with "software upgrade" or "iTunes" it kindly offered to help me uninstall iTunes. I had thought of this as a possibilty but it seems to me that if you do that you lose a lot of "non-native-to-Apple" information you might have entered. I did this once and recovery was painfull. Is there a way to uninstall iTunes without losing all of that sort of thing? Any help would be appreciated.

Maybe you are looking for

  • How Did You Set-up Your CNAME at GoDaddy

    I'm looking at the GoDaddy control panel for domains and comparing to what Apple says to do and the fields don't match up. What did you enter into the GoDaddy fields --- 1) Enter an Alias Name: 2) Points To Host Name: 3) TTL: And most importantly, di

  • Message type DOCMAS and CLFMAS

    Hello , We are transferring the DMS data from one client to another client using ALE technic . Message types used in it are DOCMAS and CLFMAS . While transferring Idoc we face a problem . There is a delay in posting the document from Message type DOC

  • Cs6 Beta Uncontrolled Cursor

    After I installed the Photoshop CS6 Beta the cursor on my Mac Book Pro went crazy and was uncontrollable.  I uninstalled cs6 and now my computer is fine.  Did anyone else have that problem?  I would like to use the cs6 but I hesitate to install it ag

  • PS CS2 with AE CS3 problem

    I have a workstation with AE CS3 and PS CS2 installed. AE, ImageReady and Bridge work fine but PS won't work at all. It launches but that's about all. No drop down menus work and it must be quit using CTRL, ALT DELETE. Any help appreciated. Thanks

  • Cannot bring program window into main screen... don't know why?!?!?

    hi all... any help would be greatly appreciated on the below: I am using a music program (torq by m-audio) and did not have any problems with it. Last night, when I tried to open the application, it is bouncing in the dock when it is loading. after i