Issue in BAPI_PO_CREATE1 in  extension structure while populting data

Hi,
Getting issue when populating data in custome field through bapi_po_create1.
Requiredment
Need to populate different different shipment type number in every line item ,but when i am using  below code it only populating
last shipment type number in every line item while creation of STO.
Please see the below code for populating data in custome field
   CLEAR wa_extensionin.
        MOVE 'BAPI_TE_MEPOITEM' TO wa_extensionin-structure.
         wa_bapi_te_mepoitem-po_item = wa_itab-item.
*        wa_bapi_te_mepoitem-zdummy  = c_x.
        wa_bapi_te_mepoitem-zvsart  = wa_itab-shp_type.
        CONCATENATE wa_bapi_te_mepoitem-po_item
                    'X00000000000000000000000000000' wa_bapi_te_mepoitem-zvsart
                    INTO  wa_extensionin-valuepart1.
        APPEND wa_extensionin TO ltab_extensionin.
        CLEAR wa_extensionin.
  MOVE 'BAPI_TE_MEPOITEMX' TO wa_extensionin-structure.
        wa_bapi_te_mepoitemx-po_item = wa_itab-item.
       wa_bapi_te_mepoitemx-zvsart = 'X'.
        CONCATENATE wa_bapi_te_mepoitemx-po_item
                    '0000000000' wa_bapi_te_mepoitem-zvsart
                    INTO  wa_extensionin-valuepart1.
        APPEND wa_extensionin TO ltab_extensionin.
please some one help me how to solve it.
Regards,
Siba

Try with this piece of code:
DATA:
wa_bapi_te_mepoitem LIKE bapi_te_mepoitem,
wa_bapi_te_mepoitemX LIKE bapi_te_mepoitemx.
wa_bapi_te_mepoitem-po_item = wa_itab-item.
wa_bapi_te_mepoitem-zvsart  = wa_itab-shp_type
wa_extensionin-structure = 'BAPI_TE_MEPOITEM'.
wa_extensionin-valuepart1 = wa_bapi_te_mepoitem.
APPEND wa_extensionin TO ltab_extensionin.
wa_bapi_te_mepoitemX-po_item = wa_itab-item.
wa_bapi_te_mepoitemX-zvsart  = 'X'
wa_extensionin-structure = 'BAPI_TE_MEPOITEMX'.
wa_extensionin-valuepart1 = wa_bapi_te_mepoitemX.
APPEND wa_extensionin TO ltab_extensionin.
Regards,
Felipe

