Problems with a BADI

Hello everyone, I have a problem, there is a BADI which is used by a BSP application and also by an application in R3, this BADI has an error message sentence that works in R3 but dont work in BSP (DUMP), is there some variable (like sy-batch) that distinguishes whether the BADI is used by R3 or BSP?
Thanks for your help
PD: Sry for my bad english

Hello,
This can easily be done by implementing the interface IF_BSP_APPLICATION.
This will give you back information about the runtime of the BSP, in case you use this in R3 it will return nothing because there is no active BSP runtime.
More info on :
[http://help.sap.com/saphelp_nw04/helpdata/en/2a/31b97e35a111d5992100508b6b8b11/content.htm|http://help.sap.com/saphelp_nw04/helpdata/en/2a/31b97e35a111d5992100508b6b8b11/content.htm]
Success.
Wim

Similar Messages

  • Problem with custom_logic badi and it_param - ujk_large_string 1024

    Hi experts,
    I have a Problem triggering a script with custom logic badi.
    I try to implement a data and comment copy package for alle dimensions with source and target.
    Target is pushed in one string to IT_PARAM table of type UJK_T_SCRIPT_LOGIC_HASHTABLE.
    My Problem is now that the UJK_LARGE_STRING with 1024 characters is too small and many of the Dimension are cutted off.
    Do you know a solution or a Workaround for this Problem ? Requirement ist only one prompt/selection Screen.
    Thanks in advance and best regards
    heinrich

    Hi Heinrich,
    Split one parameter into many parameters.
    If you need more help then please share a screen shot of your script logic.
    Andy

  • Problems with creating badi implementation for virtual key figures

    Hi,
    I'm running BI 7.0 (unicode).
    I have been trying to follow this blog to calculate the virtual keyfigure in my infoset - Using Virtual Key Figure and Characteris in an InfoSet
    My infoset includes 1 infocube, and 3 master data infoobjects. I have created everything the blog was referring to, and activated fine. However, it seems that when the field symbols are assigned from the c_s_data structure, they do not get referenced correctly, so that no correct memory area is assigned and instead the whole c_s_data structure is assigned to the field symbol, which prevents me from referencing the right mem area correctly.
    For example, in this statement
    ASSIGN COMPONENT P_CHA_ZMYINFOSET___F120 OF STRUCTURE c_s_data
                                                                           TO  <fs_ZMYINFOSET___F120>.
    the component p_cha_zmyinfoset___F120 of c_s_data supposed to be assigned to the field symbol (point to the correct place in structure c_s_data). In other words when this statement is executed, the program looks at structure c_s_data, finds the component zmyinfoset___F120 in it, and assignes the position of that component in the structure to the field symbol, so that it could be referenced in the code. However, the correct assignment does not happen.
    When I debug the code and view the structure c_s_data, I can never find any component with any of the names I can find in my BEX query like ZMYINFOSET___F120. All I see are the components that are named like these: Z____5179 (C_S_DATA-Z____5179), C_S_DATA-S____5150, etc. I see the correct values, but components all have weired names like that. I thought in Infosets the components are named in the following fashion: INFOSETNAME___FXXX which you can see from your BEX query designer. Why is this happening? Why don't I see the correct names in the c_s_data structure? If instead I try to assign those components with their weired names directly, I still get incorrect assignment.
    what am I doing wrong?
    I was reading abap help on this statement:  assign COMPONENT comp OF STRUCTURE struc
    and the following I found:
    With this expression for mem_area, the memory area of a component comp of a structure struc is assigned to the field symbol. While the structure struc is specified directly, a data object must be specified for comp. The evaluation depends on the data type of comp:
    If the field comp has a non-text, elementary type, the content is converted to the type i and interpreted as a position of the component in the structure. if the value for comp is 0, the storage area of the entire structure is assigned to the field symbol.
    From what it says above, my value for comp is always 0, so that the entire structure is always assigned to my field symbol instead of a specific position in that structure.
    please let me know what is wrong here.
    thanks.
    Edited by: AG on Oct 11, 2008 10:41 AM
    Edited by: AG on Oct 11, 2008 10:42 AM

    Hi,
    I am facing the similar issue. Can you please tell me how you solved this problem in more details?
    which sample code and how u can find that in SE24 and where to copy that code.
    Thanks in advance..
    vamsi.

  • Is anyone having problems with a bad memory leak once iOS 6.1.1 was installed?

    My phone has a bad memory leak and after about 4 hours of being on the memory will be so low that ir resets the phone.

    There are a number of reports from people with VW vehicles. Try removing the phone from the list in the car. Then, remove the vehicle from the list in the phone. Do a reset on the phone, hold the sleep/wake and home buttons together until you see the Apple logo and then release. After the phone reboots, put the devices into discovery/pairing mode and see if they will connect. Otherwise, you might do a search of the forum looking for issues with VW vehicles.

  • Problem with finding BADI for transaction F9K2

    I Found many BADIs for the transaction...but am not able to decide which is suitable for my requirement..
    my requirement is ..i need to keep check box removing radiobutton in the the transctio F9K2 in tab 'accounts statements'  in  Bk.st.orig column....
    in which BADI i can Achieve  my requirement....

    Hi aman,
       Clif parameter is not getting filled when debugging the screen.and i need the badi which changes the radio button field "bk.st.orig" to checkbox in the table control of the account statement tabstrip . can please help in this regard.
    thanks and regards

  • Problem with badi MB_DOCUMENT_BADI

    Hi experts
    i have a problem with the badi, MB_DOCUMENT_BADI this is i am using for MIGO transaction
    my requirement is i need to call MR22 transaction in this badi but as this badi is calling in up date task i cann't use the call transaction statement and there is no BAPI available for MR22 transaction so could you please tell me is there any any way to process the session automatically after creating the session for MR22 transaction.
    it would be great help for me
    thanks in advance

    Lets the FM created is Z_Call_transaction_data. ( Make this FM as RFC enabled by selecting radiobutton Remote- Enabled Module in Attributes of the FM)
    Call this FM in ur BADiI Method as :
    Call function 'Z_Call_transaction_data.' starting new task 'TASK1'.
    Import ...
    Export...
    You can ginve any name to this task.
    If you want to debug it , execute ur code and when control reaches to FM , press F5 a new session will be opened .
    Starting new task starts the code in new LUW.

  • Problem with BBP_CATALOG_TRANSFER

    Hi everybody,
    I need some help with an implementation for BAdI BBP_CATALOG_TRANSFER. We use the BAdI for determining the vaules for vendor, contract and product group which are required for positing of the order in the backend system.
    It works fine for vendor and contract, but I'm having trouble with the product group.
    Here's the part of coding for transfer of the product group.
    move:
    wa_zmm_eclass-matgroup to wa_enriched_item_data-category_id,
    wa_comm_category-category_guid to wa_enriched_item_data-category.
    (Append / modify takes place later...)
    move wa_zmm_eclass-matgroup to wa_catalog_content-matgroup.
    modify catalog_content from wa_catalog_content
                                 transporting matgroup.
    Table zmm_eclass is used for mapping the eclass provided in the catalog position into the matgroup used in backend system, guid for the matgroup is read from SAP standard table comm_category.
    As far as I analysed, the values in enriched_item_data and catalog_content are filled correctly at that time. But in the resulting order, all positions have the default productgroup which is assigned to the user.
    Am I missing something?
    Thanks for your help, regards, Kathrin!

    Hi Kathrin,
    You have probably moved past all this. I am stuck with the same problem with the BADI BBP_CATALOG_TRANSFER. I am modifing the structures the structures starting with et_sc_* and setting the flag ev_sc_structures_used.
    Do you have to call the change BADI after this ? Any help will be appreciated as this is very critical for me and a lot depends for me on making thsi work.
    Greetings
    John

  • Problems with iPhone Result of Bad Music???

    In the last few weeks I've been experiencing problems with my iPhone. I did a lot of research online, and figured that it is NOT this "dead strip" that others have been having problems with; however, 75% of the time, the slide bar will not respond for the first 7-8 times I try and answer a call or turn off an alarm.
    As time went on, the problem got more frequent and more involved. The phone might work fine all day, but as soon as someone tried to call, it starting going nuts, even after the call was over. None of the applications would respond to my touch and in the rare case that they opened, they would run incredibly slow and crash. The phone would freeze and need to be restarted. In the more recent days, during the restart, in which the only buttons I'm holding are the sleep/wake and home, my music would spontaneously start playing, starting alphabetically with the first artist on my list with no controls for me to stop it.
    Most of the time, after a restart, the phone would continue to work fine, until a call comes in and starts the process all over...
    After failing an attempt to fix the problems by deleting many songs and videos to clear up some room on the hard drive, I decided to restore my iPhone, as I have done once before, but this time not syncing with previously backed up data. I allowed iTunes to erase all the contents of my phone and then manually put most things back on. Since then, the phone has been working flawlessly. However, there is one problem remaining...I have not put any of my music back on the phone.
    And now I am afraid to!! Even though all that same music has been on my phone for 3 months, and only now have I begun to experience problems, is it possible that the iPhone operating system is more fragile and more vulnerable to bad files that might otherwise work fine on my computer? I have no viruses on my computer, and I have never installed any of these problematic third party applications on my phone. And if it's not the music, what else could be causing these problems???

    This is exactly what apple care is for. Why delay and torture yourself when you can take it in and either have it fixed or have it replaced?
    Take it in to Apple

  • Why is Apple so bad at providing customers with information on what the problem with email is and what they are doing to fix it?

    Why is apple not providing information on what the problem withe email is and what they are doing to fix, along with a time frame for fixing the problem.

    It was because the problem was major.  If you do not know tech, you should know that a two day outage usually indicates some type of virus, hack, or a bad software load that they had to unravel.  The common way to solve that is to rebuild servers and put back into service.  That takes time.
    Apple did not want to admit this problem.  My guess at this stange was that they loaded new software that might be associated with the new IOS and it crashed.  To reveal this would be to cast into doubt their future revenue.
    Either way.  Run do not walk away from Icloud products and services.  Apple has demonstrated they can not be a business partner.

  • Problem with BADI BADI_HU_DIALOG.

    I want to  display some customer fields in the screen 'Addit. Data' in  the Handling Units (transaction vl02n/vl03n).
    Therefore I use the BADI 'BADI_HU_DIALOG', method DEFINITION_SUBSCREEN.
    I need the subscreen in the details, so I use the flag 'IF_DETAIL'. Next I wait  the tcode 'DETZUS' (Additional data).
    if if_detail = 'X' and is_v51g-tabstrip_fcode = 'DETZUS'.
      cf_program = '/SIE/SAPLTS_SD02_VLOG'.
      cf_screen = '9000'.
    endif.
    Now I have the subscreen on the correct Dynpro and only there, but I miss the fields of the standard subscreen. The SAP originial replaces the number of their subscreen  with mine. But what can I do if I also want to use the standard fields?
    First problem:
    is there any possibility to add my subscreen to the standard?
    Second problem:
    I can't transfer the data of CS_VEKP to my subscreen to display or change them.
    What can I do?
    Thanks
    Uwe

    Hi Uwe,
    i have the same problem.
    Do you solve the problem with the missed standard fields?
    I hope you can help me.
    Thanks
    Markus

  • Problem with this new version is when i open firefox something change my home page to mozila defalut page and in the new tab open mozila firefox first run page.Sorry for my bad English

    Problem with this new version is when i open firefox something change my home page to mozila defalut page and in the new tab open mozila firefox first run page.Sorry for my bad English

    Sounds like this issue:
    * http://kb.mozillazine.org/Preferences_not_saved
    * [[Preferences are not saved]]

  • Problem with decimal fields using BADI For PD Infotypes

    Hi,
    I'm implementing BADI  HRBAS00INFTY.
    For reading the fields of infotype , I'm using the substring
    of the field NEW_INNNN-VDATA .
    I have a problem with fields of type DEC.
    In field NEW_INNNN-VDATA it looks like this :  '####'
    I believe that the possible reason for this is conversion from DEC to CHAR
    But I don't know how to fix it.
    Thank you .
    Message was edited by: Alon Lozinsky

    Hi Alon,
    We had same issue. Use following code.
    data: hri1011_str type hri1011.
    move new_innnn-vdata to hri1011_str.
    HRI1011_STR fields will have decimal values.
    Let me know if you still have any issues. If solution works, kindly do Point Recognition.
    -Bharat

  • For the last 2 days whenever I try to upload photos from my iPhoto page to facebook I get an error message: Bad Image There was a problem with the image file.  I haven't knowingly changed any settings on iPhoto or facebook. Can anyone help, please ?

    I need help with uploading photos from iPhoto to facebook. I could do it till 2 days ago. Now any new photo I try to upload gives me an error message:
    Bad Image
    There was a problem with the image file. 
    Please help.

    Can you drag it to the Desktop?

  • Problem with content: 7 - Bad sound Data

    When I do the following...
    Voice = new Sound();
    Voice.loadSound("test.mp3", true)
    I get the error...
    Problem with content: 7 - Bad sound Data
    AND
    Problem with content: 7 - The sound data format is not
    recognized.
    I am using the test.mp3 files that comes with Flash8.
    Thanks!
    Bob

    OK. This combo works!
    version flash Player 8
    action script 2.0
    Audio Stream: MP3, 128 kbps, Stereo best
    Audio event: MP3, 128 kbps, Stereo best
    Override sound settings (unchecked)
    But this combo does not!!
    version flash lite 2.0
    action script 2.0
    Audio Stream: MP3, 128 kbps, Stereo best
    Audio event: MP3, 128 kbps, Stereo best
    Override sound settings (unchecked)
    Still get the error on all Nokias except Nokia 90 which gets
    no error but just does not play the file

  • Problem with BPC 10 REST SERVICE. (Write-Back  BAdI)

    Hello!
    We have implemented a Write-Back BAdI order to write values ​​to a parent and copy those values ​​to their children in the hierarchy. Proper operation.
    Then through the Default Logic we are making various calculations (many to be honest), based on the data recorded with the Write-Back BADI.
    The problem arises when we try to write in a parent hierarchy with many children.
    We receive the following message in Excel.
    We have configured the service as follows
    The transaction st22 says nothing about our problem.
    If I go to log the EPM Add-in for Excel see the following. A problem with REST service (I think that is the PROBLEM)
    Write-Back BAdI writes values properly.
    Thank you!

    Thanks for answering.
    Yes, if I try to write in a parent without Default.lgf there is no problem. I performed the test to the parent node of all hierachy.
    I send the Default.lgf and the others scripts .
    I think the problem is that the communication between BPC and Netweaver is lost, which is done through the REST service??
    thank you very much.

Maybe you are looking for

  • How can we acess the data of one component into othr component in webdynpo?

    How can we acess the data of one component into other component in webdynpro.... I need an Field input from one webdynpro component(comp1)  which is away from the line of process to the other component(comp2) we need that data........I mean i need th

  • Duplicate Postings in SAP

    Hi All, I have encountered an interesting situation. While trying to post a document through an RFC I have come across two postings which have all the header and line items same except for the document number. Even the posting time is same for both e

  • IPhoto opens at start up

    Every time I turn on the computer, iPhoto opens up. How do I make it stop? Or never really start, actually.

  • Is there a solution to parental controls blocking https?

    I have seen many posts regarding parental controls blocking any website that has SSL or https, but they are for older versions of OS X.  Is there a solution for the latest version of Mavericks?  I am amazed that the problem has persisted as long as t

  • How can I remove spot colors?

    I'm still working on changing a document I didn't create. It needs to be CMYK, but I keep getting error messages when I save it that there is a spot color. I saw one spot color in the Swatches (at least I seem to remember that's what the little dot i