Issue on Badi Execution for copy appset

Hai,
I have write a badi to Copy Transaction data from appset to another appset it works fine and now i has to enhance the code to copy same to another account.
here comes the issue.,
when i execute the code for hard coded it works fine and post the data for the logic.
but when i keep account =<all> it throughs the error as exception error when i debug the code it shows due to duplicate records.
how can i solve the issue.
thanks,
Rajesh

hai,
the problem is with the work status .
i unlocked the work status for the source and destination applications
and i run the logic the code executed sucess fully...
this is because when the work status is in "confirmed"  it doesnt allow to load data to that member.
thanks,
Rajesh

Similar Messages

  • BADI implementation for Copying control in CRM

    HI,
      Can anybody help me for my requirment, i want to implement BADI for copying control in CRM how to implement, and i want to filed in qutation screen how .
    Regards,
    Sivakumar.

    Check the BADI "ME_PROCESS_PO_CUST".
    Regards
    Vinod

  • Issue with customer exit for copying one variable value to another

    Hello Gurus,
    I need to copy the value of a single value variable into another single customer exit variable.
    I coded as below.
      WHEN 'customer_exit_var'.
        IF I_STEP = 2. "after the popup
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
          WHERE VNAM = 'user_input_Variable'.
            CLEAR L_S_RANGE.
            L_S_RANGE-LOW = LOC_VAR_RANGE-LOW.
            L_S_RANGE-HIGH = ''.
            L_S_RANGE-SIGN = 'I'.
            L_S_RANGE-OPT = 'EQ'.
            APPEND L_S_RANGE TO E_T_RANGE.
            EXIT.
          ENDLOOP.
        ENDIF.
    I used the condition <= for the customer exit variable in the report. But, it is considering only single value, but not all the values <= to the give value.
    Please help me in this regard,
    Thanks,
    Aarthi.

    Thanks for your immediate response Govind.
    My report is restricted based on two dates. Date1 and Date2. Need to consider all records whose dates are <= Date1 and <= Date2.
    Date1 and Date2 should have same values. But user inputs only Date1.
    So, I created Date1 as Single, User Input Variable restricted the query with <=Date1.
    Next I created Date2 as Single, Customer Exit Variable and restrcited the Query with <=Date2.
    In CMOD I used the above code to assigne Date1 Value to Date2.
    When I execute the report, say I give todays date in the report (Dec, 12, 2007). Date2  has to consider all the values <= Dec 12, 2007. But, in my case it is considering only Dec 12, 2007, but not the before dates.
    So, Please help me in solving this problem.
    Thanks,
    Aarthi.

  • Issues while creating implementation for BADI  "ME_PROCESS_PO_CUST"

    Hi Group,
    I have issues while creating implementation for  BADI "ME_PROCESS_PO_CUST".
    I tried to create implementation for the above mentioned BADI but, I was getting an error like this:
    "Interface implementation IF_EX_ME_PROCESS_PO_CUST does not exist".
    I want to implement this BADI and so, ideas/views at the earliest will be appreciated.
    Please let me know how to overcome this error.
    Thanks,
    Vishnu.

    Hi,
    Have you activated the class which is implementing the interface? (in transaction SE19 you should see class name)
    Best regards,
    Wojciech

  • Weblink issues for copying opportunity and lead records

    I am trying to create weblink fields for copying Opportunity and Lead records. I am basically successful for Opportunities except that I can not get picklist or link values (such as the associated account) to copy over.
    I am having no success at all for the the lead copying field. My code is as follows:
    https://secure-ausomxbha.crmondemand.com/OnDemand/user/LeadsNewPageDefault?OMTGT=LeadCreateEditForm&OMTHD=LeadEditNav&OMRET0=LeadsDetailPage%3focTitle%3dPA%2bCasinos%26OMTGT%3dLeadDetailForm%26OMTHD%3dLeadDetailNav%26ocEdit%3dY%26OCTYPE%3dOther%26ocTitleField%3dFull%2bName%26LeadDetailForm.Id%3dABHA-5SVNQI&LeadCreateEditForm.Id=ABHA-5SVNQI&OCTYPE=Other&LeadCreateEditForm.First Name=%%%First_Name%%%&LeadCreateEditForm.Last Name=%%%Last_Name%%%.
    Any thoughts?
    Thanks.

    Hi,
    To my knowledge there is no written documentation available. But this is the way i do it. Go to the lead edit page. Right click in your IE and choose view source. Search for that particular field say "First Name" or "Last Name". As part of the HTML code displaying the field (<input> html tag), you can find the exact field name to be used.
    The example in my case is below says the field name is LeadCreateEditForm.First Name
    "First Name*</span></td><td class="fv" style="padding-left:6px;height:2px;vertical-align:middle"><input name="LeadCreateEditForm.First Name" size="20" maxlength="50" tabindex="4" type="text" value="Doug" class="inputControl" id="LeadCreateEditForm.First Name" />"
    Hope this helps !!!
    -- Venky CRMIT

  • Runlogic PH issue on BPC 10 for parallel run

    Hi,
    We have implemented runlogic PH keyword on BPC 10 for running currency translation in parallel with change parameter Time.
    for ex: if we run the package with time period 2013.01. as per logic it is supposed to run for all months in 2013 from 2013.01 to 2013.12 in parallel.
    some times when we run this package, it tends to skip few months(it does not translate for few months and these months are different for each run) in between and it is random.
    Main script
    *SELECT(%YEAR_F%,[YEAR],TIME,[ID]='2013.02')
    *SELECT(%MONTH_F%,[BASE_PERIOD],TIME,[ID]='2013.02')
    *SELECT(%TIME_F%,[ID],TIME,[YEAR]='%YEAR_F%' AND [BASE_PERIOD] >= '%MONTH_F%' AND [CALC]='N')
    *START_BADI RUNLOGIC_PH
    QUERY = OFF
    WRITE = ON
    VALIDATION = OFF
    DEBUG = OFF
    LOGIC = FXTRANS_FCS.LGF
    APPSET = BEACON
    APP = VOLUMES
    DIMENSION CATEGORY = %CATEGORY_SET%
    DIMENSION ENTITY = %ENTITY_SET%
    DIMENSION TIME = %TIME_F%
    CHANGED = TIME
    *END_BADI
    for ex: if i select 2013.01 - based on the above select statements it takes from 2013.01 to 2013.12
    *START_BADI RUNLOGIC_PH
    QUERY = OFF
    WRITE = ON
    VALIDATION = OFF
    DEBUG = OFF
    LOGIC = FXTRANS_FCS.LGF
    APPSET = BEACON
    APP = VOLUMES
    DIMENSION CATEGORY = %CATEGORY_SET%
    DIMENSION ENTITY = %ENTITY_SET%
    DIMENSION TIME = 2013.02,2013.03,2013.04,2013.05,2013.06,2013.07,2013.08,2013.09,2013.10,2013.11,2013.12
    CHANGED = TIME
    *END_BADI
    Called function:standard fxtrans.lgf
    /Currency Translation
    *RUN_PROGRAM CURR_CONVERSION
    CATEGORY = %CATEGORY_SET%
    CURRENCY = %RPTCURRENCY_SET%
    TID_RA = %TIME_SET%
    OTHER = [ENTITY=%ENTITY_SET%]
    RATEENTITY = GLOBAL
    *ENDRUN_PROGRAM
    //Reverse Non-Monetary Quantity conversion
    *SELECT (%ACCTN%, [ID], VOLACCT, CALC = 'N')
    *SELECT (%QUANTU%, [ID], QUANTITY, NO_CURR = 'N')
    *SELECT(%CATEG%, [FX_SOURCE_CATEGORY], CATEGORY, [ID] = %CATEGORY_SET%)
    *XDIM_MEMBERSET BU = BAS(TOTBU)
    *XDIM_MEMBERSET BUILDSTATE = BAS(TOTBS)
    *XDIM_MEMBERSET BUSINESS = BAS(TOTBUS),MP_VB
    *XDIM_MEMBERSET CTRTYPE = BAS(TOTCTR)
    *XDIM_MEMBERSET PRODUCT = BAS(TOTPRODUCT)
    *XDIM_MEMBERSET QUANTITY = %QUANTU%
    *XDIM_MEMBERSET TECHPLATF = BAS(TOTTP)
    *XDIM_MEMBERSET VOLACCT = %ACCTN%
    *XDIM_MEMBERSET AUDITTRAIL = BAS(D_INPUT),D_OTHER
    *XDIM_MEMBERSET CATEGORY = %CATEG%
    *XDIM_MEMBERSET ENTITY = %ENTITY_SET%
    *XDIM_MEMBERSET RPTCURRENCY = C_LC
    *XDIM_MEMBERSET TIME = %TIME_SET%
    *WHEN QUANTITY.NO_CURR
    *IS N
    *REC(FACTOR=1,RPTCURRENCY=%RPTCURRENCY_SET%,CATEGORY=%CATEGORY_SET%)
    *ENDWHEN
    *COMMIT
    Kindly advise.
    Thanks,
    Madhav

    Hi Vadim,
    specified all dimensions inside badi but still the same issue. Two months are not translated.. there are no locks in the system too..
    Pkg log shows that it was run for all months
                                                   12 Data Regions will be generated.
                                                   12 parallel processes will be used.
    Dimension TIME memeber 2013.01 used for a new Data Region.
    Process Task  1 Started at 10:42:17.
    Dimension TIME memeber 2013.02 used for a new Data Region.
    Process Task  2 Started at 10:42:17.
    Dimension TIME memeber 2013.03 used for a new Data Region.
    Process Task  3 Started at 10:42:17.
    Dimension TIME memeber 2013.04 used for a new Data Region.
    Process Task  4 Started at 10:42:17.
    Dimension TIME memeber 2013.05 used for a new Data Region.
    Process Task  5 Started at 10:42:17.
    Dimension TIME memeber 2013.06 used for a new Data Region.
    Process Task  6 Started at 10:42:17.
    Dimension TIME memeber 2013.07 used for a new Data Region.
    Process Task  7 Started at 10:42:17.
    Dimension TIME memeber 2013.08 used for a new Data Region.
    Process Task  8 Started at 10:42:17.
    Dimension TIME memeber 2013.09 used for a new Data Region.
    Process Task  9 Started at 10:42:17.
    Dimension TIME memeber 2013.10 used for a new Data Region.
    Process Task 10 Started at 10:42:17.
    Dimension TIME memeber 2013.11 used for a new Data Region.
    Process Task 11 Started at 10:42:17.
    Dimension TIME memeber 2013.12 used for a new Data Region.
    Process Task 12 Started at 10:42:17.
    Process Task  8 Ended at 10:42:35.
    Process Task  7 Ended at 10:42:35.
    Process Task  4 Ended at 10:43:00.
    Process Task  5 Ended at 10:43:00.
    Process Task  3 Ended at 10:43:03.
    Process Task  6 Ended at 10:43:03.
    Process Task 12 Ended at 10:43:03.
    Process Task 10 Ended at 10:43:03.
    Process Task 11 Ended at 10:43:04.
    Process Task  2 Ended at 10:43:05.
    Process Task  1 Ended at 10:43:06.
    Process Task  9 Ended at 10:43:52.
    BADI EXECUTION TIME IN TOTAL :97294.41 ms.
    SCRIPT RUNNING TIME IN TOTAL:97.76 s.
    LOG END TIME:2014-05-22 10:43:52
    Thanks,
    Venu

  • BAPI's for copy batch characterestics  at the time of Goods Recipt save

    Dear members,
    I am copying the Batch characteristics values of the order(Process order) to new batch at the time of GOODS RECEIPT (GR) in repack process.
    Can anyone please let me know  there are any BAPI's for copy batch characteristics values to New Batch in GR(MB31 or MIGO) at the time of Goods Receipt SAVE.
    Thanks,
    Srinivas

    hi srinivas,
    did you find any solution for this problem. we are facing the same issue and currently thinking of few alternatives to deal with it. whether to use BADI for Batch derivation or to use a BAPI.
    thanks,
    Kunal

  • Execution of "Copy Configuration" of SOA failed

    Hi Everybody,
    We are trying to extract moveplan.xml from a provisioned FMW setup but we are stuck with an error.
    It would be of great help if any one can help on this.
    Any help to resolve this would be highly appreciated.
    Error:
    *SEVERE : [PLUGIN]Jun 13, 2011 4:07:53 AM - CLONE-53004 Error in examining Human WorkFlow.*
    *SEVERE : [PLUGIN]Jun 13, 2011 4:07:53 AM - CLONE-53004 Human WorkFlow examination failed.*
    *SEVERE : [PLUGIN]Jun 13, 2011 4:07:53 AM - CLONE-53004 Make sure that all the specified values are correct and domain configuration is valid. Check managed server logs and clone logs for more details.*
    *SEVERE : [PLUGIN]Jun 13, 2011 4:07:53 AM - CLONE-53013 SOA Plugin examination failed.*
    *SEVERE : [PLUGIN]Jun 13, 2011 4:07:53 AM - CLONE-53013 Execution of "Copy Configuration" of SOA failed.*
    *SEVERE : [PLUGIN]Jun 13, 2011 4:07:53 AM - CLONE-53013 Make sure that the SOA managed server is started and all the applications targeted to the SOA managed server are in active state.*
    The idea is to run T2P(Test 2 Production) copyConfig.sh script for all doamins one by one and then collect all archives to one place and finally run extraxtMovePlan.sh specifying all achrives to get single multi archive Move Plan.
    So, first we ran copyConfig.sh on CommonDomain, but came across the above error.
    The command that we executed was :
    copyConfig.sh -javaHome ./jdk6 -archiveLoc /scratch/ntallapa/t2p1.jar -sourceDomainLoc <Domain root>/CommonDomain -sourceMWHomeLoc <Fusion App Top>/fusionapps -domainHostName <hostname> -domainPortNum 7001 -domainAdminUserName FUSION_APPS_PROV_PATCH_APPID -domainAdminPassword /scratch/ntallapa/p.txt -logDirLoc /scratch/ntallapa/ -silent true
    The SOA managed server is up and running.
    Regards,
    Saurabh

    Saurab,
    Did you find a resolution to this as I am facing the same issue?
    Thanks
    Mark

  • BAdI UC_DATATRANSFER for BCS Mapping in "Load from Data Stream" method

    Hello Everyone,
    I need some help on finishing up the code for the UC_DATATRANSFER BAdI.
    I have looked up in the SDN and other places, but could not get comprehensive breakdown of documentation except for the "F1" documentation available on the BAdI.
    So, any help would be appreciated.
    The Steps so far completed,
    1. Have activated the BAdI and have created the filter value for the BAdI.
    2. After the BAdI has been activated, I was able to go into the MAP method and have written the logic for profit center derivation from consolidation hierarchy.
    The issue is there are four components for the Map method,
    IT_DATA_SOURCE
    IS_DATA_TARGET
    ES_DATA_TARGET
    ET_DATA_TARGET
    The data is available from Source system in the table IT_DATA_SOURCE.
    But this is not changeable as it is "Importing" type. Whereas the actual ET_DATA_TARGET which is passed over into FINALIZE method of the BAdI is not filled initially.
    When I try to do a MOVE-CORRESPONDING from the IT_DATA_TARGET into ET_DATA_TARGET I continuously am getting the short dumps as both the tables length is not the same.
    Did anyone else face the same issue as above when trying to do the BAdI implementation for Mapping.
    I will really appreciate if any one can provide me a sample code if possible.
    Let me know if you need additional information.
    Thanks
    Dharma.

    Hello,
    Thanks for looking into the question.
    I already had tried doing that, I get the Short dump stating the object tables are not convertible.
    When I looked into the table structures, I found out that the table structures "IS_DATA_TARGET", "ES_DATA_TARGET" & "ET_DATA_TARGET" belong to the same category in terms of these structures being flat structures or tables of length 484 as per the debugger.
    Whereas the structure "IT_DATA_SOURCE" has the length 404.
    Due to this reason when I say,
    ET_DATA_TARGET = IT_DATA_SOURCE, I keep getting the short dumps.
    Also, is your consolidation process legal or managerial.
    Our Consolidation process is legal and we have the Company and Profit Center fields assigned to the Consolidation Unit role in the Data Basis definition.
    Can you please let me know what is the structures length in your system.
    Thanks
    Dharma.

  • Issue in PO creation for Direct Material Procurement.

    Hi Experts,
    I am working with SRM 7.0 Classic Scenario.
    I have no issues with SC creation for indirect materials with Account Assignment.
    But when I select Order as Direct material in SC for any material with out account assignment on Approval of SC PO is created in SRM system as Extendended Classic Scenario even though I have not activated Extended classic scenario.
    Kindly help me out in this issue how can I order as DIRECT MATERIAL WITH Classic scenario.
    Regards,
    B.N.Karthikeyan.

    karthi
    it is standard behavior,
    but you can do one thing .
    BBP_CREATE_BE_PO_NEW  BADI - TRY . CLEAR THE ACCOUNT ASSIGNMENT .Thats all . check it up with technical resoucre.
    but you have to decide by developemnt what are the materials are PO with account / without account assignment
    br
    muthu

  • Error: 400 "Bad Request" for "deletetree", file "": Unsupported protocol .

    Hi 
    I have an C# application suddenly crashing after months of operation. The application is running on a Windows7 machine and is controlling 2 x NI6602 PCI counter cards through daqmx. The only clues to what when wrong is the following messages in the Windows Application Log.
    Message 1 (occurring first):
    LabVIEW information:  Error: 400 "Bad Request" for "deletetree", file "": Unsupported protocol       .
    Message 2:
    Faulting application name: RecordingStationGUI.exe, version: 1.0.0.0, time stamp: 0x4e3fa214Faulting module name: KERNELBASE.dll, version: 6.1.7600.16385, time stamp: 0x4a5bdaaeException code: 0x80000003
    Does anyone know what is causing this error and/or how I prevent this from happening again?
    Regards,
    mola

    Where you ever able to resolve this issue?  I have a very similar issue

  • How maintain the Customise setting for copy the text to sales doc to sales

    Hi SAP Gurus,
    How to customise the text for copy to sales documents to sales documents and output.Kindly needful for me.
    Regards
    Vikram.M

    This is determined based on the access sequence specified for the Text ID.
    You can go to IMG/logistics execution/Basic shipping functions/Text control/Define access sequences for determining texts.
    You may also use t-code VOTXN.
    If you are trying to check text being copied to delivery header,then click the radio button for the delivery header and click display. go to the relevant text determination procedure and
    Check the access sequence assigned to the Text id not being copied.
    The Text object should be VBBK to copy texts from sales order header,VBBP for sales item texts.
    You can compare it with your other text ids and their access sequences and make the necessary change to the one that is not being copied.
    Regards,

  • SCAT program for copying BOM from one material to another material??

    Hi Gurus,
    Tried creating SCAT program for copying BOM from one material to another material and founf that the copying function does not work.
    Please advise??
    Thank you.
    Naveen.

    HI Satish Ji,
    We are using version 6.0.
    We were able to create SCAT for creating new BOM but, for copying we are facing an issue.
    Kindly advice.
    Thank you.
    Naveen.

  • Vendor master user exit for copying  NAME1 - NAME3

    Hi Gurus,
    I am looking for a user exit in Vendor master for FK01. User enters data in NAME1 and NAME2 field.
    When the user saves the data, the data from Name1 field should be copied to NAME3 and data from NAME2 field should be copied to NAME4.
    Please help...
    Regards,
    Tushar.

    u can find BADI's or Enhancement in Foloowing Ways.... Hope u will find one
    1>First go to any transaction->iN THE menu bar SYSTEM->STATUS->Get the program name ->double click->u will go to the program attached to the tcode.Now search term will be CALL CL_EXITHANDLER.Now u will get list of BADI'S available..
    2>Goto SE24->Give class name as CL_EXITHANDLER->Display->double click on get_instance mathod->Now u will go inside the method->Now put break point on the cl_exithandler.Now go to any transaction code and pass dat..U will see that it will be stopped on the break point which u set on the cl_exithandler...In the exit name u can find list of badi's attached to the tcode..
    There are multiple ways of searching for BADI.
    • Finding BADI Using CL_EXITHANDLER=>GET_INSTANCE
    • Finding BADI Using SQL Trace (TCODE-ST05).
    • Finding BADI Using Repository Information System (TCODE- SE84).
    1. Go to the Transaction, for which we want to find the BADI, take the example of Transaction VD02. Click on System->Status. Double click on the program name. Once inside the program search for ‘CL_EXITHANDLER=>GET_INSTANCE’.
    Make sure the radio button “In main program” is checked. A list of all the programs with call to the BADI’s will be listed.
    The export parameter ‘EXIT_NAME’ for the method GET_INSTANCE of class CL_EXITHANDLER will have the user exit assigned to it. The changing parameter ‘INSTANCE’ will have the interface assigned to it. Double click on the method to enter the source code.Definition of Instance would give you the Interface name.
    2. Start transaction ST05 (Performance Analysis).
    Set flag field "Buffer trace"
    Remark: We need to trace also the buffer calls, because BADI database tables are buffered. (Especially view V_EXT_IMP and V_EXT_ACT)
    Push the button "Activate Trace". Start transaction VA02 in a new GUI session. Go back to the Performance trace session.
    Push the button "Deactivate Trace".
    Push the button "Display Trace".
    The popup screen "Set Restrictions for Displaying Trace" appears.
    Now, filter the trace on Objects:
    • V_EXT_IMP
    • V_EXT_ACT
    Push button "Multiple selections" button behind field Objects
    Fill: V_EXT_IMP and V_EXT_ACT
    All the interface class names of view V_EXT_IMP start with IF_EX_. This is the standard SAP prefix for BADI class interfaces. The BADI name is after the IF_EX_.
    So the BADI name of IF_EX_CUSTOMER_ADD_DATA is CUSTOMER_ADD_DATA
    3. Go to “Maintain Transaction” (TCODE- SE93).
    Enter the Transaction VD02 for which you want to find BADI.
    Click on the Display push buttons.
    Get the Package Name. (Package VS in this case)
    Go to TCode: SE84->Enhancements->Business Add-inns->Definition
    Enter the Package Name and Execute.
    Here you get a list of all the Enhancement BADI’s for the given package MB.
    The simplese way for finding BADI is
    1. chooes Tcode Program & package for that Tcode.
    2. Go to Tcode se18
    3. Press F4
    4. search by package or by program.
    Regards,
    Usman Malik

  • I have an issue with disappearing option for 1920x1080 in Preferences / Displays.

    Recently updated to 10.9 - have all updates installed - Mid 2010 iMac 21.5.
    I have an issue with disappearing option for 1920x1080 in Preferences / Displays. - After overnight shutdown, my iMac woke up and the screen resolution of my 2nd was set at 800 x 600 - the display a Samsung S22B150 was previously working properly at 1920 x 1080.  This option is no longer available in the system preferences - highest resolution available 1600 x 1200.
    I use my mMac for Photography and use the second monitor for the interface, leaving the iMac screen as a full work area for the photos.
    I have tried:
    Power down Monitor & restart
    Shutdown & restart
    Shutdown & restart in Safe Boot Mode (options same in Prefs)
    Power down Monitor & restart in Safe Boot Mode
    Ran Disc Utility - Repaired Permissions, verified both HDD & Mac OSX
    Udated Pram
    I am now at a loss, I guess I could try a recovery, and download/install  Mavericks again, but do not wish to do this if I can help it.
    I have searched the net to see if there are any Terminal commands to enable the resolution, but can find nothing.
    Anyone out there have any ideas, please.

    Back up all data. Quit System Preferences if it's running.
    Triple-click anywhere in the line below on this page to select it, then copy the text to the Clipboard by pressing the key combination command-C:
    ~/Library/Preferences/ByHost
    In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar. Paste into the box that opens (command-V), then press return. A folder should open. If it does, look for a file with a long name that begins "com.apple.preference.displays2". There may be several such files. Move them to the Trash.
    Test.

Maybe you are looking for