PO check BADI problem

Hi,
I have this problem,
When I use me21n to create a new PO everything looks fine until I've ended filling header. When I press save button I can save a document that has no items (that is bad) because before I get a popup with warnigns, errors, etc. I get a window with save/edit/abort where save is active.
Any help?

Hi
Try this ->
1) If you have activated versioning on PO, you can get modifications with BBP_PD_PO_GET_DIFF, using the different version GUIDs.
Otherwise you can read usual change documents (see FM BBPCHANGE_DOC_GENERAL called when you display SC or PO changes)._
You can also look for implementing the BADI "BBPVERSION_CONTROL"_
2) Use the FM "BBPPROCDOC_GETDETAIL" which gives the value of the details entered in PO / SC which are already there in Database._
3) You can use the function module BBPPD_PO_GET_DIFF_ , but any way you should have different guids for the original purchase order and changed purchase order.
Some related pointers to go through ->
BADI: BBP_WFL_EMPL_WI_BADI - Read change document
Re: Get PO modifications?
how to get PO modifications when no version history exists
Hope this will help. Do let me know.
Regards
- Atul

Similar Messages

  • In DOC CHECK BADI: Check if PO has a SC when coming from a BID

    Hi Experts,
    Please consider this situation and recommend best possible approach.
    From Sourcing, I raise a BID and then create a PO from the BID.
    While PO creation, I need to check if this PO had SC and if so include the SC requestor in the approval if the price has increased while Bidding when compared the created SC.
    Here I am facing a challenge - When executing the DOC CHECK BADI, the FM: BBP_PROCDOC_GETDETAIL does not result any HEADER_REL itab values that shows any history details of the PO document. Whereas by the time the logic moves to the Workflow BADI, this same FM returns values (SC and other details).
    My Query: While creating from a BID, How can I check if this PO is generating out of a SC in the DOC CHECK BADI.
    Thanks in advance.
    Vj

    Hello Asha,
    You can check this BADI "BBP_ITEM_CHECK_BADI" and this badi is called when
    u2022     a new item has been created,
    u2022     an item has been changed or the document is to be checked
    Regards
    Sameer

  • BBP_PD_MSG_ADD  issue in CHECK badi

    Hi all,,
    SRM 5.0 ECS
    I want to display an error message in the cofnirmation screen bit in the form op a POP UP !
    I tried using the FM BBP_PD_MSG_ADD in the CHECK badi but it doesnt display the message in the pop up format!
    The strange thing is that the pop up msg is being displayed in the search list screen before I click on CREATE CONFIRMATION button!
    I want the pop up msg to be displayed after the user clicks on the next screen after user clicks on create confirmation button...
    Please help as to where I am going wrong....
    Here is my code:
    IF flt_val = 'BUS2203'.
        IF sy-ucomm = 'BUTTON_CHECK'.
    REFRESH et_messages.
          CALL FUNCTION 'BBP_PD_CONF_GETDETAIL'
            EXPORTING
              i_guid          = iv_doc_guid
              i_with_itemdata = 'X'
            IMPORTING
              e_header        = lt_conf_header
            TABLES
              e_item          = lt_conf_item.
          LOOP AT lt_conf_item INTO ls_conf_item.
    *get the PO # and doc type
            lv_po = lt_conf_header-be_refobj+0(10).
            CALL FUNCTION 'BBP_PD_PO_GETDETAIL'
              EXPORTING
                i_object_id = lv_po
              IMPORTING
                e_header    = lt_po_header.
            IF lt_po_header-process_type = 'ECV' .
    CALL FUNCTION 'BBP_PD_MSG_ADD'
                  EXPORTING
                    i_msgty       = 'W'
                    i_msgid       = 'BBP_SC'
                    i_msgno       = '014'
                    i_msgv1       = text-001
    *            i_doc_guid    = iv_doc_guid
                    i_field_name  = 'EXPRESS'
                  EXCEPTIONS
                    log_not_found = 1
                    OTHERS        = 2.
    EXIT.
    ENDIF.
    ENDLOOP.
        ENDIF.

    Thanks Jay.
    If I change the SY_UCOMM to that of "CREATE CONFIRMATION" button,custom message does get displayed in POP UP form,but then the next screen (which should be displayed after lcicking on CREATE CONFIRMATION button) is not dsplayed and controlstays on the same screen which is worse!
    Please let me know if something wrongly written in  my code or if SRM CONFIRMATION screen is designed in such a way that custom messages cannot be diplaye din form of pop up!

  • I can't open my gallery after i migrate the iphoto! How can i fix this bad problem?

    HI,
    I can't open my gallery after i migrate the iphoto! How can i fix this bad problem? Flz help me!!

    Try repair permissions with Disk Utility
    Regards
    TD

  • EHSM: Use Auth Check BAdI to hide Incident

    Hi all,
    I have enhanced the standard Auth Check BAdI BADI_EHHSS_INC_EXT_AUTH_CHECK for EHSM. Works like a charm.  But I just got another requirement and thought maybe someone else has done this before.
    Right now, I have it set up so people with out the correct access can only view incidents.  Is there a way to use the BAdI to completely hide an incident when a user clicks on it?
    Hope this makes sense.
    Cheers,
    Kevin

    Hey all,
    Our requirements ended up changing a bit but ended up putting authorization checks into class methods that control visibility for the sections of EHSM that we wanted to hide.  So, we got the result we were looking for.
    Cheers,
    Kevin

  • Use Performance Tool to check memory problem

    Hi, I am new to mac programming.
    How can I use the performance to check memory problem such as "uninitialized memory read", "memory access out of array boundary" etc?
    Thanks,
    fm

    Don't know about source code analyzer, but dbx, the Sun Studio debugger, is capable of detecting memory leaks at run time. You can use bcheck script on your application or start dbx, issue "check -leaks" and then run your app under dbx.

  • Check print Problem  - F110

    Hi,
    Automatic payment program run was carried out in the last week through F110. It was observed that 56 payment documents has been generated, but due to check lot problem, only 12 checks has been issued and the programe was terminated due to insufficinent checks.
    I would like to assign new check lot number for the above doucments for which checks not issued.
    Let me know what is the procedure 
    Thanks & Regards,
    Prasad

    Hi,
    Reprint Check (FCH7).
    Procedure
    1.       Start the transaction using the transaction code FCH7.  The Reprint Check screen appears.
    2.       As required, complete/review the following fields:
    ·         Paying company code
    ·         House bank
    ·         Account ID
    ·         Check Number
    ·         Void reason code
    ·         Check lot number
    ·         Alternative form
    ·         Padding Character
    ·         Printer for forms
    ·         Payment advice printer
    3.       Select the checkbox  to the left of Print Immediately.
    Assign points if you find this helpful.
    Zia

  • Confirmation Check Badi

    We implemented the badi BBP_DOC_CHECK_BADI for the shopping cart, which allowed us to throw error and warning messages during the check of the SC. 
    I am now on the hunt for a Confirmation check badi or a place to add error messages during check of the confirmation.
    Any known exits, badis, or places to add Implicit enhancements?
    Thanks,
    Travis

    Hi Henery,
    Implement the badi, create a method read confirmation which calls bbp_pd_conf_getdetail, see below.  Create the e_* structures as class attributes and you will see the po in the header structure field BE_REFOBJ.
    method READ_CONFIRMATION.
      check ( conf_guid is not initial ) or
            ( conf_i_object_id is not initial ).
      refresh( ).
    call function 'BBP_PD_CONF_GETDETAIL'
    EXPORTING
       I_GUID                           = conf_guid
       I_OBJECT_ID                      = conf_i_object_id
      I_REF_DOC_NO                     =
      I_PARTNER_NO                     =
       I_WITH_ITEMDATA                  = 'X'
      I_ATTACH_WITH_DOC                = ' '
      I_ITEM_SORTED_BY_HIERARCHY       = 'X'
      I_READ_FROM_ARCHIVE              = ' '
    IMPORTING
       E_HEADER                         = e_header
       ET_ATTACH                        = et_attach
    TABLES
       E_ITEM                           = e_item
       E_ACCOUNT                        = e_account
       E_PARTNER                        = e_partner
       E_LONGTEXT                       = e_longtext
       E_ORGDATA                        = e_orgdata
       E_STATUS                         = e_status
       E_MESSAGES                       = e_messages
       E_TAX                            = e_tax
       E_HCF                            = e_hcf
       E_ICF                            = e_icf
       E_ACTVAL                         = e_actval
       E_ACC_ACTVAL                     = e_acc_actval
       E_HEADER_REL                     = e_header_rel
       E_ITM_REL                        = e_itm_rel
       E_OVE_REL                        = e_ove_rel
       E_PRIDOC                         = e_pridoc  .
    endmethod.

  • I have an Apple MacBook on which Lion 10.7, plus all updates, are successfully installed.  Can you tell me if TechTool Deluxe, normally supplied with Apple here has been now tested and found to run successfully?  I have run the program to check a problem

    I have an Apple MacBook on which Lion 10.7, plus all updates, are successfully installed.
    Can you tell me if TechTool Deluxe, normally supplied with Apple here has been now tested and found to run successfully?
    I have run the program to check a problem that I'm having. The particularly with video, and also volume structure. TEchTool Delux reports a failure for both of these components.
    I am wondering if this is realistic or not, given the start-up screen for TechTool Delux mentions on start-up that it has yet to be tested fully with Lion?
    With thanks, Ron.

    Yes, I understand, however, he Macbook is out of its Applecare, but the TechTool it still on the machine. Does that entitle me to an upgrade in TechTool?
    I suspect not, hoever, seeing I am running Lion, I am not sure at all? If you can answer this question it will help as then Imight be able to solve the problem I'm having.
    Best regards, Ron

  • When i was in a phone conversation my phone has switch off and began to vibrate. I solved with a soft reset. It can be a bad problem?

    When i was in a phone conversation my phone has switch off and began to vibrate. I solved with a soft reset. It can be a bad problem?

    Is the battery charged?
    By factory reset, do you mean you "restored" the iPhone?

  • Please check this problem

    please check this problem i am not getting my j2ee server deployed for a long time.
    when i try to execute my j2ee server ,i get the following problem
    C:\Documents and Settings\win>j2ee -verbose
    J2EE server listen port: 1050
    Naming service started:1050
    Exception in thread "main" java.lang.NoSuchMethodError
    at com.sun.corba.ee.internal.corba.AnyImpl.createTypeCodeForClass(AnyImp
    l.java:1256)
    at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.createTypeCode(Sh
    utdownUtilDelegate.java:223)
    at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.writeAny(Shutdown
    UtilDelegate.java:178)
    at javax.rmi.CORBA.Util.writeAny(Util.java:80)
    at org.omg.stub.com.sun.enterprise.naming._SerialContextProvider_Stub.re
    bind(Unknown Source)
    at com.sun.enterprise.naming.SerialContext.rebind(SerialContext.java:188
    at com.sun.enterprise.naming.SerialContext.rebind(SerialContext.java:202
    at javax.naming.InitialContext.rebind(InitialContext.java:370)
    at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManag
    erImpl.java:192)
    at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManag
    erImpl.java:149)
    at com.sun.enterprise.server.J2EEServer.bindObject(J2EEServer.java:718)
    at com.sun.enterprise.server.J2EEServer.createServerObject(J2EEServer.ja
    va:473)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:244)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    may be path variables are not set properly plaese tell what is the problem.thank you.

    sounds to me like you have a stale corba stub or something, but i'm no corba expert and i thought it went extinct about 5 years ago

  • SnowLeopard & CS4, Dual Display (Open GL not checked) bad color problems...

    I was hoping 10.6.2 might shake it but no luck...at all.
    The menu bar is on my Apple Cinema Display 23". Eizo is the 2nd monitor (my main visual monitor -- and things seem normal on this display), but I often have reference photos open on the ACD, and the colors are bad, way too saturated and bright. Like a double bump of Adobe RGB. No matter what software I use to calibrate the results are the same in PS CS4, over saturated colors. CS4 is not reading things right. I have not found this in other software on my machine w/ 10.6.2  (example Preview doesn't get whacked out like PS CS4 w/ this. It plays right). Help? This has gone on since the installment of Snow Leopard and PS CS4, and quite annoying for dual monitor set up. Again the dreaded app killer OPen GL is not checked in CS4 Prefs.
    Thanks.

    Chris Cox wrote:
    Also, sometimes the bugs are introduced late in the OS development cycle, and there is no time to test them.
    Adobe can report bugs to Apple, but Adobe cannot fix bugs in Apple's code or force Apple to fix bugs in Apple's code.
    It should be noted that I've NEVER BEFORE seen nor heard of a major dot release being released in less that 1 week of the shipping of an OS.
    Apple shipped Snow Leopard on Fri Aug 28th. The crap hit the fan over that weekend and the 10.6.1 update (primarily to address data loss situations) was released on Thurs, Oct 3rd...six days later.
    I know people tend to blame Adobe on Adobe forums, but Snow Leopard was, by all accounts a disaster....I've "heard" (from whom I can't really say) that Apple shoved a lot of last minute changes–supposed bug fixes that actually caused new bugs after the last developer's release.
    So, Adobe was just as surprised as other major application developers when stuff got broken between the last RC and the final GM.
    10.6.2 has addressed a lot of issues...but personally, I'm not gonna jump to Snow Leopard yet. I still think Apple has work to do to get back to the stability of 10.5.8. And, when I do (I've got my Snow Leopard DVD sitting on the table) it will be installed on an external boot drive to make sure the main drive remains a stable and productive work machine...

  • BadI problem in MIGO

    Dear Experts,
    I need to do some validation in MIGO tcode based on item Purchase Order and item. I have already identified badi MB_MIGO_BADI and methods CHECK_ITEM also. but problem is in CHECK_ITEM method having Item Number only as Input parameter. I am unable to get PO Number and Item in this method to do validation.
    Please let me know how can i get Po number and Item in my methos CHECK_ITEM???
    Thanks in Advance,
    Siva

    Hi Siva,
    Check like this
    CALL METHOD im_header->get_items
    RECEIVING
    re_items = lt_items. If you use this method you can not get po no.
    Suppose if your business requirement is to check when ever an item enter in line then you can use line_modify.This will fire when ever you enter line item.In this case you can use parameter cs_goitem for po reference.If there is any macro available then easy to give the message.
    Regards,
    Madhu.
    Edited by: madhurao123 on Sep 26, 2011 11:20 PM

  • CRM BADI Problems

    We have created a bespoke copy control routine to copy the order reason from one transaction to another. Within the routine we have put BREAK-POINT, but this break point is never being executed, so I assume the routine is not being called.
    The implementation name is ZCRM_COPY_CREDIT_MEM. The definition name is CRM_COPY_BADI.
    We have changed the SUBJECT method to include the following code:
    METHOD if_ex_crm_copy_badi~subject .
    Copy the Analysis Code "Order Reason" to Credit Memo
    Request analysis code "Activity Reason".
      DATA: ls_subject TYPE crmt_subject_wrk.
      BREAK-POINT.
    Ensure the analysis code is for Order Reason "ZT"
      LOOP AT it_ref_subject INTO ls_subject WHERE katalogart = 'ZT'.
    Populate the target structure from the Query source data
      ENDLOOP.
    ENDMETHOD.
    According to SE19 this implementation is active, and I have checked that the routine is being used in copy control.
    Any ideas?

    Hi Avinash,
    I am looking for your help
    Were you able to solve your  problem. Were you able to get your debugger in the Date method in the BADI CRM_COPY_BADI.
    I have implement the date method in the above Badi but this method is not getting called , could you please tell me what could be the problem.
    Waiting for your prompt reply
    Thanks and regards
    Sandeep

  • VS2005/CR - Certificate check, performance problem

    Post Author: Lars-Inge
    CA Forum: General
    Hello,I have a problem with the Crystal Reports (with CR ServicePack 1 installed) that shipps with the Visual Studio 2005 Professional IDE. It looks like the reports are using a certificate check that is out on the internet(?). The synpthoms are extremely bad performance the first time the reports are instantiated. E.g say I have this C# code:            CrystalReport1 rep = new CrystalReport1();The first time this line is called it takes minute(s) (1 minute + 40 sec) before it completes. After it completes the first time, the next calls to this line takes less than nothing (less than 1 sec). I want it to take less than nothing (less than 5-6 sec is OK) the first time aswell.If I disable the certificate check in the registry in Windows, it takes less than 1 second the first time aswell. E.g in "regedit":My ComputerHKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionWinTrustTrusted ProvidersSoftware PublishingChange the "state" from "0x23c00" to "+ "0x23e00" to switch it off.But I cannot do this on a customer computer.Does anyone have any good suggestions, please?Best regards,Lars-Inge

    Hi,
    both execution plans have very similar cost values (278461 for the bad plan, 270476 for the good plan) and the necessary I/O is also similar. But the bad plan creates an intermediate result of almost 500M rows before the SORT UNIQUE reduces this result to just 505 rows - while the good plan sorts the input data before doing the join and reduces the 627859 rows before doing a second sort operation (HASH UNIQUE). In addition the Nested Loops join to create the result for the inline-view trt_cells in the first plan seems to be more reasonable than the HASH join in the bad plan - but the treatment of ch_cells seems to be the bigger problem.
    With the very similar cost value a small change in the arithemtic can result in a changed plan. But both plans do a bad job to determine the size of the resultsets of the hash joins: the bad plan expects to get 2.3M rows (instead of 500M) before the sort takes place and the good plan shows 1900 rows for the join (and gets 627859 rows).
    I would try to check why the cardinalities for the join of ACRM_LEAD_TO_CHANNEL_DAILY and UA_CONTACTHISTORY with the join condition (ch.treatmentcode = daily_leads.treatmentcode) are not accurate. Perhaps the columns statistics for the join columns are misleading (number of distinct values, low_value, high_value in user_tab_cols). You could try to use the values in the standard formulas to calculate join selectivity and cardinality (here in a simplified version from Randolf Geist's blog: Oracle related stuff: Table Functions And Join Cardinality Estimates):
    Join Selectivity = 1 / greater(num_distinct(t1.c1), num_distinct(t2.c2))
    Join Cardinality = Join Selectivity * cardinality t1 * cardinality t2
    Perhaps the results will show where the CBO needs a little bit help (or better statistics).
    Regards
    Martin

Maybe you are looking for

  • Restore prompt when connecting ipod to computer

    I'm getting a prompt to restore my ipod after I connect it to my computer. I recently purchased the ipod and downloaded the latest version of itunes (less than 2 weeks), everything worked fine and I was able to download most of my library to itunes a

  • Having problem installing Adobe Extension Manager 6.0.7 update. Received Error  Code  U44M1P7.Help?

    I am having a problem installing Adobe Extension Manager 6.0.7 update.  Received Error Code: U44M1P7.  Help? Thank you for your assistences.

  • After Effects error : layer does not have a source.

    Hi All,           I add a Text layer and then add my custom fill  effect to it. Then I call AdvItemSuite1()->PF_ForceRerender(in_data, &(params[0]->u.ld)) from AEGP for all the layers. But only for Text layer, AE pops up a dialog displaying the follo

  • IWeb not making  albums?

    hello. i just bought my mac and i got iWeb with it... and im trying to create albums with it and they are in iPhoto but they keep beeing regected by iWeb what can i do? I drag the album onto the "album" page and then the green thing comes by the icon

  • IPad 3 accelerometer question

    I think I may have a faulty accelerometer on my iPad and would like some advice please. I first noticed thus when putting my iPad down on my desk and if it wasn't 100% level it would rotate the screen, which could get quite annoying trying to lie it