Similar Messages

  • Data type structure while picking data from MS Access database

    Dear All,
    I have to start on new interface in which data from MS Access database will be updated in the z-table in SAP. Is there any blog available which gives step by step process for MS Access-XI-RFC interface. Or please guide me on what should be the structure of the Data Type for picking the data from the MS Access database.
    Regards,
    NJ

    Hi Nishu,
    Sender side the structure is as follows
    db_sen_dt
    ..... emp_row
    ..........  f1
    ..........  f2
    Structure is complex then check this blog
    /people/alessandro.berta/blog/2005/10/04/save-time-with-generalized-jdbc-datatypes
    JDBC to RFC Scenario, but it is synchronous
    SYNCHRONOUS SOAP TO JDBC - END TO END WALKTHROUGH  
    Also check this link
    Regards
    Ramesh

  • Deadlock issue while sending data from PI to JDBC !!!

    Hi All,
    We are getting below error while sending data from PI to JDBC (Database).
    Error - JDBC message processing failed; reason Error processing request in sax parser: Error when executing statement for table/stored proc. 'store_order_details' (structure 'Order_details_Statement'): com.microsoft.sqlserver.jdbc.SQLServerException: Transaction (Process ID 61) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
    This is happening when more than one PI message is trying to deliver data at the same time to database.
    Can anyone let us know the root cause of this issue and how we can rectify this.
    Is there some setting which we can use to do parallel processing as Delivering one message at a time to database is causing performance issues & taking lot of time.
    Thanks
    Neha Verma

    Hello Neha,
    Strange but can please get below information.
    Please check with the DB admin about if the user is getting locked or is there any hanging threads related to user.
    Also confirm with DB admin if the exclusive lock is on table or on the row when you try insertign or updating information.
    You can share the user from the receiver channel.
    Regards,
    Hiren A.

  • Can we use global structure while designing a query on  a multiprovider

    hai friends,
                     If i build a multiprovider on cubes for which the query design  on those cubes contains global sturctures ,
    Can i use those global structures while designing a query on a multiprovider (which contains those cubes)

    Hi Vamsi,
    The structure from the base cubes will not automatically be available for the queries created on the multiprovider. The only way to get the structure there is to copy a query from the base cube to the multiprovider. You can use transaction RSZC to do this.
    Hope this helps...

  • Error while passing date parameters in procedure and commit issue

    Hi
    1) I am doing a archiveing records and pls find my code below and i have couple of issue,pls find my code and want to ensure the commit is happening every 100000 rows inserted but i am archeiving a huge table but when i checks the table frequently it shows 0 records and after it shows count the actual rows around 20 million records.How can i ensure it commiting on every 100000 records. pls find my code my db version is 10g on windows
    CREATE OR REPLACE PROCEDURE doins as
    cnt number:=0;
    FOR x IN (select * from Call_log
    where trunc(c_date) = to_date('11-Aug-2008','DD-MON-YYYY'))
    LOOP
    INSERT INTO call_arch
    select * from Call_log
    where trunc(c_date) = to_date('11-Aug-2008','DD-MON-YYYY');
    cnt := cnt + 1;
    IF( cnt = 10000 )
    THEN
    cnt := 0;
    commit;
    END IF;
    commit;
    END LOOP;
    2) Error while passing date as parameter i am getting following errors while passing date parameter pls find my code and errors
    CREATE OR REPLACE PROCEDURE doins(p_date date) as
    cnt number:=0;
    begin
    FOR x IN (select * from Call_log
    where trunc(c_date) = to_char(p_date,'DD-MON-YYYY'))
    LOOP
    INSERT INTO call_arch
    select * from Call_log
    where trunc(c_date) = to_char(p_date,'DD-MON-YYYY');
    cnt := cnt + 1;
    IF( cnt = 10000 )
    THEN
    cnt := 0;
    commit;
    END IF;
    commit;
    END LOOP;
    end;
    exec doins(11-Aug-2008) then gives
    SQL> exec doins(11-Aug-2008);
    BEGIN doins(11-Aug-2008); END;
    ERROR at line 1:
    ORA-06550: line 1, column 16:
    PLS-00201: identifier 'AUG' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    if i gave exec doins(11-08-2008) it gaves
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'DOINS'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    rgds
    rosh

    CREATE OR REPLACE PROCEDURE doins(p_date varchar2) as
    cnt number:=0;
    begin
    FOR x IN (select A.rowid,A.* from Call_log A
    where trunc(c_date) = to_date(p_date,'DD-MON-YYYY'))
    --hope that's c_date columne is   DATE datatype
    LOOP
    INSERT INTO call_arch
    select * from Call_log
    where rowid=x.rowid;
    cnt := cnt + 1;
    IF( cnt = 10000 )
    THEN
    cnt := 0;
    commit;
    END IF;
    commit;
    END LOOP;
    end;
    thats your correct procedure - but NOT CORRECT ISSUE.
    You should use bulk collect with limit clause and forall clause to do it faster!!! Or Merge clause.

  • "Transfer structure  does not exist" while deleting data from a DSO

    Hello experts,
    while deleting data from a DSO I get the following messages:
    @5B\QInformation@     Database table /BIC/AAKIVO1400 was deleted and recreated
    @5C\QError@     Transfer structure  does not exist
    When I try it twice process works without any problems. I get then the following msgs:
    @5B\QInformation@     InfoCube / DataStore object "AKIVO14" contains no data (yet)
    @5B\QInformation@     Database table /BIC/AAKIVO1400 was deleted and recreated
    So I think the first deletion works but ended with errors. What could be the reason?

    Please check if data from new and chage log table is also deleted.
    For the error message : Do you have 3.5 flow ? Check your transfer structure , if it is active and then again try to right click and delete data from DSO.
    - Monika

  • Issue While sending data to Webserver

    Hi All,
      I am facing an issue while sending data to a webserver. My scenario is SAP(Proxy) to XI to Webserver. It is an asynchronous scenario. The same communication channel and same WSDL is used to send many Interfaces but when I am sending data for a particular Interface I am facing the issue "SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 400 Bad Request"
    Few points for reference -
    1. I am sending valid data to the webserver(Confirmed by the webserver guy).
    2. The WSDL is the latest one and the same WSDL is used at their end to receive the data.
    3. The schema I am using to send the data is also the latest ones.
    4. The same payload when sent through SOAPUI tool reaches the web server.
    5. The same communcation channel is used to send data for all the messages. All other messages are reaching the webserver except this message.
    Can anyone please provide me some solution for this issue.
    Thanks in advance.
    Regards,
    Sarat

    SInce you are using only one receiver channel for all WSDL operations, I hope you are setting SOAP action for each message type (operation) using dynamic configuration during mapping or at module level(in the soap receiver channel using DC bean).
    >> 5. The same communcation channel is used to send data for all the messages. All other messages are reaching the webserver except this message.
    Cross verify again all the design and configurations. check the MONI for Dynamic configuration header for this particular message if you are setting the same during mapping.
    >> 4. The same payload when sent through SOAPUI tool reaches the web server.
    Finally you can use some Sniffer tools to verify the requests that are being sent from XI and you can compare with SOAP UI tool request which is sending correct request in your case.

  • Extension structure for a bapi to create project definition and wbs element

    Hi,
    is there a bapi that have an extension structure for custom fields, that can be used to create a project with wbs elements.
    thanks for your help.

    i yhink BAPI_PROJECT_MAINTAIN  dont have extension structure, so i cant use it because i have custom fields.
    BAPI_BUS2054_CREATE_MULTI seems meet my requirement because it has extension structure,

  • Can i ulter my COA, calendar and Multi Org structure while upgrading

    Hi All,
    I am working on a upgrade project and i have a querry on my client requirement...
    1. Can we alter COA structure while upgrading like adding OR deleting segments to the existing structure
    2. Can i change my calendar type and number of periods
    3. can i re organize my multiorg structure like adding or merging LE, OU and INV
    Could you please share me your thoughts..
    Thanks in advance...

    seen the exact same question answered in the below link .....
    http://www.erpstuff.com/forums/topic.asp?TOPIC_ID=9946
    Regards,
    Ivruksha

  • Is there any limitation in xtract structure,while doing enhancement.

    is there any limitation in xtract structure, while doing enhancement.

    Hello Satish
    There is no limitation as such defined by SAP but let me teel you one thing, if your extract structure contains a lot of enhancement than it s better you go for using two extractor and then use Multiprovider for viewing all the data....basically when you enhance structure you customer exits which slower down the performence....
    For example you have 0FI_GL_4 extructure and want to see the payment detail by some SD attributes like sales office divisoion..bla bla bla...if small enhancement is there you can include these field in 0FI_GL_4 extract structure but if it is significant than you should create another extractor for getting SD related data and merge them in BW side in Multiprovider
    Thanks
    Tripple k

  • Why do we deactivate the extract structure while doing extraction

    Hi experts please let me know
    why do u deactivate the extract structure while doing extraction

    Hi,
    We will never deactivate the extract structure while doing extraction.
    When we try to appends some new fields to the extract structure, then automatically it gets deactivated. After we append the fields, we have to activate extract structure and data source.
    Finally, the DS has to be replicated in BW.
    Regards,
    Suman

  • Verizon iPhone 5, 64GB black - is anyone having issues with a very choppy conversation while talking on the phone.  Both my wife and I have the same phones and are both having the same issue.  We can only hear every other word.

    Verizon iPhone 5, 64GB black - is anyone having issues with a very choppy conversation while talking on the phone?  Both my wife and I have the same phones and are both having the same issue.  We can only hear every other word of the person we are talking to.  This happens at home, on the road and in the downtown area while calling both cellphones and landlines. It is intermittent, so we don't know exactly when it will reoccur.  Absolutely no problem with data.  The data speed is great.

    "Wireless devices use radio transmissions, so unfortunately you can't get Service if your device isn't in range of a transmission signal. And please be aware that even within your Coverage Area, many things can affect the availability and quality of your Service, including network capacity, your device, terrain, buildings, foliage and weather."
    Customer Agreement | Verizon Wireless
    While there may be an issue in your area, it is suggested that you don't use wireless service if it's a life or death situation, such as the one you've described.

  • Special character issue while loading data from SAP HR through VDS

    Hello,
    We have a special character issue, while loading data from SAP HR to IdM, using a VDS and following the standard documentation: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e09fa547-f7c9-2b10-3d9e-da93fd15dca1?quicklink=index&overridelayout=true
    French accent like (é,à,è,ù), are correctly loaded but Turkish special ones (like : Ş, İ, ł ) are transformed into u201C#u201D in Idm.
    The question is : does someone know any special setting to do in the VDS or in IdM for special characters to solve this issue??
    Our SAP HR version is ECC6.0 (ABA/BASIS7.0 SP21, SAP_HR6.0 SP54) and we are using a VDS 7.1 SP5 and SAP NW IdM 7.1 SP5 Patch1 on oracle 10.2.
    Thanks

    We are importing directly to the HR staging area, using the transactions/programs "HRLDAP_MAP", "LDAP" and "/RPLDAP_EXTRACT", then we have a job which extract data from the staging area to a CSV file.
    So before the import, the character appears correctly in SAP HR, but by the time it comes through the VDS to the IDM's temporary table, it becomes "#".
    Yes, our data is coming from a Unicode system.
    So, could it be a java parameter to change / add in the VDS??
    Regards.

  • Structure while get out | sair da estrutura while

    Hello Guys,
    I am developing a software, and within this there is a case structure.
    Within the structure there is a case structure "While".
    When I start the software,  ​​is then immediately ready for use, when I click
    on the button "turn on" the software enter in this "while structure" I quoted just above and I can't get out.
    I can't click anything else, how can I exit the "while structure" when  I  want?
    Thank you.
    Bom dia Pessoal,
    Estou desenvolvendo uma aplicação, e dentro desta existe uma estrutura case.
    Dentro da estrutura case existe uma estrutura "While".
    Quando eu inicio a aplicação ele padroniza os valores e logo em seguida fica pronto para uso, quando eu clico
    no botão "Ligar" o labview entra nesta estrutura While que citei logo acima e eu não consigo mais sair.
    Eu não consigo clicar em mais nada, como eu posso sair do while no momento em que eu quiser?
    Muito Obrigado.

    You'll have to program it so that a True boolean will go to the stop terminal of the while loop.
    But since you haven't posted your VI, it is impossible to see what you are doing now so we can tell you how to correct it.

  • Extension Structure in BAPI BAPI_FIXEDASSET_CREATE1

    Hi Experts,
    I have added a Z field in ANLZ table . In my Z program i am using BAPI_FIXEDASSET_CREATE1 for asset creation.
    Now i need to pass data to Z field in ANLZ table using above BAPI.In above mentioned BAPI in extension structure i can only find BAPI_TE_ANLU and nothing like BAPI_TE_ANLZ so how can i use extension structure for updation of Z field in ANLZ.
    Please suggest.
    Regards,
    Kaustubh.

    Hi
    Jusat try wid dis structure  BAPI_TE_ANLU just add your zeee fields in this structure and just paas the values in the *BAPIPAREX * , with  Enhancement AIST0002
    contains function module EXIT_SAPL1022_001 as a component in which user fields can be implemented.
    Hope it is helpful .
    Regards
    Swapnil kamble

