A problem about bapi dd check

Hi, all.
    I tried to use arfc2 to call a bapi to get PO data from R/3 in 7.1.1. So I did model binding for my component controller`s context. Then I tried to get the result from these parameters programly. But I always got dd check error.
For example. If an attribute "A" `s data type is int. But the attribute "A" is empty in R/3, so it always returns " " to the attribue "A". Then it will raise an dd check error. The bapi which I used is BAPI_PO_GET_LIST. There are many attributes with this bapi. How can I solve this problem?
Thanks.

Hi,
please check if the below link can help in your case.
[https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_db/~form/handler]
Regards
Narendra
Edited by: Narendra Singh on Apr 3, 2009 11:54 AM

Similar Messages

  • [SOLVED]problem about wc to check the amount of the processes through

    #problem about wc to check the amount of the processes through ps
    hi.this is the processes current
    $ps
    PID TTY TIME CMD
    2674 tty3 00:00:00 bash
    2689 tty3 00:00:00 mocp
    2746 tty3 00:00:00 ps
    $ps | wc -l
    5
    The problem:since there are 4 lines of ps output here,why wc -l shows the number "5"?
    And if i redirect ps to a file and then check the lines number with "wc -l",it's "4".
    $ps > out
    $cat out
    PID TTY TIME CMD
    2674 tty3 00:00:00 bash
    2689 tty3 00:00:00 mocp
    2753 tty3 00:00:00 ps
    $cat out | wc -l
    4
    Any idea?Thanks.
    Last edited by wanghonglou82 (2011-10-07 06:49:44)

    falconindy wrote:Working as intended. wc is running when you pipe ps to it.
    hi.thank you.
    The clue you bring here sounds reasonable.But a little more confusion to me comes around.I will check the bash rules for digest commands.thanks.

  • A Problem about BAPI

    Hi,everyone.
    Now i want to use JCo and BAPI to execute a function(create sales order ps:transaction code is VA01).
    How do i to find the BAPI that i need?
    And where can i find some documents about BAPI?
    Thx~~ a lot
    PS:if this topic isn`t suitable in Java Programming,plz tell me thx ,^^ 
                         by Louis

    HI Louis,
       You can find out the bapis , by running transaction -bapi (Bapi Explorer).
    Here u get a list of standard BAPI's given by SAP.
    u can select appropriate bapi  from here.. Associated with each bapi documentation is there . from this u will get a clear picture of import params ,export params and tables.
    Now to execute  BAPI  or RFC using JCO,
    please go through this sample piece of code. fill the params of standard jco methods with appropriate parameters for your use.
    private static JCO.Client client;
    private static JCO.Repository repository;
    client =
                        JCO.createClient(
                             "<client num>",
                             "<user name>",
                             "<password>",
                             "en",
                             "<server ip or server name>",
                             "<instance number>");
                   client.connect();
                   repository = new JCO.Repository("REP", client);
    try {
    IFunctionTemplate m_read_container;
    m_read_container =repository.getFunctionTemplate("<RFC Name>");
    JCO.Function function_read_cont  = m_read_container.getFunction();
    JCO.ParameterList importparam =
    function_read_cont.getImportParameterList();
    importparam.setValue(<Your value to pass>, "<Import parameter name as in RFC>");
    client.execute(function_read_cont);
    JCO.ParameterList tables =
       function_read_cont.getTableParameterList();
    //For Tables
    JCO.Table container = tables.getTable("<Your table Name from table parameter>");
    for (int iCtr = 0; iCtr < container.getNumRows(); iCtr++) {
    container.setRow(iCtr);
    Strin value = container.getString("<Tale fieldName>");
    JCO.ParameterList exp_abs_read =
    function_read_cont.getExportParameterList();//For Export Params
    JCO.Structure st_abs_read =
    exp_abs_read.getStructure("<If structure using then give structure name>");
    for (int iCtrst = 0;iCtrst < st_abs_read.getNumFields();
                             iCtrst++) {
                             //          String str_field_val = st_abs_read.getString("<Structure Field Name>"));
    String fieldName = st_abs_read.getName(iCtrst);
    } catch (Exception e) {
                                 Regards
                                  Kishor Gopinathan

  • Problem about bapi BAPI_ACC_DOCUMENT_POST

    Field rstgr in bseg table am not able to field this field in BAPI, what can i do ,help me ,pls.

    Hi,
    you could play a dangerous game, modifying the value in the memory of the Abap program. I give you an example :
      field-symbols: <field1> type any ,
                     <field2> type any .
      data : w_field1(30) value '(SAPMM06I)PREIS_KSCHL' ,
             w_field2(30) value '(ZZ_FG007)KSCHL'.
      assign (w_field1) to <field1>.
      check sy-subrc eq space.
      assign (w_field2) to <field2>.
      check sy-subrc eq space.
      move <field2> to <field1>.
    in this code I will modify the value of of the field PREIS_KSCHL in the program SAPMM06I (I'm not in this program when I do that).
    but ... it's quiete dangerous
    Fred

  • A Problem about BAPI (BAPI_SALESORDER_CREATEFROMDAT2)

    Hi, all.
    Now i try to use BAPI to create order,following is part of my codes:
    function=this.createFunction("BAPI_SALESORDER_CREATEFROMDAT2 ");
                       JCO.ParameterList input = function.getImportParameterList();
                       JCO.ParameterList table = function.getTableParameterList();
                       JCO.Structure ORDER_HEADER_IN = input.getStructure("ORDER_HEADER_IN");
                        ORDER_HEADER_IN.setValue("TA","DOC_TYPE");
                        ORDER_HEADER_IN.setValue("3000","SALES_ORG");
                        ORDER_HEADER_IN.setValue("10","DISTR_CHAN");
                        ORDER_HEADER_IN.setValue("00","DIVISION");
    JCO.Table ORDER_PARTNERS = table.getTable("ORDER_PARTNERS");
    ORDER_PARTNERS.setValue("SP","PARTN_ROLE");
                  ORDER_PARTNERS.setValue("3250","PARTN_NUMB");
    JCO.Table ORDER_ITEMS_IN = table.getTable("ORDER_ITEMS_IN");
                  ORDER_ITEMS_IN.setValue("P104","MATERIAL");
                  ORDER_ITEMS_IN.setValue("10","ITM_NUMBER");
    I ha already setup "ORDER_HEADER_IN"`s parameters.
    But i still can`t create an order successfully.
    And i got two message:
    1.Plz enter sold-to party or ship-to party
    2.Sales documents was not changed.
    Can anyone help me solve this situation?

    hi Louis,
       Checkout the link..,
      http://www.henrikfrank.dk/abapexamples/Java/sapjava_createsalesorder.htm
      hope it helps..,
    regards,
    Vinoth

  • Question about BAPI Performance

    I am currently evaluating options to implement interface between legacy systems and SAP. We have a requirement to post goodsmovement from external application. As some of my team claim that the BAPI approach can cause performance problems. I would like to cross check whether the claim is true.
    And if it is, May I have your advice how can we prevent such problem about performance?
    Ho w can I get additional source of information?
    Kindly advise.
    The BAPI which we are going to use is BAPI_GOODSMVT_CREATE
    Thank you

    No performance problem is there.
    Infact BAPI is advisable against BDC. Also since BAPI is like FM there is no issue.
    I am using it in lot of the objects we have created.
    Cheers
    Regards
    Nishant

  • Problem about sales order stock stock transfer and batch determination

    Hi, experts, I get a problem about sales order stock stock transfer and batch determination.The following is the current situation of my system:
      In OMCG I assigned search procedure ME0001 to both 311 and 311 E and ticked check batch. After that, I found  that if iI need to tranfer unrestricted-use material from storage location 1000 to 2000 with movement type 311, I just need to input * at the field batch, then the system will display all of the available batches. But for the transferring of sales order stock with movement type 311 E, after I input * at the batch field, no batch is displayed and there is also no message from the system.
      Can anybody help me? Is there anything else I need to do? Thanks very much.

    I think my question is not clear, actually I tried 562 E , 411 E and 413 already. all the transaction looking for the sales order but unfortunatly the sales order is deleted  from SAP.

  • Hello apple I have the problem with my iPhone and my friends have this problem too. My iPhone have the problem about calling and answer the call. When I use my iPhone to call I can't hear anything from my iPhone but the person that I call can answer it bu

    Hello apple
    I have the problem with my iPhone and my friends have this problem too.
    My iPhone have the problem about calling and answer the call. When I use my iPhone to call I can't hear anything from my iPhone but the person that I call can answer it but when answer both of us can't hear anything and when I put my iPhone to my face the screen is still on and when I quit the phone application and open it again it will automatic call my recent call. And when my friends call me my iPhone didn't show anything even the missed call I'm only know that I missed the call from messages from carrier. Please check these problem I restored my iPhone for 4 time now in this week. I lived in Hatyai, Songkhla,Thailand and many people in my city have this problem.
    Who have this problem??

    Apple isnt here. this is a user based forum for technical questions. The solution is to restart, reset, and restore as new which is in the manual after that get it replaced for hard ware failure. if your within your one year warranty its replaced if it is out of the warranty then it is 199$

  • Problem about updating to Mac OS X 10.5.3

    Hi there,
    I just bought my Macbook two months ago. I encounted a problem about updating it to the latest version of MAC OS X. The system reminded me to restart, I proceed. Everythig looked just fine until a poping up window shown "Mac OS X 10.5.3 pacakage can not be validated". Dose anyone know what did that mean? How can I update my little mac?

    Hi Hummer,
    First, welcome to Apple discussions.
    To answer your question, your computer checks all downloaded updates before installing them. It does this to make sure it's got the entire file and that the update will install correctly. The fact that validation fails on your machine probably means the file did not download correctly.
    To install 10.5.3, simply go to this website, download the "10.5.3 combo update" and then run it on your Mac: http://www.apple.com/support/downloads/

  • Problem about space management of archived log files

    Dear friends,
    I have a problem about space management of archived log files.
    my database is Oracle 10g release 1 running in archivelog mode. I use OEM(web based) to config all the backup and recovery settings.
    I config "Flash Recovery Area" to do backup and recovery automatically. my daily backup schedule is every night at 2:00am. and my backup setting is "disk settings"--"compressed backup set". the following is the RMAN script:
    Daily Script:
    run {
    allocate channel oem_disk_backup device type disk;
    recover copy of database with tag 'ORA$OEM_LEVEL_0';
    backup incremental level 1 cumulative copies=1 for recover of copy with tag 'ORA$OEM_LEVEL_0' database;
    the retention policy is the second choice, that is "Retain backups that are necessary for a recovery to any time within the specified number of days (point-in-time recovery)". the recovery window is 1 day.
    I assign enough space for flash recovery area. my database size is about 2G. I assign 20G as flash recovery area.
    now here is the problem, through oracle online manual, it said oracle can manage the flash recovery area automatically, that is, when the space is full, it can delete the obsolete archived log files. but in fact, it never works! whenever the space is full, the database will hang up! besides, the status of archived log files is very strange, for example, it can change "obsolete" stauts from "yes" to "no", and then from "no" to "yes". I really have no idea about this! even though I know oracle usually keep archived files for some longer days than retention policy, but I really don't know why the obsolete status can change automatically. although I can write a schedule job to delete obsolete archived files every day, but I just want to know the reason. my goal is to backup all the files on disk and let oracle automatically manage them.
    also, there is another problem about archive mode. I have two oracle 10g databases(release one), the size of db1 is more than 20G, the size of db2 is about 2G. both of them have the same backup and recovery policy, except I assign more flash recovery area for db1. both of them are on archive mode. both of nearly nobody access except for the schedule backup job and sometime I will admin through oem. the strange thing is that the number of archived log files of smaller database, db2, are much bigger than ones of bigger database. also the same situation for the size of the flashback logs for point-in-time recovery. (I enable flashback logging for fast database point-in-time recovery, the flashback retention time is 24 hours.) I found the memory utility of smaller database is higher than bigger database. nearly all the time the smaller database's memory utility keeps more than 99%. while the bigger one's memory utility keeps about 97%. (I enable "Automatic Shared Memory Management" on both databases.) but both database's cup and queue are very low. I'm nearly sure no one hack the databases. so I really have no idea why the same backup and recovery policy will result so different result, especially the smaller one produces more redo logs than bigger one. does there anyone happen to know the reason or how should I do to check the reason?
    by the way, I found web based OEM can't reflect the correct database status when the database shutdown abnormally. for example, if the database hang up because of out of flash recovery area, after I assign more flash recovery area space and then restart the database, the OEM usually can't reflect the correct database status. I must restart OEM manually to correctly reflect the current database status. does there anyone know in what situation I should restart OEM to reflect the correct database status?
    sorry for the long message, I just want to describe in details to easy diagnosis.
    any hint will be greatly appreciated!
    Sammy

    thank you very much, in fact, my site's oracle never works about managing archive files automatically although I have tried all my best. at last, I made a job running daily to check the archive files and delete them.
    thanks again.

  • A switch on/off problem about the relay in a loop

    hi group:
    I am developing a project based the Ni-sci-1160. Now I meet a problem about switch on/off in a loop.
    for example:  I creat a loop, and continually check a boolean. if the boolean is true, then the realy is closed, otherwise the relay is open. The problem is when I make the boolean is true,  the corresponding relay is not always on,  but just on-off, on-off,on-off.  I don't know why? Is there any good idea to fix it?
    the easy example codes is attached here , thanks for you help.
    Attachments:
    relay_problem.vi ‏19 KB

    Try moving that first DAQmx function out of the while loop.  Since it is called switch set and Reset, I'm guessing it is resetting the status of the switch every iteration of the while loop which probably means setting it back to false.  It looks like an initialization type of function which means it should only be run once.

  • Problem About J2EE RI and PetStore Demo

    Hello ^^
    I have a problem about j2ee & petstore.
    I trird to set up sun j2ee RI 1.3.1 + pet store on win2000 or redhat.
    Everything run ok. But when I changed web port 8000 to any port (included
    80),
    j2ee ri server showed the error message below :
    java.net.ConnectException: Connection refused: connect
    java.security.PrivilegedActionException: javax.servlet.ServletException:
    An error occurred while evaluating custom action attribute "items" with
    value "${catalog.categories.list}": An error occurred while getting
    property "categories" from an instance of class
    com.sun.j2ee.blueprints.catalog.client.CatalogHelper
    I used root to start j2ee & cloudscape on linux,
    and changed database to postgresql, too.
    but the error is the same.
    How to solve this problem ??
    Thank you ~~
    Jovi

    Hi,
    I dont know how useful my reply would be since the question was posted about 2 yrs back, but just wanted to reply in case somebody faces the same problem.
    If you change the web port to some other port (other than 8000) then please check the sun-j2ee-ri.xml files. Actually the CatalogDAOSQL.xml is read using a url which includes the port you are running the server on. So, you need to change the port even in the sun-j2ee-ri.xml file.
    One of the sun-j2ee-ri.xml files, where you need to make the change is in the $PETSTORE_HOME/src/apps/petstore/src/sun-j2ee-ri.xml file.
    Other one is in $PETSTORE_HOME/src/apps/supplier/src/sun-j2ee-ri.xml file.
    Look for other sun-j2ee-ri.xml files where the url is hardcoded. (I think the two sun-j2ee-ri.xml files mentioned above, are the only places you need to make the change, but still look for other files in case i have missed)
    Change those urls and redeploy the ears.
    Hope this solves the problem.
    Regards,
    Archit

  • Problem about using Oracle Form 6i to connect Oracle Database 10g express.

    Sorry to interrupt all of you.
    I have encountered a problem about using Oracle Form 6i to connect Oracle Database 10g express.
    As I would like to
    I use Oracle Net8 Easy Config to create a connection.
    According to "tnsnames.ora", the paramater of connection is as follows;
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    (CONNECT_DATA = (SID = XE))
    Unfortunately, when I use Oracle Net8 Easy Config to test the connection, an error message is prompted as follows:
    Connecting....
    The test did not succeed.
    ORA-03106: fatal two-task communication protocol error
    There may be an error in the fields entered
    or the server may not be ready for a connection.
    You can check the server and retry, or continue.
    After I google it, I still have no idea how to solve the problem. I would like to ask, could anyone mind providing some hints or solution to address the issues.
    Thanks for your assistance in advance.

    I don't believe the Net8 Easy Config (NEC) will create a compatible entry in the tnsnames.ora. I have Forms 6i running successfully against a 10g Express database, but I did not use the NEC - I created the entry myself. Here is the entry I use:
    XE=
      (DESCRIPTION=
        (ADDRESS=
          (PROTOCOL=TCP)
          (HOST=<<servername or IP address>>)
          (PORT=1521)
        (CONNECT_DATA=
          (SERVER=dedicated)
          (SERVICE_NAME=XE)
      )Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • A problem about gcc

    I installed Solaris8 x86 on my PC successfully, including software companion CD, which was installed under /opt.
    Following was added in .profile :
    PATH=/opt/sfw/bin:$PATH
    Then I created two programs in a subdirectory:
    C code, HelloWorld.c, compiled using gcc, run ./a.out, everything OK;
    C++ code, HelloWorld.cc, compiled using g++, ./a.out was generated, it seemed ok. But when I tried to run ./a.out, got following error message:
    $ ./a.out
    ld.so.1: ./a.out: fatal: libstdc++.so.2.10.0: open failed: No such file or directory
    Killed
    The same C++ HelloWorld compiled and run good on another Sparc/Solaris7.
    Anybody can tell me what the problem is and how to solve it?

    Edward_King wrote:
    I enter a problem about gcc,I installed solaris 10,and then login with root user,I want to use gcc,
    #pwd
    #gcc
    but I find there is no gcc,A better way to find gcc is to:
    grep gcc /var/adm/install/contents
    On a Solaris system if you install the developer or greater cluster then gcc should be installed into:
    /usr/sfw/bin
    so you can start by just checking there.
    PATH=$PATH:/opt/gnome/bin:/usr/local/bin:/opt/netscape:/usr/ccs/bin
    export PATH I'm not sure why you would need /opt/gnome or /opt/netscape but whatever.
    1 how can i know root user use sh or csh user?Look at the /etc/passwd file.
    2 I can't find .profile or .cshrc file in / directory,where are they? Which directory should I create profile or .cshrc file? After I create profile or .cshrc file,which command I can run to make profile or .cshrc file go function? Need I reboot the solaris system?By default root doesn't have one so just create using vi.
    vi /.profile
    Thanks in advance!regards,
    alan

  • Problem about expanding folder

    I am currently installing business package according to portal best practice.
    Most of functionalities seems to be fine but I face a problem about expanding folders
    for some role such as MM Master. For the same role, those worksets w/o folder
    (directly call R/3 transaction) are working fine.
    When expanding folders, we always got result showing "Loading..." and nothing
    is shown for very long time.
    Kindly advise how to resolve or further investigate such issue.
    Note: Normal folder expanding of standard admin folder does not have such problem.

    Areeat,
    I think you're talking about the "Detailed Navigation". This is a known problem on NW04 SP18 & NW04s SP8/9. Check note 976331 for a hotfix.
    kr, achim

Maybe you are looking for

  • Discoverer 10G Plus Questions

    Hi We're in the process of upgrading from Discoverer 4 (APPS EUL) to 10G. We're doing away with the Desktop client. Most users will be given access to Discoverer Viewer and other users will be given access to Plus. We have recently upgraded or DEV in

  • I Need Help!!! Nokia 6730c.

    Hello! I have a problem with my Nokia 6730. I bought it 2 weeks ago. Phone for some reason very slow, long reacts to pressing buttons, and for some unknown reason, restarts and resets the time. I can not install it on third-party applications, for ex

  • Jdb in java 1.3.1 not listing source file...

    Hi, I'm trying to use the remote debugging option Xdebug for my server. If I attach using jdb -attach, I'm not able to list my source file using list command. It says Source file not found. I tried various means, -Denv.class.path, etc. nothing works.

  • Batch match merge pdf documents from different sources

    Hello, I'm using Acrobat 9 Pro and I'm new to Acrobat in general. I have 500 clients who I want to send hard copy reports.  There are 500 pdf files with graphs/data, and 500 pdf files that are customized business letters.  They could be printed out a

  • Automatic start with JWS/JNLP

    Hi all, Is it possible to use JWS/JNLP to automatically start my application when the computer start or when the Windows session is opened, and how ? Thanks, Xavier