Problem in Extension BAPI

Hi All,
I am trying to use the BAPI BAPI_BUS2001_CREATE which contains 60 user-defined fields.
I have written the code
T_EXTNIN-STRUCTURE  = 'BAPI_TE_PROJECT_DEFINITION'.
ASSIGN I_BAPI_PROJ TO <FS1> .
MOVE: <FS1>+0(240)   TO T_EXTNIN-VALUEPART1.
MOVE: <FS1>+240(140) TO T_EXTNIN-VALUEPART2 .
APPEND T_EXTNIN.
CLEAR  T_EXTNIN.
UNASSIGN: <FS1>.
Working on ECC6.0 system.
I got dump when the statement occurs MOVE: <FS1>+240(140) TO T_EXTNIN-VALUEPART2 .
please suggest me the code for ECC6.0 on Extension BAPI
Regards,
Raju

Hi Prabhu,
Can you please provide your code snippet ?
Regards
HM

Similar Messages

  • Problem with mutiple BAPI calls during the commit

    Hi all,
    I am trying to create accounts for a given partner i the transaction F9K1 using the BAPI BAPI_BKK_ACCNT_CREATE. After calling the BAPI I am committing it too.
    The problem is if I try to create multiple accounts like RCA, ACA, MCA, IOE and so on, the first time the BAPI is called to create RCA account it is successful an it is even committing. When I call the BAPI to create the the ACA account the return table from the BAPI shows success message but the commit fails. If I restart the program and try creation of accounts now the RCA will throw a error msg saying account already exist, ACA account will be created and then the MCA account creation fails in the same manner explained above.
    I see the issue is with multiple BAPI calls and I tried using all sort of methods like clearing buffers, start new task in local and wait command and all.  But none of them seems to be working for me.
    Can anyone please guide me on how I can overcome this problem.
    Thanks.

    BAPI :
    BAPI BAPI_BKK_ACCNT_CREATE
    Functionality
    Use this method to create an account in Bank Customer Accounts. This method returns the following values:
    Identification details for the newly created account such as the internal and the external account number, and the bank area details
    A table containing error messages
    To create an account by using this method, you must specify values for the import parameters Bank Area (BANKAREA) and Product (PRODUCTNAME).
    Note: You must also specify a value in the External Account Number (EXTERNALACCOUNTNR) parameter if you have defined an external number range for the bank .
    REgards,
    Jayan.

  • 10.1.3 problem with extensions.

    C:\jdev\1013p\jdev\lib\ext\bc4j_junit_addin.jar!\meta-inf\jdev-ext.xml
    I have general problem with extensions in the new developer preview.
    At start up time, they all give error messages like this.
    Error: <Line 3, Column 21>: XML-24534: (Error) Element 'feature' not expected.
    Error: <Line 22, Column 14>: XML-24521: (Error) Element not completed: 'extensions'
    C:\jdev\1013p\jdev\lib\ext\junit_addin.jar!\meta-inf\jdev-ext.xml
    Error: <Line 3, Column 21>: XML-24534: (Error) Element 'feature' not expected.
    Error: <Line 66, Column 14>: XML-24521: (Error) Element not completed: 'extensions'
    JDeveloper starts OK, but the extensions don't work properly. JUnit appears in the New... menu, but doesn't display any sub-items. Jalopy (the newest one) appears in the preferences page, but causes the code editor context menu not to display.
    I've run jdev.exe but there are no additional messages in the console window.
    Windows XP SP2 Pentum M, 1GB RAM

    Hi Jim,
    Are you dropping 9.0.5 extensions into 10.1.3? You need to get 10.1.3 compatible extensions. Also, there are now two separate locations for extensions:
    ${jdev.home}/jdev/lib/ext : for "backward compatible" jdeveloper extensions (extensions from 9.0.5 and prior will probably work if dropped here, but may be affected by API changes... usually those extensions will need to be recompiled against the 10.1.3 extension API)
    ${jdev.home}/jdev/extensions : for new JSR-198 compliant extensions.
    For JUnit, it's best to either install using Help->Check for Updates..., or download the 10.1.3 zip files manually and extract them into ${jdev.home}/jdev/extensions. The bc4j junit extension will not work in the 10.1.3 preview, because there is no ADF.
    Thanks,
    Brian

  • Problem in MARA extension BAPI 'BAPI_MATERIAL_SAVEDATA' - EXTENSIONIN

    Dear All,
    Im trying to update Z fields in MARA using the BAPI 'BAPI_MATERIAL_SAVEDATA'
    The appends to MARA & BAPI_TE_MARA are done.
    There are lots of appends & it now exceeded 960 characters.
    My Z fields are in the position 974  to 984.
    EXTENSIONIN has 4 Value parts (VALUEPART1, VALUEPART2, VALUEPART3 & VALUEPART4) each of length char240.
    So the Maximum Zextension updates possile are 240*4 = 960.
    Please let me know update Z fields that are higher than 960.
    Thanks in Advance.
    Regards,
    Prabhu Selvaraj.

    Hi Prabhu,
    Can you please provide your code snippet ?
    Regards
    HM

  • Problem using extension manager CS5 with command line

    Hi All,
    I had posted my question here : http://forums.adobe.com/message/4695419#4695419, but was advised to do so here as well..
    I have a requirement to get the path of all the installed Extension Managers on any Windows system for the purpose of installing an extension.. I thought, there would be no problem in getting the path from the registry. There was no problem in Win XP, but the same does not work for Win 7.. I googled, and found alternate ways to get the path.
    Here is the link : http://forums.adobe.com/thread/851359. I followed the instructions in this post, but failed to get this working for CS5 as mentioned in my previous thread... No problem for CS5.1 and CS6.. Why is that?
    I want to get this working for CS5, CS5.1, CS6... How can I get the path of all the Extension Manager versions installed on a Windows system?
    Please refer to the following screenshots to get a better understanding of my problem,
    I created a jsx file named "Result.jsx", which I saved in my D drive, with the following code,
    resultFile = new File("D:/result.log");
    resultFile.open("w");
    resultFile.write(BridgeTalk.__diagnostics__);
    resultFile.close();
    If I run this directly from ESTK CS5, there is no problem, and I get the result.log file. I tried to execute this script via command line as shown in the screenshot,
    On executing the above, I got the following error,
    What is going wrong?
    Please help!

    I am sorry for the poor documentation of Extension Manager which causes you so much trouble.
    1. You can use BridgeTalk API to ask specific version of Extension Manager to do something. There is sample in packaging_extension.pdf about this. You don't need to know the installation path of Extension Manager. One thing to note is that the value of bt.target is version specific, i.e. "exman-5.0", "exman-5.5" send this message to different version of Extension Manager, so you can change this value to install/enable/disable/remove extensions using different version of Extension Manager. More detailed documentation of BridgeTalk can be found by clicking "Help" menu then clicking "Javascript Tools Guide CS5" in "Adobe ExtendScript Toolkit CS5".
    2. Specific version of Extension Manager only manage extensions for corresponding version of product. You should use Extension Manager CS5 to install extensions for Photoshop CS5. The reason that the extension you installed for Photoshop CS5.1 using Extension Manager CS5.5 is displayed for Photoshop CS5 in Extension Manager CS5 is that two versions of Photoshop specified the same directory for Extension Manager to manage extensions. This is a defect and will cause some problems if multiple versions of Photoshop co-existed in one machine. But "to find  previous (CS5) extension manager and to enable it" should work for you, I guess you use command line to enable it and specify wrong product name (see #3) so that it doesn't work.
    3. When using command line, you should specify "product" attribute with the name displayed at the left panel of Extension Manager. So "Photoshop CS5 32" is correct. Remember to enclose it with double quote because of existence of space character.
    4. As above mentioned, use display name of Photoshop, and call proper version of Extension Manager by BridgeTalk.

  • Problem with a BAPI collecting dunning levels

    Hello all experts,
    I am having a problem with BAPI “DebtorCreditAccount” (called from a VB program), collecting dunning levels.
    The BAPIs is called like follows (only the essential code is shown):
    The first function (GetCustomerCurrentBalance) works fine but the second (GetCustomerHighestDunningLevel) doesn’t work.
        Public Function GetCustomerCurrentBalance(ByVal strCustomerID As String) As Decimal
            Dim objARAccount, objReturn, objActualBalance As Object
            Try
                objARAccount = Me.p_sapBapi.GetSAPObject("ARAccount", "1000", Me.ConvertCustomerID(strCustomerID))
                objARAccount.GetCurrentBalance(Return:=objReturn, ActualBalance:=objActualBalance)
                Return CType(objActualBalance.Value("TOTAL_BAL"), Decimal)
            Catch ex As Exception
                Return 0
            Finally
                objARAccount = Nothing : objReturn = Nothing : objActualBalance = Nothing
            End Try
        End Function
        Public Function GetCustomerHighestDunningLevel(ByVal strCustomerID As String) As Integer
            Dim objDebtorCreditAccount, objReturn, objHighestDunningLevelD As Object
            Dim objTEST1 As Object
            Try
                objDebtorCreditAccount = Me.p_sapBapi.GetSAPObject("DebtorCreditAccount", Me.ConvertCustomerID(strCustomerID), "0001")
                objDebtorCreditAccount.GetHighestDunningLevel(Return:=objReturn, HighestDunningLevelD:=objHighestDunningLevelD)
                Return CType(objHighestDunningLevelD.Value("DUNN_LEVEL"), Integer)
            Catch ex As Exception
                Return 0
            Finally
                objDebtorCreditAccount = Nothing : objReturn = Nothing : objHighestDunningLevelD = Nothing
            End Try
        End Function
    The error message I get is:
    Message: The runtime object of type DebtorCreditAccount with the persistent key 00000480060001 could not be created in the Business Object Repository.
    Message-Nr: 826
    Workarea: OL
    R/3 error message: Object does not exist
    Please give me some input on how to proceed!
    Best Regards,
    Niklas

    Thanks Vijaya for your fast reply. The parameters that I am giving as input are however correct.
    I have investigated the problem a bit further and tried some other calls.
    If I just chose to create an object of the type “DebtorCreditAccount” (without submitting any parameters) and then use the same method call as before (se code in topic above) I get the following error: “Mandatory parameter HIGHESTDUNNINGLEVELA missing.” This must mean that it knows that something is missing.
    objDebtorCreditAccount = Me.p_sapBapi.GetSAPObject("DebtorCreditAccount")
    objDebtorCreditAccount.GetHighestDunningLevel(Return:=objReturn, HighestDunningLevelD:=objHighestDunningLevelD) 
    If if add the mandatory parameter “HIGHESTDUNNINGLEVELA” I get the error message "The persistent key for an business object instance of type DebtorCreditAccount has not been set. Cannot invoke method GETHIGHESTDUNNINGLEVEL”. This I interpret as the object has not been right instantiated. This brings me back to square one.
    objDebtorCreditAccount = Me.p_sapBapi.GetSAPObject("DebtorCreditAccount")
    objDebtorCreditAccount.GetHighestDunningLevel(HIGHESTDUNNINGLEVELA:="0", Return:=objReturn, HighestDunningLevelD:=objHighestDunningLevelD)
    Grateful for a response!
    Regards,
    Niklas

  • Problem of calling BAPI to release transport request

    Dear Friends,
    I want to automatically release Transport Request using BAPI (BAPI_CTREQUEST_RELEASE), but I met a difficult during the process that only TR TYPE 'K'or 'W' can be release using this BAPI, if I create an addon program which TR Type is 'S' (stand for Development/Correction), then this BAPI does not work. 
    BTW, you can refer table E070.
    Could you please kindly give me some idea to solve this problem?
    Thank you in advance.
    Best regards,
    Nick

    Dear Li Nick,
    The reason that you cannot release a request of type 'S' is that type 'S' names a local correction, which cannot not be transported (and therefore of course not released).
    Regards, Tino

  • Problem with Extensis plug-in with Adobe CS6

    I have a Mac running version 10.8.5 OS X and I also have Adobe CS6. I recently update Suitcase Fusion to their newest version (Suitcase Fusion 5) and since then I've been having a lot of problems with CS6. Every time I start the program it gives me the message: "The Extensis plug-in could not locate a running copy of the FMCore application. Auto - activation plug-in functionality will be disabled". I'm not sure how to fix this, so I would appreciate any help!

    What does Extensis say?
    From where I sit, the error message is telling you that you only updated the plug-in but not the application itself.  But only Extensis can clarify that.

  • Problem in mapping-BAPI to file.

    Hi all,
    I am working on an bapi to file scenerio.My requirement is 2 files need to created in the target ,
    First file has the payload and its name(filename) needs to hav message id.
    Second file is a catalog file which only holds the name of the first file(Howmany ever file are reaching target,this file wil hav names of all those files.).
    I have used multi mapping wherein for the first structure i hav done dynamic configuration to generate filename and its wrking fine.
    For the second stucture (has only 1 field for passing filename)i wrote following UDF and mapped it
    String constant;
    java.util.Map map;
    map = container.getTransformationParameters();
    constant = (String) map.get(StreamTransformationConstants.MESSAGE_ID);
    String fileName = constant + ".txt";
    return constant;
    but now  output of the second file is empty ie the filenames of the first file is not present in it.
    Please help as its very urget.

    heyy...thanks for that, but that was a typing mistake..problem is elsewhere, i had tested by mapping that field to a constant, even then no value was present in output.
    My structure looks like below.
    Messages
       Message1
          mt_abcd
    .        field1
             field2
             field3
       Message2
          mt_abcd2
             filename
    Message1 and message2 are 2 separate files in output.
    Message1's output is correctly generated.But for message2 no output atall.

  • Problem with the bapi.

    hi ,
    i transfered legacy data to sap system using bapi.
    for that i used salesorder creation bapi.
    'BAPI_SALESORDER_CREATEFROMDAT2'.
    it is uploading my header data and item data .
    even it set the values correctly.
    but the above rfc not creating saledocument.
    where i did mistake pls rectify my problem.

    hi michel i agree with u. i called 'bapi_transction_commit' first
    after than i called bapi_saleorder_createformdat2.
    i checked in debugging modein that function module.
    it gives sy-subrc 4 for the below statement
    fbgenmac 'BAPI_SALESORDER_CREATEFROMDAT2'.
    how i will rectify this problem.
    do u want the code.
    i will send my code.
    Edited by: kartik p on Sep 22, 2008 5:00 PM

  • Problem(?) with BAPI BAPI_PRODORDCONF_CREATE_TE

    Hi everybody!
    I want to use the BAPI BAPI_PRODORDCONF_CREATE_TE to create confirmations for productionorders! I only use the recordtypes 'B10' and 'B40'.
    The problem is, that the  BAPI only creates partial confirmations, and no final confirmations.
    For the B10 I fill the following fields in the table TIMEEVENTS:
    CONF_NO - The confirmation of the prod.order.
    RECORDTYPE - Is 'B10'
    LOGDATE - The Date when the work starts
    LOGTIME - The Time when the work starts
    CONF_TEXT - A Short text to the confirmation
    TIMEID_NO - Time Recording ID Number
    PERS_NO - Personnel number
    For the 'B40' i fill following fields:
    CONF_NO - The confirmation of the prod.order.
    RECORDTYPE - Is 'B40'
    LOGDATE - The Date when the work ends
    LOGTIME - The Time when the work ends
    CONF_TEXT - A Short text to the confirmation
    TIMEID_NO - Time Recording ID Number
    PERS_NO - Personnel number
    CONF_QUAN_UNIT - Confirmation unit of measure
    YIELD or
    SCRAP Confirmation quantity
    FIN_CONF - If the confimation should be final confirmated I set a 'X', if the confirmation should be partial confirmated the field is blank!
    I fill the table TIMEEVENTS with one entry at a time and then comes the COMMIT or ROLLBACK WORK.
    I hope anyone can help me!
    regards!

    I found it out!

  • Problems with running BAPI   BAPI_SALESORDER_CREATEFROMDAT2

    Hi all,
    I’ve got a problem running BAPIs in SD invironment.
    I’m creating contract releases in SD via BAPI.
    First I run BAPI BAPISORDER_GETDETAILEDLIST in my program to get detaildata of the contract.
    Then I run the BAPI   BAPI_SALESORDER_CREATEFROMDAT2 filled with contract reference data and in addition with order data to create the contract release.This works properly so far. On both sides in the contract and in he contract release I find the correct document flow. Means: in document flow of the contract I find all the releases created . Also I find the contract in the documentflow of the releases.
    But…something does not work: In the contract the released values are not updated. When I create a release manually, the release values are accumulated  in the contract in field  ‘value released’ under flag ‘item detail’. But this does not work, when the leases are created via BAPI. However I checked several parameters in the BAPIS but I cannot find something that leads to an update .
    Can somebody help me and can tell me what is to be done to get this field updated? Thanks in advance.
    same in German...
    Ich habe ein Problem mit BAPIs im SD.
    Ich erzeuge Abrufe zum Kontrakt im SD mittels BAPIs.
    Zuerst lasse ich den BAPI BAPISORDER_GETDETAILEDLIST laufen, um mittels Kontraktnummer alle Daten zum Kontrakt zu bekommen. Dann lasse ich den BAPI   BAPI_SALESORDER_CREATEFROMDAT2 gefüllt mit SD-Abrufdaten und den Referenzdaten des Kontraktes laufen Dies funktioniert soweit sehr gut. Sowohl im Kontrakt als auch im Abruf sind jeweils die übergeordneten bzw. untergeordneten Vertiebsbelege zu sehen. Die Referenz wird also hergestellt. Jedoch wird im Kontrakt nicht die Abrufwerte aufsummiert. Normalerweise wird bei manueller Erstellung der Abrufe im Kontrakt die jeweilgen abgerufenen Werte gegen den Kontraktwert aufsummiert (Feld abgerufene Werte im Kontrakt unter Reiter ‚Positionsdetail‘. Ich habe alle möglichen Parameter im BAPI geprüft und getestet aber nichts gefunden, was mir die abgerufenen Werten aufsummiert.
    Kann mir dazu einen Tip geben, was ich tun kann, damit auch die Werte richtig referenzieren ? Danke im Voraus.

    the usage of exactly this BAPIs in the way I described  is in according to SAP note 370988.
    BAPI_SALES_DEL_SCHEDULE_CREATE ist for SD schedule agreements and not for SD contracts and does not offer Input parameters for e.g.  adding price conditions what is needed for my task.
    The field in contract I mentioned e.g. in Transaction VA42 VA43 is filled / gets its Information out of Infostructure/table S135. The BAPI seems not be able to fill this structure while creating the contract release.
    I'm looking for example an input parameter I did not found already or any other option that leads to an update of infostructure S135 while creating/posting a release via BAPI.

  • Problem installing extension in DW MX2004 mac edition

    Hi all,
    I run DW MX2004 under OS X 10.4.10 on a Mac. I'm having
    trouble installing the Rubyweaver 2.0 extension (available from
    http://rubyweaver.gilluminate.com/)
    which should add ruby and rails functionality to DW. According to
    Extension Manager it is installed fine but when I try to use DW I
    get the following problems:
    1. On startup DW throws up a warning message:
    quote:
    The Document Type "" will not be added because it uses a file
    extension that is already associated with a prior document type.
    This message appears three times, I assume for
    three different document types.
    2. Rails, YML and SQL options are not present in the New
    Document window options (they should be).
    3. Preferences > Code Format > Tag Library Editor
    displays an option called 'Rails' - even when the checkbox is
    ticked, HTML colouring is not present in .rhtml files.
    I contacted the developer about these issues, he assured me
    that the extension was developed for and tested on both Windows and
    OS X platforms, and that nobody else had reported any problems. He
    suggested it must be a problem specific to my system.
    So, here's my question: has any one else experienced problems
    installing either this or another extension in DW MX2004 on a Mac
    and does anyone have a solution/work around.
    Thanks in advance for any help.

    Hi,
    Yes, I'm having the same difficulty when installing FM Web
    Studio by FMWebSchool.com. I get the [empty] "Document type could
    not be added" error 33 times on application launch. I see no
    templates, no dynamic page creation options.
    PS. Edited to note I'm on MacOS 10.4.10, PowerPC, DW MX2004
    quote:
    Originally posted by:
    mpjx
    Hi all,
    I run DW MX2004 under OS X 10.4.10 on a Mac. I'm having
    trouble installing the Rubyweaver 2.0 extension (available from
    http://rubyweaver.gilluminate.com/)
    which should add ruby and rails functionality to DW. According to
    Extension Manager it is installed fine but when I try to use DW I
    get the following problems:
    1. On startup DW throws up a warning message:
    quote:
    The Document Type "" will not be added because it uses a file
    extension that is already associated with a prior document type.
    This message appears three times, I assume for
    three different document types.
    2. Rails, YML and SQL options are not present in the New
    Document window options (they should be).
    3. Preferences > Code Format > Tag Library Editor
    displays an option called 'Rails' - even when the checkbox is
    ticked, HTML colouring is not present in .rhtml files.
    I contacted the developer about these issues, he assured me
    that the extension was developed for and tested on both Windows and
    OS X platforms, and that nobody else had reported any problems. He
    suggested it must be a problem specific to my system.
    So, here's my question: has any one else experienced problems
    installing either this or another extension in DW MX2004 on a Mac
    and does anyone have a solution/work around.
    Thanks in advance for any help.

  • Problems to find bapi to insert itens and services ME32K

    Hi Guys,
    I need insert itens and services on ME32K transaction. I run this using the call transaction method. But, I have problems with this because the program delay very much to run. It load the data, however, delay very much.
    I am finding a bapi to load the contracts. I tried to use BAPI_CONTRACT-CHANGE, but I cannot find the parameter table where I put the line services.
    Can you help-me?!
    I am very worry with this. The client to get it.
    Patrícia.

    Hi All:
    I have found the reason why was not connecting from the NWDS, it was connection problem due to a problem with the HostName.
    I have installed both the NW ABAP 7.0 and SAP CE 7.1 on the same PC and the harder is fixing problems with the connections between servers
    I am using localhost and computer name on different places and it was causing the problem. I am still not able to see from the VC 7.1 but I am working on fixing it.
    Kind regards
    Gonzalo Pérez-Prim

  • Problem in executing BAPI

    Hi all
    I am executing the bapi BAPI_PO_CREATE. I have initialized the BAPI input fields and populated with necessary inputs. But when i execute the bapi, i get no output. Output should be available in Model node Return. But i get nothing. The bapi is fine and the model input nodes also gets populated. Any help will be appreciated.
    Thanks in Advance,
    Regards
    Rakesh ;>)

    Hi All
    Sorry for the late response. Actually the problem was with assigning inputs to the model data. Its solved now and the bapi is executing. But it shows an abort message in return structure.
        Msg Type A
        Msg.no   000000
        Code     ME159
        Message  Function modules invoked in wrong sequence
    Any help will be useful.
    Thanks in Advance ;>)
    Regards
    Rakesh

Maybe you are looking for

  • Interactive PDF in InDesign - works in Preview, not in export

    Hello. I have a multi-state object set up. I've placed buttons over a central map on my page, with links to the proper multi-states in the object below. This works within the Preview Pane when I preview the interactivity. However, when i export non o

  • Linking Endnote X4 with WORD 2011 for mac.

    My Endnote X4 software does not show up in my toolbar of WORD 2011. How do I tackle this problem?

  • Creating or updating a java.sql.array object

    I've created an oracle object table which contains a nested table. I've published these types using JPublisher and can extract an object from the table and read the data both the object and the nested table. (The nested table is typed within the java

  • Grouping fields of the internal table

    hi all, i ' m using an internal table, and y need to group fields like the following example: what i have: werks arbpl         aufnr ca01  ka mecha   1 ca01  ka mecha   1 ca01  ka li           1 ca01  ka li           1 what i need: werks  arbpl      

  • External Drive for both PC and G4

    Hi-I am new to this, so please explain in very simple terms. I need to get an external hard drive (looked at Maxtor& seagate so far. Need 300-500 GB. I am in Fashion deisgn and need to downoad programs off the main frame at work. I will do this throu