Condition on BADI's parameters

Hi,
I was having a requirement of checking some conditions on the parameters, that were not in Import Export Changing/Tables of a BADI in which i had a method for my additional code.
How to place a condition in such scenarios if the required parameters doesn't exist.
Thanks in advance.

Assign ( ' (Program name)variable' ) to <fs>. --- program name is main program of your transaction & variable is the data you want to access.
In <FS> you will get the variable data.
This will work only if the variables are "Global" & the program is loaded in the internal memory when the BAdI is executed!
BR,
Suhas
PS: I agree with what Chen has mentioned. If you need better & more detailed responses, you need to provide more info.

Similar Messages

  • Condition on selection screen parameters

    Hi friends,
    I have an ABAP query. Here , I have a date field (ISEG_ZLDAT - Cycle count date ) in the selection screen which is a parameter (not a select option). I have to write a condition for the report to pull all the materials which have a cycle count date less than the value entered on the selection screen.
    How do I give this condition in the code ? Is there a way to do it without using select options ?
    Please help.
    Thanks,
    Dikshitha

    Hi Dikshitha,
        as also said by others try it this way:
    Parameters:
      p_ZLDAT type ISEG-ZLDAT.
    Data:
      t_ISEG like standard table of ISEG.
    select * from ISEG into table t_ISEG where ZLDAT lt p_ZLDAT.
    if sy-subrc ne 0.
    endif.
    With luck,
    Pritam.

  • Adding custom field in pricing condition structure (BADI CRM_COND_COM_BADI)

    Hi,
    I need to add a custom field (ZCITY) to the structure : CRMT_ACS_H_COM and I need to populate this field in the BADI: CRM_COND_COM_BADI in the method : HEADER_COMMUNICATION_STRUCTURE.
    However, my concerns are:
    1. How to add the new field to this pricing structure? Is there any specific procedure to do that?
    2. And once the field is added and populated with the value in BADI, where the pricing calculation takes place based on this custom field?  Do we need to to implement any other BADI's or any pricing routines? I am little confused here.
    Could you please help me on this?
    Bottom line is : A custom field calles ZCITY needs to be added to the pricing structure and freight cost determination should take place based on this new field ZCITY.
    Thanks,
    Sandeep

    Hi Sandeep,
    if the field is used in the condition download from ECC please also check SAP note 514952.
    1. The field is added via the field catalogue maintenance at IMG: Customer Relationship Management -> Basic Functions -> Pricing -> Define Settings for Pricing -> Maintain Field Catalog. As you save or generate the field catalogue the structure will be updated with your field.
    2. Whether you need to implement a JAVA routine for the pricing of this particular condition is defined in the corresponding pricing procedure.
    Best Regards,
    Michael

  • Change item condition in BADI order save with crm_order_maintain

    Hi all,
       i could update conditions in report but not successful in BADI order save, below is my code in BADI...
       what is the problem maybe ?  Ths
    * Get order info.
      CALL FUNCTION 'CRM_ORDER_READ'
        EXPORTING
          it_header_guid       = lt_header_guid
          it_requested_objects = lt_requested_objects
        IMPORTING
          et_ORDERADM_I        = lt_ORDERADM_I
          ET_TEXT              = lt_text
          ET_STATUS            = lt_status
          et_pridoc            = et_pridoc
        EXCEPTIONS
          DOCUMENT_NOT_FOUND   = 1
          ERROR_OCCURRED       = 2
          DOCUMENT_LOCKED      = 3
          NO_CHANGE_AUTHORITY  = 4
          NO_DISPLAY_AUTHORITY = 5
          NO_CHANGE_ALLOWED    = 6
          OTHERS               = 7.
    read table lt_ORDERADM_I into ls_ORDERADM_I with key ITM_TYPE = 'YTS1'.
      if sy-subrc = 0.
        read table et_pridoc INTO es_pridoc index 1.
        LOOP AT es_pridoc-pric_cond into es_pric_cond where kposn = ls_ORDERADM_I-guid.
          clear is_cond_chg.
          move-corresponding es_pric_cond to is_cond_chg.
          clear is_cond_chg-kbetr.   "  clear the amount
          INSERT is_cond_chg INTO TABLE is_pridoc-cond_change.
        endloop.
        CLEAR: lt_input_field_names.
        ls_input_field_names-fieldname = 'COND_CHANGE'.
        INSERT ls_input_field_names INTO TABLE lt_input_field_names.
        CLEAR: cs_input_fields, ct_input_fields.
        cs_input_fields-ref_guid = ls_ORDERADM_I-guid.
        cs_input_fields-ref_kind = 'B'.
        cs_input_fields-objectname = 'PRIDOC'.
        cs_input_fields-field_names = lt_input_field_names.
        INSERT cs_input_fields INTO table ct_input_fields.
        is_pridoc-ref_guid = ls_ORDERADM_I-guid.
        is_pridoc-ref_kind = 'B'.
        INSERT is_pridoc INTO it_pridoc INDEX 1.
      endif.
      CALL FUNCTION 'CRM_ORDER_MAINTAIN'
        EXPORTING
          it_pridoc         = it_pridoc
        CHANGING
          ct_input_fields   = ct_input_fields
        EXCEPTIONS
          error_occurred    = 1
          document_locked   = 2
          no_change_allowed = 3
          no_authority      = 4
          OTHERS            = 5.

    Try this Function Modul after Order_Maintain
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait   =
          IMPORTING
            return = .
    Edited by: Richard Brünning on Nov 12, 2009 1:55 PM

  • Replicating SRM PO to ECC PO with all condition types

    Hi Friends,
    I want to Repliacte SRM to ECC PO with all condition types, can any one give me idea on this
    thnx
    Kumar Srini

    I think you meant "replicate SRM PO's condition set to ECC PO". If this is the case, there are a couple of options.
    Option 1. In ECC, implement BADI BBP_PO_INBOUND_BADI, method: BBP_MAP_BEFORE_BAPI
    In the method implementation, make a remote function call to SRM BBP_PD_PO_GETDETAIL. Get the condition information (E_PRIDOC). Then map it to the BADI interface parameter BBP_POCONDHEADER / BBP_POCOND
    Option 2. In SRM, copy your PO transfer driver FM, e.g. B46B_DPO_TRANSFER. In the copied FM, e.g. ZB46B_DPO_TRANSFER, get the PO condition information, insert two additional parameters, POCONDHEADER / POCOND when calling BBP_PO_INBOUND, and map the SRM PO condition to these two parameters accordingly. Then implement BADI BBP_DRIVER_DETERMINE to switch to your own FM driver.

  • Message log is not getting deleted in WEBUI (BADI ORDER_SAVE)

    Hi,
    I am displaying an error message based on certain conditions in BADI: ORDER_SAVE (CHECK_BEFORE_SAVE). On getting error, I am correcting that error.
    Using CRM_MESSAGE_DELETE, I am deleting error message before displaying new error message. However, my error log is not going away. It is still displaying in the log in WEBUI.
    Could you please help me out, how can I delete error message, and error log from WEBUI.
    Thanks,
    Sandeep

    I  have the same question as you .
       I  have use folleing code to display message in web ui:
          if (conditions).
          CV_OWN_MESSAGE = 'X'.
          MESSAGE '商机描述已经存在,请修改后再保存!' type 'E' RAISING DO_NOT_SAVE .
        endif.
    but when i have edit the description , the Message log is not getting deleted in WEBUI .
    who can tell me , thanks for all your help !

  • Help Needed in badi ME_REQ_POSTED

    Hi all
    Actually i wanted to modify the release code IM_EBAN-FRGZU based on some conditions using BADI(ME_REQ_POSTED)
    But its not allowing me to do it..its saying IM_EBAN can't be modified...
    I tried ME590001 - EXIT_SAPLME59_001 aslo but its not stopping either in ME54 or ME55.
    Could you please give me the alternate solution to modify the release status while in the transaction?
    Thanks
    Govi

    Hi Govi,
    try this one:
    EXIT_SAPLMEPI_003                Customer Exit for Changing Purchase Requisition Data
    Regards,
    Clemens

  • MIME header missing "filename=" results in BAD messages

    I've been trying to track down several issues involving what appear to
    be MIME handling issues. We are running GroupWise v7.01 (we have not
    installed the "interim release" yet), and all components on the server
    are at that release level (MTA, POA, GWIA, WebAccess).
    One of the issues I am currently working on involves problems receiving
    attachments from an outside sender. Their attachments are readable if
    sent to an outside test account (i.e. - we've tested it with Yahoo
    web-based mail, and a RoadRunner POP3 account using Outlook as the client).
    The problem is that these e-mails either get dumped by the GWIA to the
    GWPROB directory, or the e-mails go through, but the attachments are
    corrupted (they do show up as attachments to the e-mail, but are
    unreadable).
    I haven't looked at why some e-mails go through and some don't, but I
    did find out why the attachments are unreadable on the delivered
    e-mails, and why the rest are just undeliverable. For whatever reason,
    the sender's mail server (or AV gateway or whatever else had a chance to
    touch the e-mail) is either not inserting, or is stripping out the
    "filename=" from the MIME header just before the encoded attachment.
    Adding this back into the message (by editing the original e-mail
    w/header, and dropping the modified message into the GWIA "RECEIVE"
    directory) fixes the attachment AND makes the e-mail deliverable.
    Below I have an example of a bad e-mail which was originally sent to our
    GWPROB directory, but was successfully delivered with a readable
    attachment through a separate POP3 account (RoadRunner). Following this
    "bad" e-mail example is the "fixed" version of that same e-mail, which
    was delivered successfully to our user, with the attachment also being
    readable.
    *************** This is the original "BAD" e-mail ***************
    MAIL From:<[email protected]> SIZE=73686
    RCPT To:<[email protected]>
    Received: from test.rr.com ([65.xx.xx.xx])
    by smtp.ourhost.com with ESMTP; Wed, 21 Feb 2007 15:28:27 -0500
    Received: from local.com (rrcs-24-xx-xx-xx.central.biz.rr.com [24.xx.xx.xx])
    by test.rr.com (8.13.6/8.13.6) with ESMTP id l1LKSFTm009106
    for <[email protected]>; Wed, 21 Feb 2007 15:28:24 -0500 (EST)
    Message-Id: <[email protected]>
    From: [email protected]
    To: [email protected]
    Date: Wed, 21 Feb 2007 15:25:54 -0500
    MIME-Version: 1.0
    X-Mailer: Telexis Gateway
    Content-Type: multipart/mixed;
    boundary="Mark=Num1_Lev1_2007221202554265_Tlx"
    X-Virus-Scanned: Symantec AntiVirus Scan Engine
    --Mark=Num1_Lev1_2007221202554265_Tlx
    Content-Type: text/plain
    Content-Transfer-Encoding: Quoted-Printable
    This is a test
    -Test Sender
    --Mark=Num1_Lev1_2007221202554265_Tlx
    Content-Type: application/vnd.ms-excel;
    name="1st Q 2007 Income to Budget.xls"
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment;
    "1st Q 2007 Income to Budget.xls"
    0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAABAAAAZgAAAAAAAAAA
    EAAA/v///wAAAAD+////AAAAAGUAAAD/////////////////////////////////////////////
    --Mark=Num1_Lev1_2007221202554265_Tlx--
    ************** END OF BAD E-MAIL **************
    *************** This is the "fixed" e-mail ***************
    MAIL From:<[email protected]> SIZE=73686
    RCPT To:<[email protected]>
    Received: from test.rr.com ([65.xx.xx.xx])
    by smtp.ourhost.com with ESMTP; Wed, 21 Feb 2007 15:28:27 -0500
    Received: from local.com (rrcs-24-xx-xx-xx.central.biz.rr.com [24.xx.xx.xx])
    by test.rr.com (8.13.6/8.13.6) with ESMTP id l1LKSFTm009106
    for <[email protected]>; Wed, 21 Feb 2007 15:28:24 -0500 (EST)
    Message-Id: <[email protected]>
    From: [email protected]
    To: [email protected]
    Date: Wed, 21 Feb 2007 15:25:54 -0500
    MIME-Version: 1.0
    X-Mailer: Telexis Gateway
    Content-Type: multipart/mixed;
    boundary="Mark=Num1_Lev1_2007221202554265_Tlx"
    X-Virus-Scanned: Symantec AntiVirus Scan Engine
    --Mark=Num1_Lev1_2007221202554265_Tlx
    Content-Type: text/plain
    Content-Transfer-Encoding: Quoted-Printable
    This is a test
    -Test Sender
    --Mark=Num1_Lev1_2007221202554265_Tlx
    Content-Type: application/vnd.ms-excel;
    name="1st Q 2007 Income to Budget.xls"
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment;
    filename="1st Q 2007 Income to Budget.xls"
    0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAABAAAAZgAAAAAAAAAA
    EAAA/v///wAAAAD+////AAAAAGUAAAD/////////////////////////////////////////////
    --Mark=Num1_Lev1_2007221202554265_Tlx--
    ************** END OF "FIXED" E-MAIL **************
    The only change I made, which both allowed the above e-mail to be
    delivered and made the attachment readable, was the addition of the
    "filename=" just before the file name on the line after the
    "Content-Disposition: attachment;".
    I did the same test with an e-mail that had the same "filename="
    missing, but somehow was successfully delivered to our user (again, the
    attachment was unreadable). Adding the "filename=" into the resent
    message did make the attachment readable.
    I haven't looked to see if the sender's system is actually non-compliant
    for excluding the "filename=" (I will be doing that later this evening),
    or whether this is a GWIA problem for not being able to handle this. I
    just wanted to throw this out there to see if anyone else has seen this.
    Does the "interim release" update by chance fix this?
    Thanks,
    Greg Niese

    Does this email come in directly to GWIA (or do you have a relay host in
    between)? I must say I've never experienced this problem on any of the GW
    systems I administer. Could you tell us what domain this is coming from?
    Ted Kumsher
    >>> On 2/23/2007 at 8:21 AM, in message
    <[email protected]>, Greg
    Niese<[email protected]> wrote:
    > I agree that this shouldn't be accepted as a valid "filename parameter"
    > line. There are two ways to "not accept" this invalid parameter: "stop
    > processing" the e-mail because of the problem (discard the e-mail), or
    > discard the bad parameter and continue processing the rest of the e-mail
    > (this could only work when the parameter is optional, as in this case).
    > The GWIA seems to take the route of "stop processing", and then moving
    >
    > the resultant "bad" e-mail to the GWPROB directory.
    >
    > I say "seems" because in many cases where this occurs the e-mail doesn't
    > get sent to the GWPROB directory, but instead still gets through the
    > GWIA to the user. The attachments are corrupted, but still show up
    > correctly in the attachment window, so everything seems OK with the
    > e-mail & attachment - until you try to open the attachment.
    >
    > If there is a semi-colon after the "Content-disposition" type, the GWIA
    > should see a valid disposition parameter following. But if it sees an
    > invalid parameter, as in this case, what is the GWIA doing? It must
    > either be discarding the invalid parameter, or "uses" it by either
    > incorrectly parsing it as part of the header, or lumping it in as part
    > of the attachment. If it "uses" in any way the invalid line of data -
    > that sounds like the definition of "accepting" it, isn't it?
    >
    > To test whether the GWIA is actually using, and therefore "accepting",
    > this bad parameter, I simply removed the malformed parameter (having the
    >
    > line in or out shouldn't matter if the GWIA's not using it), and I tried
    >
    > this both with the semi-colon removed from the end of the
    > "content-disposition" type, and with that semi-colon left in place. In
    > both cases the GWIA properly processed the e-mail and the attachment was
    > readable! What does that mean? If the GWIA was truely NOT
    > using/accepting that invalid header parameter (i.e. - the GWIA discards
    > it), then the e-mail and attachment should go through OK. Since this
    > isn't what happens when the bad line is left in place (the attachments
    > DO NOT come through OK, but the e-mail often does get to the user's
    > mailbox), then the GWIA must be accepting that bad parameter as either a
    >
    > part of the header, or a part of the attachment.
    >
    > I suspect that in those cases that these e-mails are sent to the problem
    > directory, instead of being delivered with a corrupt attachment, the
    > GWIA isn't really recognizing that the optional disposition parameter is
    >
    > "bad". The reason for the e-mail going to the problem directory is
    > probably due to an error while trying to decode the attachment if the
    > bad parameter is treated as part of the attachment, or if part of the
    > attachment is being lumped in with the malformed parameter as it is
    > parsed.
    >
    > I agree that how the GWIA should go about "not accepting" bad header
    > parameters may be debatable (assuming that the GWIA were actually
    > halting processing of the e-mail when this type of problem is found, and
    > then sending the e-mail to the problem directory every time). But in
    > cases such as this, since the parameter itself is optional, it would
    > seem that the better route would be for the GWIA to discard the
    > parameter and continue processing, instead of "discarding" the whole
    > e-mail (to the problem directory). "Discarding the bad parameter" seems
    > to be what is being done by at least a few other competing SMTP agents,
    > since the other mail systems I tested with did get the e-mail through
    > without corrupting the attachment.
    >
    > I may suggest that the sender's company fix whatever is going on at
    > their server, but it probably won't do any good (I've already been told
    > that they don't experience this problem with anyone else). In the
    > meantime, my user (yes...he is the CEO), will have to continue to have
    > some important e-mails sent to one of his personal accounts, because
    > those e-mail systems receive these e-mails fine, but our GroupWise
    > system can't.
    >
    > :-(
    >
    > -Greg
    >
    >
    >
    > Michael Bell wrote:
    >> No it shouldn't, IMO.
    >>
    >> It's a matter of interpretation, of course. But GWIA is 100% right in
    > not
    >> accepting this as vaid (that part is beyond any debate - it's in the
    > RFC).
    >>
    >> The only part that can be debated is "should GWIA then pass the buck"?.
    > In
    >> olden days, many would have said yes.
    >>
    >> But In general, no. Moving away from Postel's law, which was formulated
    > in a
    >> pre-malware age, is pretty much needed. Tight specifications and
    > pickiness
    >> is good. Collateral damage is unfortunate, and of course one needs to be
    >
    >> flexible if this is a widespread issue (which frankly, it is not in this
    >
    >> case), but otherwise it is up to to sender to fix their issue.
    >>
    >> 90% of viruses and malware in the last 6 years (and I'm well aware of
    > them,
    >> working in the email security field) are from MALFORMED e-mail, that the
    >> gateway and client misinterpreted. Many of these were MS issues, but
    > that's
    >> another point. Point is you have to be STRICT.
    >>
    >> In this case this violates the generic MIME RFCs which state that if you
    > do
    >> have parameters, they all gotta be separated with semicolons (PASS), and
    >
    >> have to be name=value pairs (FAIL).
    >>
    >>
    >> "Greg Niese" <[email protected]> wrote in message
    >> news:[email protected]...
    >>> Well, according to RFC 2183, the "filename=" string has to be present if
    >
    >>> the Filename parameter is going to be used. So the sending host seems
    > to
    >>> be "broken" in that regard.
    >>>
    >>> My next question then is: Should the GWIA ignore the "stray" file name
    > in
    >>> these e-mail headers, instead of allowing it to be lumped in with the
    >>> attachment (I'm assuming that's why the attachment is trashed)? It
    >>> appears that other systems are able to do this.
    >>>
    >>> -Greg
    >>>
    >>> Greg Niese wrote:
    >>>> I haven't looked to see if the sender's system is actually
    non-compliant
    >>>> for excluding the "filename=" (I will be doing that later this
    evening),
    >
    >>>> or whether this is a GWIA problem for not being able to handle this. I
    >>>> just wanted to throw this out there to see if anyone else has seen
    this.
    >>>>
    >>>> Does the "interim release" update by chance fix this?
    >>>>
    >>>> Thanks,
    >>>>
    >>>> Greg Niese
    >>>>
    >>
    >>

  • Parameterized Message Mapping in PI 7.1

    Hi,
    My requirement is:
    If the import parameter of type "string" equals constant "Test",
    pass the constant value "Mail1" to the target field,
    else pass the constant value "Mail2" to the target field.
    Also I have mentioned the import parameter value in Interface Determination as "Test".
    So, "Mail1" should be the output, but in a strange way i'm always getting "Mail2" as the output.
    In message mapping test tab, i'm getting the expected output as "Mail1" but when i test it end-to-end, i'm getting "Mail2" as the output.
    Does it mean that we cannot use the import parameters for checking any conditon? Or am I doing any silly mistake?
    Any help will be appreciated.
    Edited by: Geetha Jeyaprakash on Dec 24, 2008 2:25 PM

    I'm giving the condition in Message mapping editor using standard functions.
    Actual requirement is to pass a particular mail id to the target field in Development environment and some other mail id in Production environment. As we don't have any particular source field to check the condition, we tried using parameterized mapping for the same.

  • PO condition type change need to forbbid

    Hi,
    We want to forbbid certain user not be able to change ANY condition item in PO item level.
    I've tested the following:
    1.field selection in IMG, but there's no field selection option for condition filed
    2.Authorization for user not to display condition in IMG
       and set user with parameter EFB
    3.Remove "display price" in profile which the user assign to
    But still can't get it work.
    Please have someone let me know what I should do to make it happen.
    regards,
    Steven

    Goto transaction M/06 and copy existing cond of freight.
    Then change descripiton for the condition and select below parameteres:
    Cond. class:  B- Prices
    Calculat.type: B - Fixed price
    Cond.category: B Delivery cos
    and save it.
    Then goto transaction M/08 and select your pricing procedures and double click on control and then add this condition below existing freight cond but take care that you kept column FRO & TO as blank. Also take care for step no. and counter no.

  • Check in BAdi if delivery processed with IDOC or with transaction

    Hello to everyone!
    I have encountered an issue and hopefully you could help me in solving this.
    I have developed an enhancement (BAdi) in delivery processing.
    Every time delivery is being changed - method is triggered and line item is being validated against some conditions
    But now I would like to prevend BAdi from being launched when delivery comes in IDOC.
    For this purpose I just put a simple condition in BAdi method:
    IF sy-batch NE 'X'.
         //here perform validation.
    ENDIF.
    Unfortunately validation is still performed. Looks like when IDOC is being sent to ECC from PI, sy-batch is empty.
    I would also like to prevent validation from being launched when IDOC re-processed manually (BD87 or sth.)
    But then sy-batch is also empty.
    Could you please advise some solution for this?
    How to check in BAdi if delivery is being processed with IDOC or with transaction (VL32N, VL31N, VL32, ...)
    I would appreciate every comment on this.
    Kind Regards,
    P.
    Edited by: Piotr Wojciechowski on Jul 28, 2011 8:59 PM

    Hi Max,
    Thanks a lot for your reply!
    Yes, indeed, IDOC is processed by FModule IDOC_INPUT_DELVRY.
    You mean I should for example
    find some place in this FModule (exit/enhancement point/...)  where I could put-Z-code
    and raise a delivery number (or just some flag) to memory (EXPORT TO MEMORY..)
    and later on catch it from memory in my BAdi method (IMPORT FROM MEMORY ...)
    to check if delivery processed by IDOC/not IDOC ?
    Kind Regards,
    Piotr.
    PS. Maybe you also have some idea how to debug such communication triggered from PI to ECC?
    I have posted this in separate [thread|PI-ECC connection (IDOC scenario), how to debug? (External BP);.

  • Decode in a join condition

    Hi all,
    I stumbled across a very inefficient query in my product. I think the reason is having "decode" in two join conditions. Before I post the query, execution plan etc, and get the tuned sql statement on a platter, I want to fight it myself. :-)
    I want to know, is it true that having a decode in the where clause (as a join condition) is bad for performance? Can you give me some tips on avoiding them (splitting the query into many is not possible here, though I think it is a good solution).
    Thanks a lot,
    Aditya
    P.S. I'm trying to somehow use subqueries to eliminate the decode in the where clause.

    Yes. If decode is only join-condition, then Oracle
    produces cartesian join and only then filters it
    based on decode.+/- 1 :-Q
      select *
        from emp, dept
       where decode(emp.deptno, dept.deptno, 1, 0) = 1
      Statement Id=2   Type=TABLE ACCESS
      Cost=3  TimeStamp=07-05-07::15::49:44
           (1)  SELECT STATEMENT  ALL_ROWS
         Est. Rows: 1  Cost: 9
    (4) NESTED LOOPS
         Est. Rows: 1  Cost: 9
               (2)  TABLE TABLE ACCESS FULL SCOTT.DEPT  [Analyzed]
               (2)   Blocks: 5 Est. Rows: 4 of 4  Cost: 3
                    Tablespace: USERS
               (3)  TABLE TABLE ACCESS FULL SCOTT.EMP  [Analyzed]
               (3)   Blocks: 5 Est. Rows: 1 of 14  Cost: 2
                    Tablespace: USERS
      select *
        from emp, dept
      -- where decode(emp.deptno, dept.deptno, 1, 0) = 1
    [pre] Statement Id=2 Type=TABLE ACCESS
    Cost=3 TimeStamp=07-05-07::15::50:49
    (1) SELECT STATEMENT ALL_ROWS
    Est. Rows: 56 Cost: 9
    (5) MERGE JOIN CARTESIAN
    Est. Rows: 56 Cost: 9
    (2) TABLE TABLE ACCESS FULL SCOTT.DEPT [Analyzed]
    (2) Blocks: 5 Est. Rows: 4 of 4 Cost: 3
    Tablespace: USERS
    (4) BUFFER SORT
    Est. Rows: 14 Cost: 6
    (3) TABLE TABLE ACCESS FULL SCOTT.EMP [Analyzed]
    (3) Blocks: 5 Est. Rows: 14 of 14 Cost: 2
    Tablespace: USERS

  • Delete Condition Type Depending on Item category Va01

    HI all,
    I wan to delete condition record depending on item category. I have a good link from sap.This link explains how to hide the condition but i want the  delete the condition. was badly struck here.
    http://wiki.sdn.sap.com/wiki/display/ABAP/ManipulatingPricingconditionsdisplayinSalesdocumentwithUserExit-LV69AFZZ
    Regards,
    madhu
    Edited by: madhurao123 on Mar 24, 2011 2:19 PM

    Hi,
    We had a similar requirement once, and towards the end we realised that deleteing rather than hiding it was a bad idea.
    Think beyond the scope, that if a future sales order created with reference needs this condition record; manual entry will again be dependent on your pricing procedure and is a mess.
    But if you do want to delete it; go into debugging and decide which user exit you would want to use and delete that line of the condition record from XKOMV table for that Sales Order

  • Add custom fields to the business partner (UKM_BP) thru BADI

    Hi
    I want to know how to add Additional business partner attributes(custom fields) to Business partner (Transaction : UKM_BP)
    I also added the custom fields to structure UKM_S_BP_CUSTOMER_EXTENSION in the method FILL_FIELDS of BADI UKM_BP_ADD_FIELDS, But nothign is populating on the screen of UKM_BP after activating the below BADI's with SAP provided sample code with above structure.
    there are 2 BADI's for this requirements but it doesn't any thing about the screens
    UKM_BP_ADD_FIELDS
    UKM_EV_FORMULA
    Please let me know the detailed steps other than activating these BADI's with sample code by SAP.
    Thanks
    Govi

    Thanks for your reply
    BADI - UKM_BP_ADD_FIELDS
    Documentation of this BADI shows as follows...
    With this BAdI, you can define additional business partner attributes that you define in a business partner master record and want to use as fields in the formula editor.
    To use the new fields, implement the BAdI: Formula Parameters and Functions (UKM_EV_FORMULA)
    Methods of this BAdI:
    FILL_FIELDS
    To provide additional fields for the formula editor
    FILL_ADD_INFOS and SAVE_ADD_INFOS
    To define additional information for the following data in table form:
    Collateral
    Negative event
    Check exceptions
    Credit insurance
    I enhanced the structure(UKM_S_BP_CUSTOMER_EXTENSION) with new custom fields from the badi UKM_BP_ADD_FIELDS but there is documentation for creating the new screen to place those new fileds i created on transaction UKM_BP.
    I have looked at BDT Business data toolset
    http://help.sap.com/saphelp_crm50/helpdata/en/2f/696d360856e808e10000009b38f839/frameset.htm
    but i didn't get any idea ...
    Can you please elaborate and let me know how to do this for my requirement?
    Thanks
    Govi

  • How to access Shopping Cart Obj-ID with BADI /SAPSRM/BD_WF_RESP_RESOLVER

    Hi, i am transforming old application based workflow from SRM 5.0 to process orientated on SRM 7.0. With SRM 5.0 the system uses BADI BBP_WFL_APPROV_BADI to determine approvers for workitems. This BADI had parameters like OBJECT_ID and OBJECT_TYPE and also GUID. With the new BADI /SAPSRM/BD_WF_RESP_RESOLVER i can't see how to get access to these data. Can anyone help me solving this question?
    Thanks in advance,
    Matt

    Hi,
       There are two methods trigger in PCW.. first one is GET_AREA_TO_ITEM_MAP followed by GET_APPROVERS_BY_AREA_GUID. the import parameter of method GET_AREA_TO_ITEM_MAP will have SC guid to get the current SC details.
    Saravanan

Maybe you are looking for

  • How to configure new ATA/EIDE internal drive

    Hi, I run a 1Ghz Dual Processor MDD PowerMac G4 w/ OS X 10.4.3, and originally, a single 80 Gb hard drive. For years I have been selectively burning disks, and utilizing an external 80 Gb firewire drive to keep my internal from overflowing. Finally I

  • How do I store images in a jar file to be displayed on a jsp?

    Afternoon all, I have created a java component which accepts some parameters and returns a string. The returned string contains html tags to display a table in a webpage when rendered through a browser. I want to be able to add this component to any

  • Broadcasting workbooks to a printer or PDF format files

    Hello, I know these are two features not available in the system, but, Does anybody create such a functionality as a "customer enhancement"? May i have some guideline how to develop them? Thanks in advance, Gabriel.

  • Open PDF in Fullscreen mode automatically via command line.

    Good afternoon, I need to open a PDF file in Reader 11 via Command Prompt. We are using a PDF in kiosk mode and I need to know the /a argument to run in Full Screen.  Thanks.

  • Macbook pro won't boot - how do I retrieve emails?

    Hey guys I've got a common problem that my Macbook pro won't boot. Sometimes I get stuck on the grey screen with spinning wheel, sometimes on the blue screen with spinning wheel I've scoured the internet on another machine and tried every trick I can