Question to BADI: WORKORDER_INFOSYSTEM

Hi,
we use the BADI: WORKORDER_INFOSYSTEM with method: AT_OUTPUT_SCREEN for
changing print layout.
Now we want to use this badi to change the value of the output.
Normaly the materialtext in show in german.
But if the user has as special parameter.id set to EN we want to change
the output (materialtext) to english.
Is there any mehod in this BADI to change the value of the outputtable?
thanks for help.
Regards, Dieter

Solved by my own,
I find the definiton in Report of CO27.
Regards, Dieter

Similar Messages

  • Can anybody send me the interview point of Questions on BADIs?.

    Can anybody send me the interview point of Questions on BADIs?.

    Check this out:
    www.sap-img.com/abap/difference-between-badi-and-user-exits.htm
    Re: BADI OR USER EXIT.........
    www.bwexpertonline.com/archive//Volume_01_(2003)/Issue_08_(September)/V1I8A5.cfm?
    Reward if helps
    Vivek

  • Syntax-Problem in BADI: WORKORDER_INFOSYSTEM Method: AT_OUTPUT_SCREEN

    Hi,
    i want to use the method AT_OUTPUT_SCREEN of BADI: WORKORDER_INFOSYSTEM
    I want to get the fieldcattable: MT_FIELDCAT_LOCAL.
    This method has the parameter: I_ALV_GRID (type ref. to)
    I try this code, but i get syntax-error.
    method IF_EX_WORKORDER_INFOSYSTEM~AT_OUTPUT_SCREEN.
      data: LOCAL_T_FCAT  type LVC_T_FCAT.
      LOCAL_T_FCAT = I_ALV_GRID->MT_FIELDCAT_LOCAL.
      break-point.
    endmethod.
    Can anyone help me to get what i need?
    Thanks.
    regards, Dieter

    Hi Advait,
    thanks for your answer, but i need the contents of table MT_FIELDCAT_LOCAL.
    when i debug the method in debugger i can see the table with this field:
    -MT_FIELDCAT_LOCAL
    How can i get this table in the BADI. I will copy it to
    variable: LOCAL_T_FCAT
    METHOD IF_EX_WORKORDER_INFOSYSTEM~AT_OUTPUT_SCREEN.
      DATA: LOCAL_T_FCAT  TYPE LVC_T_FCAT.
    * {O:55*\CLASS=CL_GUI_ALV_GRID}-MT_FIELDCAT_LOCAL.
    * LOCAL_T_FCAT = I_ALV_GRID-MT_FIELDCAT_LOCAL.
      BREAK-POINT.
    ENDMETHOD.
    thanks.
    Regards, Dieter

  • Question about BADI FI_AUTHORITY_ITEM in ECC 6.0

    Dear all,
    To control the authorizations of users to display the document line items, I have created a Business Add-In Implementation "Z_FI_AUTHORITY_ITEM" with BADI FI_AUTHORITY_ITEM in SAP R/3 4.7.
    The BADI worked correctly in SAP R/3 4.7.
    Recently, we are upgrading my SAP from 4.7 to ECC 6.0. After upgraded, I found that the BADI doesn't called when displaying the documentline item. The status of the BADI is active. I have also tested in debug mode, it seems that it doesn't get into the BADI coding.
    Can I ask how to solve this problem?
    Thanks
    Sunny

    Hi Sunny,
    I hope the following links should be able to answer your questions:
    http://wiki.sdn.sap.com/wiki/display/Snippets/CreatealinkbetweenClassicBAdIandEnhancementspot
    http://www.sapdev.co.uk/enhance/eframework/ef_implicit.htm
    http://blog.csdn.net/conworld/archive/2009/04/01/4040658.aspx
    Regards,
    Warren.

  • Question about bad query

    Hi all ,
    I have small question related to bad query .
    what is the affecting happens to database if there is lot of bad query , i know the performance issue is there what's other things .like archive log generated database time , IO , TMP tablespace , please give me information about it's .
    thanks & regards.

    user11969912 wrote:
    I have small question related to bad query . What do you consider a bad query? A bad query can be the result of poorly written and illogical SQL. It can be due to not using bind variables. It can be due to a on-optimal execution plan generated by the CBO. It can be due to poorly designed code that uses what seems to be a "good query", badly and in the wrong way (using bulk collection when a native SQL alone suffices, or hitting the very same data multiple times, etc).
    what is the affecting happens to database if there is lot of bad query Each of these have a different impact on the database. A "bad query" can cause a snapshot-too-old error. A deadlock error. A shared pool memory allocation error. Can cause no error and simple increase I/O. Or increase CPU. Etc.
    It is a lot more complex than what you seem to think, given your question.

  • General BADi question:Call BADi in background job/batch input. Possible?

    Hi out there,
    i'm using thoe following BADi: /SAPSLL/CTRL_SD0C_R3 (Global Trade Service).
    But also, this question is a general question.
    If we are calling on screen the transaction VF01, the BADi is called correctly.
    But unfortunately it seemes that the BADi is NOT called (im not really sure, cause i can't debug the background task) when we are calling a batch input sequence wth f.e. form bdc_transaction VF01 nothing happens.
    Maybe BADi cannot be called in a background task? If it's possible, how could it be monitored. Thare isw no spool entry or anything like that!
    Any answer can help.
    Thank you in advance!
    Regards,
    Timo
    Edited by: Timo Ehl on Apr 14, 2009 7:27 PM

    Hi,
    generally BADIs are called in background mode. You can use the following trick to debug your BADI. You just need to create an infinite loop in your BADI implementation. Something like this.
    DATA: l_a TYPE c.
    WHILE l_a IS INITIAL.
    ENDWHILE.
    Obviously when your BADI is called in background mode then program will get into infinite loop. You can easily connect and debug running programs from transaction SM50. You need to select your background process and go to Program/Session -> Program -> Debugging. You will jump directly into your BADI methos with infinite loop. Then you will just set value to l_a and you will start debugging your BADI. If you can not find any process then your BADI is not called in background mode.
    Cheers

  • Simple question - very bad service :(

    First the rant then the question if you even care to answer it. Spent over 20 minutes trying to get a sensible answer from the **bleep** at the chat session.  This is what you normally get when you are a HUGE greedy company trying to mazimaze profits at the expense of good service. They know they can get away with it on the individual level and dont care. This is not the first time I have had that bad experience.  HEY Verizon, AMERICANS need jobs. WHY NOT move the support center over here?   Well, what do you know. Bad managment, bad decisions, bad support.  If they knew what they were doing they would not waste money by putting a Verizon store on every block! Good companies, like APPLE dont have to beg customere to come in.
    ALL  I want to know.   Verizon sent me a DSL modem. Inside are numerious settings and configurations.  I am technical and understand most of these and some generally.  ALL I want however, is the data usage, so I can relay it to another Verizon salesman where we were looking at wireless options.
    Thats all. Do you think they could help me understand the send and receive counts?  NO. I was told NOBODY in verizon could help me with that question.  As much as i find that incredulous that is what he insisted, mr{edited for privacy}.  That was even after waiting 17 minutes to get to what I was told was an american on the west coast. So all told wasted almost 40 minutes. Wonderful.
    Is that a byte count? a bit count. a packet count. what are the packet sizes. Anything would help.
    The numbers were 21638651 send , 38217653 receive.  The uptime was 303 hours 13 minutes.  I am assuming/hoping, the counters were reset on power on and occur within the uptime. 

    Thanks for responding we  were glad to help.
    Tonya D.

  • Question on BADI  RSU5_SAPI_BADI Method HIER_TRANSFORM

    We are in the process of converting our R/3 datasource EXIT_SAPLRSAP_004 to BADI  RSU5_SAPI_BADI using method HIER_TRANSFORM.
    EXIT_SAPLRSAP_004 has parameter I_S_HIEBAS in the import tab which we have coded as:
    <i>If i_s_hiebas-hclass = '0000'.  </i>
    but HIER_TRANSFORM does NOT have this parameter I_S_HIEBAS in the methods tab.  How can we code this same statement in BADI if this parameter is not in the methods tab of HIER_TRANSFORM?
    Appreciate any input.
    Thao

    hi Thao,
    method HIER_TRANSFORM has parameters
    I_DATASOURCE
    I_S_HIEFLAG
    I_S_HIER_SEL
    I_T_LANGU
    C_T_HIETEXT
    C_T_HIENODE
    C_T_FOLDERT
    C_T_HIEINTV
    C_T_MESSAGES
    (you can see this in SE18, display RSU5_SAPI_BADI, tab interface, double click HIER_TRANSFORM, tab 'method' click 'parameters')
    you can try parameter I_S_HIER_SEL, there is HCLASS (double click RSAP_S_HIER_LIST, and double click ROSHIERSEL), your code may look like
    method IF_EX_RSU5_SAPI_BADI~HIER_TRANSFORM .
    if I_S_HIER_SEL-HCLASS = '000'.
    endif.
    endmethod.
    hope this helps.

  • A simple question about bad coding

    Hi, to cut a long story short i am coding a small section that changes the colour of a panel depending on the hour of the day, however i don't want to write 24 if statements to check what the hour is, now i have been coding all day and am having a bit of a mental block....can anybody think of another solution?
    If not, would it be bad practice to have 24 if statements in a method to check such a trivial attribute?
    Thanks for your help in advance

    It depends on if there's a nice relationship between the condition and what is to be done depending on the condition. For instance, it would be bad to do this:
    int y;
    if (x == 0)
      y = 5;
    else if (x == 1)
      y = 10;
    else if (x == 2)
      y = 15;
    // etcbecause obviously there's a simple relationship: y = 5 * (x + 1)
    I imagine in your case you could at least stick 24 values (colors or whatever) in an array, and simply index into that array, if there isn't a simple relationship like the above.

  • Question on Badis?

    Hi Friends
    1.Are badis in SRM applicable to all components (EBP,BE,SUS) say we will use SUS and not EBP.Or are the Badis applicable only to specific components
    2.In SRM7.0 badis what is the diff bet enhancement spot and enhancement implementation,what is the diff bet classic badi and new badi.Can we use old badis for some documents(SRM5.0) and new badis(SRM7.0) for some documents in SRM7.0
    Regards
    Ian

    SRM BADI typically has a filter based on object type. This is how you can decide how this BADI will be used during transaction. For example, if you want a particular BADI to be activated only when the system process SUS Purchase Order, they you can activate the filter based on object type BUS2230. Since PO generated from EBP will have a different object type, the logic on this BADI can be differentiated accordingly. Even if the BADI does not have the filter based on object type, a lot of times you should still have the access to object type information through the import parameter of the BADI.
    Now as for new BADI vs old BADI, all I can tell is that the new BADI is available even in SRM server 5.5. And yes, both the new BADI (based on enhancement spot) and classic BADI can be used at the same document.
    Revi

  • Yet another question about "bad magic number error"

    I have acquired a Sun Blade 1000 w/o installed OS and a set of genuine Solaris 10 media. As a Solaris neophyte I'm either being stupid or I've got a real problem and I can't tell which. So help would be greatly appreciated.
    With the sparc disc in, if I let the machine start up I get a common error message for used sun kit:
    Bad magic number in disk label
    Can't open disk label package
    Boot device: net File and args:
    Timeout waiting for ARP/RARP packet
    I stop-a and try to boot from the sparc disc and get the error message:
    Boot device: /pci@8,7000000/scsi@6/disk@6,0:f File and args: -s
    Bad magic number in disk label
    Can't open disk label package
    Can't open boot device
    Using probe-scsi-all shows the Seagate HDD (LiD: 1 HA: 1 LUN: 0 ...), /scsi@6,1, and the Toshiba DVD-ROM (/scsi@6). If the DVD drive is done in how can I tell and what are the specification I need to look for in a replacement?
    null

    Hello "null",
    please check if the data cable to the DVD is properly attached.
    Some early versions of the Toshiba DVD drive won't boot from a DVD due to outdated firmware (1007).
    Review the version (either 1007 or 1009) in the probe-scsi-all output. If the drive currently uses the old firmware,
    the fix is to update the drives firmware (1009), which indeed requires an installed Solaris. The updated DVD firmware is contained in patch 111649-02.
    If the firmware is uptodate and you have access to CD media (Solaris 9 or 10) you can the try to boot from
    Solaris 9 Software 1 or Solaris 10 CD 1.
    If no CD media is available, just download the image file of CD 1 from the download center and burn a CD (slower burning speed recommended). Boot from this CD into single-user mode (boot cdrom -s). If this succeeds, download the other CD images and use them to install Solaris.
    As a replacement drive any SCSI DVD that can be jumpered to 2048 byte blocksize works.
    Michael

  • To BADI or not to BADI? That is the question.

    Hello friends,
    A question regarding BADIs. I've looked through the list of existing BADIs for transaction MB25 but could not find one that suited my purpose. So, does this mean I would have to create an insertion point myself? If so, do I have to edit and change SAP code or are there ways of getting around this touching SAP stuff?
    Your help is greatly appreciated
    GA

    Hi
    See the all related Enhancements and BADI's for MB25
    Do you really look into all these badi's for your requiremenet?
    check again?
                                                                                    Enhancement                                                                               
    MB_CF001                                Customer Function Exit in the Case of Updating a Mat. Doc.      
    MBCF0011                                Read from RESB and RKPF for print list in  MB26                 
    MBCF0010                                Customer exit: Create reservation BAPI_RESERVATION_CREATE1      
    MBCF0009                                Filling the storage location field                              
    MBCF0007                                Customer function exit: Updating a reservation                  
    MBCF0006                                Customer function for WBS element                               
    MBCF0005                                Material document item for goods receipt/issue slip             
    MBCF0002                                Customer function exit: Segment text in material doc. item                                                                               
    Business Add-in                                                                               
    MB_RESERVATION_BADI                     MB21/MB22: Check and Complete Dialog Data                       
    MB_QUAN_CHECK_BADI                      BAdI: Item Data at Time of Quantity Check                       
    MB_PHYSINV_INTERNAL                     Connection: Core Inventory and Retail AddOn                     
    MB_MIGO_ITEM_BADI                       BAdI in MIGO for Changing Item Data                             
    MB_MIGO_BADI                            BAdI in MIGO for External Detail Subscreens                     
    MB_DOC_BADI_INTERNAL                    BAdIs when Creating a Material Document (SAP Internal)          
    MB_DOCUMENT_UPDATE                      BADI when updating material document: MSEG and MKPF             
    MB_DOCUMENT_BADI                        BAdIs when Creating a Material Document                         
    MB_CIN_MM07MFB7_QTY                     Proposal of quantity from Excise invoice in GR                  
    MB_CIN_MM07MFB7                         BAdI for India Version exit in include MM07MFB7                 
    MB_CIN_LMBMBU04                         posting of gr                                                   
    MB_CHECK_LINE_BADI                      BAdI: Check Line Before Copying to the Blocking Tables          
    ARC_MM_MATBEL_WRITE                     Check Add-On-Specific Data for MM_MATBEL                        
    ARC_MM_MATBEL_CHECK                     Check Add-On-Specific Criteria for MM_MATBEL                                                                               
    Regards
    Anji

  • HDD Bad Sectors question...

    It happened like 3 months ago I had to shut down (via force shutdown i.e. holding the power button for over 3 seconds) my Mac after the system became un responsive during an empty trash operation. Then while running apple software update Windows (running Windows via bootcamp) it also locked up (it like completely froze no mouse movement at all). I would like to know if that created a bad sector in my HDD by doing this forced shutdown procedure. I reinstalled Mac OS X just to avoid any problems down the road after the forced shutdown.
    Again the question is: Does a forced shutdown can create a bad hard drive sector?
    Also, is there a way to recover bad HDD sectors? Disk Utility perhaps?
    Thank You for your time.

    Kappy wrote:
    Snow Leopard's installer is smart. If a system is already present the installer does not erase the drive but installs a fresh system, moves all your stuff into the new system then removes the old one. To erase the drive you must first run Disk Utility from the installer's Utilities menu and use it to erase the drive.
    The hard drive and the fans are both starting up at the same time. You may be hearing the fans and not the drive. If you're sure it's the drive making the noise but you don't hear more noise all the time, then it may be nothing. If you are hearing a sort of chirping noise coming from the drive that could be a sign of mechanical failure.
    When you open Disk Utility and select your drive's main entry in the sidebar you will get the SMART status reported in the DU status area. If it doesn't say "verified' then the drive is failing. You can also run hardware diagnostics to check:
    How to run hardware diagnostics for an Intel Mac
    Boot from your original OS X Installer Disc One that came with your computer. After the chime press and hold down the "D" key until the diagnostic screen appears. Run the extended tests for a minimum of two or three hours. If any error messages appear note them down as you will need to report them to the service tech when you take the computer in for repair.
    Some "common" error indicators:
    SNS - sensor error
    MEM - memory error
    HDD - hard disk drive error
    MOT - fan error
    Just to clear myself up. When I clicked the "erase" (in Disk Utility) button when I reinstalled OSX 3 months ago on my MacBook Pro, it said in the Disk Utility Progress bar un-mounting image, it took like two minutes. Then I went to install OSX and I had to reinstall iLife, and the rest of my third party apps, so that's why I think I did a clean reinstall.
    However, this question of bad sectors came to be because one close friend of mine told me that I damaged my HDD by doing the hard shutdown method (Power button 3-second hold), which of course concerned me. I think I might go ahead and do the zero out disk option when I do reinstall OSX again in the future. As far as disk utility goes, it says that my SMART status is "veryfied" I did also used OnyX SMART status veryfication and it turned out to be ok. I think that I am best off keep using my MacBook Pro until it requires a new OS reinstall or an HDD failure.

  • Capture  field in Badi "me_process_po_cust"

    Hello Experts ,
    I have a question regarding BADI "ME_PROCEE_PO_CUST"
    i want to capture internal order in  " PROCESS_ITEM  " method .
    This internal order entered in acount assignment tab in me21n tcode (at item level when account key is 'k').
    This internal order is there in MEPOACCOUNTING  structure (feild name is aufnr).
    I tried but didn't get, pls help me in this.

    Hi ram,
    You can get MEPOACCOUNTING in PROCESS_ITEMS method itself,
    just follow the code..
    DATA LS_ACCOUNTING TYPE MEPOACCOUNTING.
    DATA LT_ACCOUNTINGS TYPE PURCHASE_ORDER_ACCOUNTINGS.
    DATA LINE_ACCOUNTING TYPE PURCHASE_ORDER_ACCOUNTING.
    DATA LS_ACC TYPE REF TO IF_PURCHASE_ORDER_ITEM_MM .
    DATA ORDER_NUMBER TYPE AUFNR.
    LT_ACCOUNTINGS = IM_ITEM->GET_ACCOUNTINGS( ).
    LOOP AT LT_ACCOUNTINGS INTO LINE_ACCOUNTING.
    LS_ACCOUNTING = LINE_ACCOUNTING-ACCOUNTING->GET_DATA( ).
    *Now you have MEPOACCOUNTING structure in LS_ACCOUNTING
    *then do your validations
    ORDER_NUMBER = LS_ACCOUNTING-AUFNR.
    ENDLOOP.
    Hope iit will solve your problem,
    Thanks & Regards
    SUJI

  • Help with badi

    Is it a good idea to use function modules in badi custom code
    i am trying to modify one of the infotype records (0004) using badi but the field is not getting updated , im using func mod HR_INFOTYPE_OPERATION.
    Can u suggest any  alternatives?? Help will be much appreciated...

    Hello Vinay
    Unfortunately you did not reveal the most important detail for answering your question:
    Which BAdI are you using?
    Assuming that you perhaps use BAdI <b>HRPAD00INFTY</b> (<i>Update / Infotype maintenance</i>) then you can see from the signature of the interface methods (IF_EX_HRPAD00INFTY; on ECC 5.0) that none of them is intended for changing current data of the transaction. On the contrary, all method parameters are IMPORTING parameters and are called BY VALUE. Thus, no changes of the parameters within the interface methods will be transmitted to the caller.
    Method IF_EX_HRPAD00INFTY~AFTER_INPUT is the only method having an exception which implies that this method can be used to perform checks (compare PBO vs. PAI data) and reject changes by raising the exception.
    Final remark:
    It is complete nonsense to commit work <b>within </b>a BAdI because the BAdI is called within a transaction which should be properly committed at the end of the transaction.
    Regards
      Uwe

Maybe you are looking for