Using BAS in Transaction BP.

Hi All,
          I'm working on creation and change of Business partners. When ever i create or change a Business partner the SAP CRM system has to check with data from other Non SAP system which contains complete data.
          Data is successfully coming from NOn-sap system once given the values as i tested it. But i want to insert the code in one of the BADI s existing for BP transaction, I came to know BAS services help us in doing this but how to use BAS services in <b>BP</b> screen Please help me its very urgent.

Hi! I got the same problem! I need to store data from a non-sap system into address standard tables in BP. Did you got any solution for your issue? I'm using BAS module to validate address but my client wants anytihing else. Thanks for you time!

Similar Messages

  • How to handle "The specified resource does not exist" exception while using entity group transactions to purge WADLogs table

    Hi,
    We have a requirement to purge the Azure WADLogs table on a periodic basis. We are achieving this by using Entity group transactions to delete the
    records older than 15 days. The logic is like this.
    bool recordDoesNotExistExceptionOccured = false;
    CloudTable wadLogsTable = tableClient.GetTableReference(WADLogsTableName);
    partitionKey = "0" + DateTime.UtcNow.AddDays(noOfDays).Ticks;
    TableQuery<WadLogsEntity> buildQuery = new TableQuery<WadLogsEntity>().Where(
    TableQuery.GenerateFilterCondition("PartitionKey",
    QueryComparisons.LessThanOrEqual, partitionKey));
    while (!recordDoesNotExistExceptionOccured)
    IEnumerable<WadLogsEntity> result = wadLogsTable.ExecuteQuery(buildQuery).Take(1000);
    //// Batch entity delete.
    if (result != null && result.Count() > 0)
    Dictionary<string, TableBatchOperation> batches = new Dictionary<string, TableBatchOperation>();
    foreach (var entity in result)
    TableOperation tableOperation = TableOperation.Delete(entity);
    if (!batches.ContainsKey(entity.PartitionKey))
    batches.Add(entity.PartitionKey, new TableBatchOperation());
    // A Batch Operation allows a maximum 100 entities in the batch which must share the same PartitionKey.
    if (batches[entity.PartitionKey].Count < 100)
    batches[entity.PartitionKey].Add(tableOperation);
    // Execute batches.
    foreach (var batch in batches.Values)
    try
    await wadLogsTable.ExecuteBatchAsync(batch);
    catch (Exception exception)
    // Log exception here.
    // Set flag.
    if (exception.Message.Contains(ResourceDoesNotExist))
    recordDoesNotExistExceptionOccured = true;
    break;
    else
    break;
    My questions are:
    Is this an efficient way to purge the WADLogs table? If not, what can make this better?
    Is this the correct way to handle the "Specified resource does not exist exception"? If not, how can I make this better?
    Would this logic fail in any particular case?
    How would this approach change if this code is in a worker which has multiple instances deployed?
    I have come up with this code by referencing the solution given
    here by Keith Murray.

    Hi Nikhil,
    Thanks for your posting!
    I tested your and Keith's code on my side, every thing worked fine. And when result is null or "result.count()<0", the While() loop is break. I found you code had some logic to handle the error "ResourceDoesNotExist" .
    It seems that the code worked fine. If you always occurred this error, I suggest you could debug your code and find which line of code throw the exception.   
    >> Is this an efficient way to purge the WADLogs table? If not, what can make this better?
    Base on my experience, we could use code (like the above logic code) and using the third party tool to delete the entities manually. In my opinion, I think the code is every efficient, it could be auto-run and save our workload.
     >>Is this the correct way to handle the "Specified resource does not exist exception"? If not, how can I make this better?
    In you code, you used the "recordDoesNotExistExceptionOccured " as a flag to check whether the entity is null. It is a good choice. I had tried to deleted the log table entities, but I used the flag to check the result number.
    For example, I planed the query result count is 100, if the number is lower than 100, I will set the flag as false, and break the while loop. 
    >>Would this logic fail in any particular case?
    I think it shouldn't fail. But if the result is "0", your while loop will always run. It will never stop. I think you could add "recordDoesNotExistExceptionOccured
    = true;" into your "else" block.
    >>How would this approach change if this code is in a worker which has multiple instances deployed?
    You don't change anything expect the "else" block. It would work fine on the worker role.
    If any question about this issue, please let me know free.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to create bdc for fbs1 using both call transaction and session

    Hi Friends,
    i have one problem with tcode FBS1, i need to create a bdc program for both call transaction and session method using subroutine.
    first call transaction needs to execute if there is an error sesion has to execute. if u have code please forward.
    thanks in advance.
    chandramouli pothugunta

    where as in call transaction we can do error handling explictly.those errors  are stored in one file .this file will send to the error log(session method),i.e session log.
    in the above case we use both call transaction n session method at time in one program.sample code is below ,go through it .
    data : begin of itxk01 occurs 0,
    end of itxk01.
    data : bdcdata like itbdcdata occurs 0 with header line.
    data : itbdcmsgcoll like itbdcmsgcoll occurs 0 with header line,
             itxk01 like itxk01-dup occurs 0 with header line.
    call gui-upload.
    loop at itxk01.
    refresh itxk01.
    perform bdc-dynpr0 using 'prg' 'scr'
    perform bdc-dynfld using fnam fval
    call transaction 'xk01' using bdcdata mode 'a' update 's' messages into itbdcmsgcoll.
    if sy-subrc ne 0.
    append itxk01 into  itxk01-dup.
    endif.
    endloop.
    if not itxk01-dup[] is initial.
    refresh itck01.
    call bdc_open_group
    itxk01 = itxk01-dup.
    loop at itxk01.
    refresh itxk01.
    perform bdc-dynpr0 using 'prg' 'scr'
    perform bdc-dynfld using fnam fval
    call bdc-insert.
    endloop.
    call bdc-close-group.
    form bdc-dynpr0 using pr sc
    endform .
    form bdc-field  using fnam faval
    endform.
    this will help u.
    reward points for me
    kiran

  • Table used in the Transaction OOER or External Trainer

    Can any body help in finding out the standard tables used in the transaction OOER or To add External Trainder.

    Hi,
    Below declaration is there in the  transaction code.
    Hope this helps you.
    TABLES : hrvpv6a,                 "screen parameters Dynpro 2000 / 3000
             hrp1000,                 "database for P1000 (SYS_CHECK_SHORT)
             hrp1023,                      "database for P1023 (Dynpro 4200)
             t005t,                        "country names
             t522t,                        "address-forms
             t535n,                        "name addings
             t777a,                   "show these addresses for buildings
             t778p,     "#EC NEEDED        "allow these planversions
             q1023,                        "help structure for relations
             p1023,                        "help structure for relations
             pad21,                        "help structure for relations
             pad22,                        "help structure for relations
             pad31,                        "help structure for relations
             pad77,                        "help structure for relations
             pkeyk,                        "help structure for cost centers
             indx .                        "database for user settings

  • Use SAP Standard transaction with multi-language

    Hi,
    we have some problems to use standard SAP transaction (like S_ALR_87012082 transaction) the standard Vendor balance, with vendor Master Data.
    I explain, we have some vendors with french, english names (writing in French, English words) in LFA1-NAME field. But in the same times, the Russian accounting requirements are to write all in Cyrillics
    caracters and the name too, on paper and transactions.
    So how we can do to edit vendor in French for french users, in English for English user and Cyrillic for Russian users ?
    We try to create an International versions in 'R' (cyrillic version), but we have the same result. It's normal, because the program select LFA1-NAME field.
    So, we have to find one solution quickly for the next accounting closing.
    Thank's for your help.
    Best regards,
    Gilles DANJOU

    Surendra,
    Which transaction is this and is the change inside an FM ?
    K.Kiran.

  • Use of MR11 Transaction - GR/IR Clearing

    Hi,
    If we use Trnasaction MR11 transaction for clearing pending GR/IR will it affect to material stock account?
    Can any one explain me in what case it affects to stock account?
    Regards,
    Deepak

    Dear FICO:
    Please see my comments in blue
    I agree to the explanation of Allen of MR11 but disagree also, because, in the example where he shows that GR is 10Qty and IR 11, so a financial document will be posted.. is not the correct approach.. in that case instead of posting through MR11, actual situation should be analysed and a credit memo should be raised on the Vendor, this would give a good Audit trail and clear accounts.. instead of accepting the 1 extra invoiced by the vendor..
    I agreed that if IR is 11,then this situation will be analyzed and vendor should be raising credit memo, then we will be creating subsequent credit memo accordingly.
    If we follow what you have shown by way of Financial entry, then Vendor gets paid for 1 qty extra which the Company would never have received.
    But Yes, I agree, that this is the situation when the Stock Accounts are getting triggered by MR11.. and it all depends on business case, how to deal with it. To add to this, please note that inventory Account would only get hit, if the stock is lying on the date of MR11, else it would post to a price difference Account (OBYC Key - PRD)
    Yes, I just listed all possibilities which will trigger GR/IR to be cleared,also to assign correct G/L account is necessary
    I am pasting a link of MR11 transaction explanation, where you can read all about MR11.
    Thanks for this linkage!

  • How to use base band wave,subcarrier wave and carrier wave to creat the FM wave? When I use the MT Modulate FM VI in USRP,I don't konw how to use it.

    How to use base band wave,subcarrier wave and carrier wave to  creat  the FM wave? When I use the MT Modulate FM VI in USRP,I don't konw how to
    use it.

    https://decibel.ni.com/content/docs/DOC-24206
    Let us know if that example doesn't help you
    Anthony F.
    Product Marketing Engineer
    National Instruments

  • Problem with use of COM+ Transaction and DB Transaction

    Problem with use of COM+ Transaction and DB Transaction
    We build a Web site that use sometime COM+ Transaction and sometime DB
    Transaction. If we use a COM+ Transaction and a few seconds later we try to use
    a Database Transaction (OracleConnection.BeginTransaction), we get the error
    Connection is already part of a local or a distributed transaction
    Of course the error does not produce everytime; it takes some try before we get
    the problem. And of course, if i use pooling=false on the connection string,
    the problem does not appear.
    i run the Web page
    and push the COM+ Transaction and DB Transaction one after the other for some
    times and the problem should appear.
    Environment: Windows server 2003, .Net Framework 1.1, ODP.Net 9.2.0.401,
    Database Server 9.2.0.4

    > Why in form builder can't I...
    Is this happening at runtime or at buildtime? You'll need to provide more info on what you are actually doing that's causing the problem.
    Regards,
    Robin Zimmermann
    Forms Product Management

  • Entity Bean can only use container-managed transaction demarcation?

    In <<Designing Enterprise Application with J2EE 2nd>>
    Section 2.3.3.3 Enterprise Bean Transactions,it says:Entity beans can only use container-managed transaction demarcation.
    That means,i can not get UserTransaction from EJBContext.
    Is that true?

    Yes this is the requirement of the specs. Your ejb code generator should give you the error if you use usertransaction.
    --Ashwani                                                                                                                                                                                                                                                                   

  • Hide selection screen option on the base of Transaction code

    Hi ,
    i have created one report with two diffrenet transaction code .
    now we have two different selection  options on the base of Transaction code.
    how can i do coding for this .
    anyone has any sample code ..
    thanks,
    Jack

    Thanks Subramanian,
    INITIALIZATION.
    if sy-tcode = tcd1.
    perform first_selection_screen.
    elseif sy-tcode = tcd2.
    perform second_selection_screen.
    endif.
    FORM first_selection_screen..
    SELECTION-SCREEN BEGIN OF BLOCK s1 WITH FRAME TITLE text-s02.
    SELECT-OPTIONS: s_date  FOR  vbrk-fkdat.
    SELECT-OPTIONS: s_kunag  FOR  vbrk-kunag.
    SELECTION-SCREEN END OF BLOCK s1.
    ENDFORM.
    But in this perform if i write code for selection-screen then it gives me syntax error.
    error message: within form or function module, selection-screen option is not allowed.
    Thanks,
    Jack

  • Can oracle temporary tables be used with distributed transactions?

    Hello,
    Does anybody know if temporary tables are supported with distributed transactions?
    We use a temporary table to store query results and see no problems when the JDBC driver (Type 2 or Type 4) is used with local transactions. The temporary tables are set for transaction-level data persistence (delete rows on commit).
    When we switch to JDBC/XA driver we occasionally get ORA-14450 error (java.sql.SQLException: ORA-14450: attempt to access a transactional temp table already in use).
    Many thanks...

    I have been able to use temporary tables on remote databases, so I don't think that it is forbidden. Of course, I'm not using JDBC so that might be a problem.
    The other thing that occurs to me is that you are doing something other than DML with the table e.g. trying to drop it. If that is the case you should re-read the documentation and remind yourself of the purpose of temporary tables.
    Cheers, APC

  • Use of field - Transaction Type in F.01

    Dear All,
    Can anyone explain the use of field Transaction Type in Dynamic Selection in transaction code F.01.
    If I have understood correctly, these are related to fixed assets. If I select any transaction type, say for instance 120, which is related to acquisitions, F.01 should display the related figures.
    However, I do not get any display, inspite of having various transactions with transaction type 120.
    Can anyone explain me why this is happening?

    Hi,
    I have gone into transaction f.01 and am unable to find the component Transaction type in dynamic selections. If however you want to find Transacttion type 120 use transaction SE16n and table ANEKPV add in the transaction types (technical name BWASL) add other parameters example company code, period etc to get the related information.
    Award points if useful.
    Sadie Gajanand

  • To create/change material determination records using VB11/VB12 transaction

    To create/change material determination records using VB11/VB12 transactions, do you know any relevant FM's or BAPI's for these transactions instead BDC?
    Thanks in advance.
    regards,
    vamshi

    Thanks for the response. I wrote the BDC.
    Have some problems in BDC for VB12.Uploading ten thousand records at a time.
    Following problems exist.
    Before updating i am reading existing data.
    In   selection condition, if i give ten thousand records
    i am getting dump.
    (ii) In the change material determination third screen
         to delimit the date ( Valid on and Valid to) it does for header not at item level. No option to do at item level.
    thanks,
    vamshi

  • What is the use of OASV transaction in Asset accounting

    Dear Experts,
    Could you please advise me clearly what is the use of OASV transaction in Asset accounting and which GL account we need to use for debit and credit while using this t code. Can you please provide me along with examples for better understand and that would be great for me.
    Thanks in Advance,
    Murali

    Transfer Balances
    In this step you can post balances to G/L accounts which have already   been defined as reconciliation accounts. You can only post these   corrections in company codes which have implementation status.
         The transfer of legacy asset data using the legacy asset transaction  does not affect the balances of the corresponding reconciliation  accounts in Financial Accounting. Therefore no automatic balance formation or reconciliation takes place and you will need to manually  reconcile the balances. You can ascertain the Asset Accounting values  using of the asset list. When you start this report, specify January 1st  of the current fiscal year as the report date. The system will then  provide data as of December 31st of the previous fiscal year (in other words, no depreciation from the current fiscal year is included).
    Activities
    Copy the balances from any suspense accounts to the Asset Accounting  reconciliation accounts.

  • What is the use of NACE transaction in scripts?

    hi
    what is the use of NACE transaction in scripts?
    bye

    NACE is the transaction code where you can maintain the output types for the applications...
    <b>NACE</b> - Initial Customizing Screen
    where your going to attach the layout which u have designed to the particular <b>output type</b> - Specifies the kind of output to be produced.
    The output type can specify, for example, a printed form that you need for internal use or a form that you want to send to a customer or vendor (for example, an order confirmation). The output type can also be an internal electronic mail message that you want to send to staff in another department.
    <b>print program -</b> If you want to inform a partner  about changes to output that was already issued, you enter the name of a program and a routine in the Form routine field.
    The routine in the program checks which changes should result in a changed output being sent.
    regards

Maybe you are looking for