Maybe you are looking for

  • Value in ALV Grid ?

    Hello, is there a method which sets the cell value of a certain cell in a alv grid. I've to set a vallue of a cell after the user has entered a value in a special cell.

  • In OBIEE rpd convert varchar to datetime

    Hello, Can anyone help one how can we convert a column that is set to varchar to datetime in obiee; Suppose COLUMN_A is varchar and keeps value like '2008-12-30 10:11:22' and we want to convert it DATETIME. Thanks and Regards

  • SWF file not playing in flash player

    Hello All I am working on this project for a client, suddenly no-one can get the SWF file to play. https://drive.google.com/folderview?id=0ByWDl-PaRWIFY0c1SnEwbUNraUE&usp=sharing The file is there. If anyone can help please do. I know this file works

  • I am an ASP programmer and need help passing variable in JSP

    When I pass a value using a variable string that grabs the user name of a current windows session it adds spaces after each character. it should pass jdt3 and it passes j d t 3. It is grabbing the correct info. It writes the value to a web page corre

  • How do you configure a VM image to run a custom script ONCE on startup?

    Hello, I am creating a Windows image that will be deployed to the VM depot: https://vmdepot.msopentech.com/List/Index When the image is run for the first time, I'd like to run a custom script.  However, I only want this script to run the first time t