BBP_ITEM_CHECK_BADI for Category check

Dear Experts,
I have to implement further checks based on the category during contract, requisition and order creation and update.
The badi I looked was BBP_ITEM_CHECK_BADI.
The problem is that I couldn’t find the way to get the data on line: there is any function module which is able to give the data that are entered during document creation?
Because the only import parameter given by that badi is the Item GUID, but than how can I get the data filled in the document during his creation?
Thanks
#Bill J.

Hello, you should call the getdetail function module as one of the first steps in the badi code.
Using the GUID you can call FM BBP_PD_PO_GETDETAIL to get the PO detail, BBP_PD_SC_GETDETAIL for shoping carts and BBP_PD_CTR_GETDETAIL for contracts.
Regards, Luciano.

Similar Messages

  • Check sales order exits for category ZTAC

    Hi Experts
    I have a requirement to modify the iDOC interfaced program,
    In the routien which checks for the existence of a production order, I have to modify the following
    1.  Inspect each item on the sales order
    2. If (and only if) there is atleast one item with a category of "ZTAC" then check for a production order otherwise processing the order in the usual manner.
    Could anyone tell me how to check (Is there a sales order) if no then display error message if yes then is there a production order if no display error message if yes Create confirmation .......................
    I want to know how to write a coding to check sales order exits from table VBAP,VBAK Etc., .
    Thanks in Advanced
    Regards
    Piroz

    Hi Prabhu
    Thanks for your email and response but I need to check this in program for IDOC ....Modification
    Insert code in this way
    check sales order for category = 'ZTAN' inspect for each item on sales order
    and if you found item with cateogry ZTAN then check for production order otherwise go asual manner
    I WANT TO WRITE A CODING HERE **********************
      if production order required then check
                    for each item on sales order item list
                          with item category = 'ZTAC' then
                                     return true
                                next
                                  end function
      VBAP TABLE field VBELN and PSTYV (ZTAC,ZTAN Etc)
    Eg of coding
    if lva_saleord is initial
            select single * from vbap into l_saleord
              where vbelv = lva_saleord
              and   vbeln = lva_vbeln and
              exit.
            endselect.
          endif.
    I want to write a small program in between to check the sales order exits if it is then I have to go to deliveries ...................
    Regards
    Eslam

  • Help needed in UserExit QEVA0010 for UD Check

    Hello All,
    I need you help in UserExit QEVA0010 for UD Check. Actually i want to restrict user to enter stock posting when particular UD Code is Enter. For Exmple, If user set UD Code as 'A' (Accept) then in another tab for stock posting user can only enter stock quantity in "unrestricted" and in "Sample Qty". Is it posssible to disable all other fields except Unrestricted & Sample qty.?
    With Thanks & Regards,
    Mudassar Praniya.

    Hi,
    Please use the following:
    when 'SICH'.          " On Save action
    if vbak-vtweg eq 'HA'.  " Check Distribution channel
      flg_dh = 'X'.         " Sets if DC is 'HA'.
    endif.
    if flg_dh eq 'X'.
      if vbap-pstyv eq 'TANN'.    " Check item category
        flg_itmc = 'X'.            " Set if item cat is 'TANN'.
      else.
      message 'SO could not be created Please enter brokerage material' type 'E' display like 'E'.
      endif.
    endif.

  • Should not for credit check.

    Hi,
    I am creating order for employee slaes and for that customer we have credit control area field is blank in customer master.
    It is still going for credit block. Could you please let me know how can i stop so it would not go for credit check.
    I would really appreciate.
    Thanks,

    Hi,
    Credit check happens for a document when system finds a Credit control area + Credit Group + risk Category.  But what I fail to understand is when you say Credit control area is not assigned to the customer. Normally it will not be assigned. It is defaulted based on the sales area and the company code.
    My suggestion to you is to check by going to FD32 and giving in the customer number and the credit control area and then by selecting Central Data and Status. Check what is the credit limit. If it is zero, increase it.
    When you say the test case indicates that the test should not go for a credit check, my guess is you are using a wrong document type. Credit Group is derived from the sales document type and I think when you doing sales to employees, you nornally happen to use a different document type from regular. Please check that as well.
    Also, you need to check what is the item category. When there is an employee sales, as far as i understand the system, the net value happens to be either zero or at the cost price. So, if the Item category is TANN, then system should make the net value zero, and order will not go for a credit check.
    I think you can check on these points. But my guess is the document type or the item category is not correct.
    Hope this helps
    Thanks
    Mukund S

  • Block sales order for credit check

    I have created 1 sales order. I want to know how we can find out that sales order is in block.
    Also I want to block the sales order created for credit check . What I can do that sales order will go in block.

    Hi KiranCG,
    --For Credit check go to T.Code FD32 & give customer number & Credit control area & enter the credit limit amount & save it.
    -Do the Cutomization for Credit Management
    IMG-S&D-Basic Functions-Credit Management & Risk Management-Credit Management
    --Define Account groups
    --Assign the credit group (01) to your Sales Document type.
    --Define Automatic Credit Control (or) T.Code OVA8  Assign CCARisk categoryCredit group -01 (Sales Order) & also Fill the required fields
    --In Check column Check mark the Static or Dynamic credit & put reaction as C & check mark the status/block & save it.
    --Now raise the sale order in VA01 if the credit limit exceeds the system will through you an error message.But you can still save the document.
    --Go to T.Code  VKM1 to view the Blocked sales document & enter Credit Control Area,Credit account,Risk category& customer credit group.
    --.In order to release the Sales order document go to T.Code VKM3
    Let me know if your problem is solved
    Regards
    Pradeep

  • Validation- RUN_LOGIC:Data for category  not found in application T_SALES

    In BPC NW 7.5...
    I set up the validation business rules to check that Account A = Account B. When I run the validation package through DM, I got the error that stating RUN_LOGIC:Data for category  not found in application T_SALES. I have 3 members in my Category dimension: ACTUAL, FORECAST and PLAN. The same error appeared even if I hardcoded the category member in the script logic:
    *RUN_PROGRAM VALIDATION
    CATEGORY = %T_CAT_SET%
    CURRENCY = %RPTCURRENCY_SET%
    OTHER = [ENTITY=%P_CC_SET%]
    TID_RA = %TIME_SET%
    *ENDRUN_PROGRAM
    Do you guys have any clue on the error?
    Thanks in all advances,
    Yen Li

    Hello,
    this error isn´t about category dimension.  The system checks if all needed dimensions exists, and if not it gives this error. You can use debug to seach for the dimension in fault.
    Best Regards,
    António

  • Issue with BDC program used for FBZ5 (Check Print)

    Hi all,
    I am having one requirement in Check printing. as per that i have made one Z program which will accept multiple Payment documents. I am passing selected accounting documents to BDC routine for Transaction FBZ5. (As in FBZ5 we can take a print for one Payment document not for multiple)
    We can have 3 scenarios in FBZ5
    1. Fresh Check printing (First time check printing)
    2. Old Check (printing for same Check no)
    3. New Check (After voiding older check)
    Category 1 and 2 are working fine but i am facing problem in category 3.
    For Category 3 : BDC Screen flow is like this
    A. Tcode FBZ5 Start program: SAPMFCHK Screen: 750 --> Click on 'Print'
    B. Program: SAPLSPO2 Screen: 0100  --> Here specify option 'New Check'
    C. Program: SAPMFCHK Screen: 0700
        - This program belongs to new Tcode FCH7
        - Here we have to give Void Reason code
    Now issue with Category 3:
    While executing BDC in online and background mode my control is terminating at step C mentioned above
    Troubleshooting:
    I have debugged standard program of FBZ5
    1. in Include MFCHKFD0 we can see call to Tcode FCH7  (PERFORM AUFRUF_FCH7.)
    2. in form AUFRUF_FCH7 i found code related to BDC
       also there one statement is getting triggered -->   CALL TRANSACTION 'FCH7' USING BDC MODE 'A'.
    So there is a BDC call inside my Z BDC program, so is this a reason why my program is not working for above scenario ?
    Or can't we handle above scenario in a way mentioned above?

    Hi Sandra,
    I was trying to upload customer master in fd01 using bdc. The screens were different while recording. So could not perform the upload. Thenone screen was skipped so that the bdc was working fine and the data was uploaded.
    This is the flow of the recording.
    'SAPMF02D' '0105'.
    SAPMF02D' '7105'
    SAPMF02D' '0111
    SAPMF02D' '0120
    SAPMF02D' '0130
    SAPMF02D' '0210
    SAPMF02D' '0215
    SAPMF02D' '0220'
    SAPMF02D' '0230'
    SAPMF02D' '0610
    After the second screen was deleted the bdc worked fine.

  • Open sales order value for credit check need to be changed (S066)

    Hi all,
    I need to change open sales order value which is already there in S066 table.
    Previously we had used open order value for credit check. Open order values are already updated in the S066 table.
    Now we dont want to consider open order value for credit check (which is already included in the credit exposure field in FD32).
    When we create sales order system is taking old open order value for credit. Now i have changed not to update open order value for credit check. Now its not updating open order value. But my issue is how to change existing or (previous) open order value for credit?
    Can i change S066 table data directly to '0'. Is it advisable to chage open order value directly from this table?
    Please advise me.
    Regards,
    Babu
    Edited by: babs on May 19, 2010 4:26 PM

    Hi Babs,
    If you doesn't want to reflect the open order value in the structure for this order value ,If the order is not processed kindly delete the line items and the order. Then save the document. Then try to see the structure S066.. This will be modified.
    If you want to modify the value then follow the below process.
    Otherwise delete the line item in the order and change the pricing date and the document date. Re enter the line item again so that it will take it up the new changes.
    I hope it will help.
    Regards,
    SK

  • Incoming orders in COPA not working if Sales Order blocked for Credit Check

    Hi all,
    We need to build a report showing all incoming sales order by entry date and/or change date (change of values or quantities later on). COPA allows to do this, but the problem is that COPA line item table is only updated if the sales order is released from credit check (VKM3). I am looking for a solution to be able to record sales orders in COPA even if they are still blocked for credit check. By doing that we will be able to report all sales orders entered from COPA and provide basis for commissions calculation to the business.
    I have investigated possible COPA enhancements like COPA0005 but it doesn't seem to be used at the time of sales order save.
    Thanks.

    Hello ,
    Thanks for the reply
    As you said , the credit check in the service order is information message "Credit check (maximum percentage for ope
    exceeded)" .
    If you enter and come out this message then one more message will come , i.e., "The business transaction can not be carried out" detail message -  System status CNOK is active (ORD XXXXXXX).
    with the above message , system will not allow to do the Service order release.
    In this particular case , we have done the VKM1 for the sales order to unblock the order from credit check . But again system is checking the credit check at service order (created w.r.t sales order) . we are not able to control this .
    we also suggested the solution to the customer , saying removal of credit check for service orders . But customer requires credit check to happen at both the documents.

  • Txn for cancelled checks

    Hi Friends,
    Can u please suggest me the Txn used for cancelled checks in SAP .
    Thanks n Regards,
    S.Agarwal.

    Hi
    LI05     Inventory History for Storage Bin
    LM55     Print Storage Bin Labels
    LP22     Replenishm. Planning for Fixed Bins
    LS04     Display Empty Storage Bins
    LS05     Generate Storage Bins
    LS06     Block Storage Bins
    LS08     Block Storage Bins by Aisle
    LS10     Generate Storage Bins
    LS25     Display Quants per Storage Bin
    LSET_BIN_COORDINATES     Maintain Storage Bins by selection
    LT343XYZ     Copy Storage Bin Definition Rules
    LT343XYZA     Maintain Bins by Definition Rule
    LX01     List of Empty Storage Bins
    LX03     Bin Status Report
    LX05     Block Bins in Bl.Storage w.Time Lim.
    LX15     Selection of Bins for Annual Invent.
    LX16     Selection of Bins for Continuous Inv
    LX40     Material Situation Prod. Storage Bin
    LX41     Bin Status Report WM/PP Interface
    LX45     Verification Field in Storage Bin
    rwd if useful
    rgds
    BV

  • How to use multiple languages at the same time for spell checking?

    I use two different languages all the time and words are mostly so different (English and Finnish) that I could have spell checking on for both languages at the same time.
    Now it seem to allow to select only one language at the time and I have to switch back and fort zillion of times per day.

    Thanks for the quick answer.
    The Dictionary Switcher doesn't seem to work with Finnish language, it doesn't detect it at all to be one of the choices although in the Firefox context menu Languages -> Finnish/Finland is shown.
    Also, if it would work, I would need to get rid of multiple EN_* langauges. I just need EN_UK or EN_US, not all 22 different EN_*.
    One option would be to create a custom dictionary, which would have words from both languages. The next task is then to find out how to make this kind of custom ENFI-dictionary, which would have words from both English and Finnish languages.
    Finnish may be a some kind of special case for spell checking anyway, because the support is in its separate plugin:
    http://voikko.sourceforge.net/

  • Why can't I use my Mac Book pro for cashing checks like every one else uses their iPhone and iPad? I am a grandmother and in the past 4 years I have purchased 4 MacBook Pros and 1 iPad for my children and grand children.

    I would like to be able to use my MaBook Pro for cashing checks lie the I phone and I pad. Why isn't this feature included?

    This has nothing to do with Apple.  As BobTheFisherman indicated, your bank needs to create an App for the Mac to do this.  These types of applications tend to be limited to mobile devices as they are a bit easier to maneuver for taking photos.

  • Year property for category dimension

    Since year property is the Required Properties for Category Dimensions, if I need to have actual and budget for multiple year, is this mean that I need to create id for every year?
    Like following:
    ID                            year
    actual_2010           2010
    actual 2011            2011
    budget_2010          2010
    budget_2011          2011

    Hi,
    Actually, maintenance of the category dimension is an admin activity. The admin has to change the year value every year. This is similar to the Time dimension. Every year, the admin has to add members for that particular year. Its just once in a year.
    Hope this helps.

  • Trying to spell check email, I get this: "This language is no longer available for spell checking.

    Firefox does automatically check my emails like it does when I use Word Perfect. When I select spell check, I get this message: "This language is no longer available for spell checking. Please check another in the spelling options box."
    When I click on the spelling options box, I get the same message. I have never changed any settings as regards to spell checking

    Which language is selected if you check that via the right-click context menu > Languages in a text area?
    Is that dictionary still installed and enabled?
    * [[Troubleshooting extensions and themes]]
    See also:
    * http://kb.mozillazine.org/Spell_checking
    * http://kb.mozillazine.org/Dictionaries
    * [[Using the spell checker]]
    You can look here for dictionaries:
    * https://addons.mozilla.org/firefox/language-tools/

  • Change due date in receivables for credit check

    Hi Sappers!!
    Scenario: When SAP performs a credit check for a customer we need that pending receivables
    (open items) for this customer which have a concrete payment method, don't use due date
    for calculation, instead we want to use invoice date for carrying out the credit check
    calculation.
    Is that posible? Is there any user-exit where we can change this date to be used during
    credit check control for documents which fulfill this requirement?
    We don't want to change permanently the due date for this kind of documents, we only need to take another date into account when performing credit control.
    Thanks so much in advance & best regards

    Thanks so much for your quickly answer.
    Creating a new payment term is not a valid solution because, we don't want to change any date in the financial document. We just only need to use another data only for credit check. Here you have a concrete example:
    Invoice created with invoice date 01/12/2009
    Payment method confirming 90 days.
    Base line calculated: 01/03/2010
    If we create a new sales order, this open item will not be considered exceeded because due date is still in the future.
    We want to consider it as exceeded and the due date would be 01/12/2009 but only for credit check. This "new" due date must not be stored anywhere.
    Thanks so much once again & best regards

Maybe you are looking for

  • Devices Can't Find Airprinter when Macbook is asleep?

    Hello all, I have a printer connected and airprint enabled on my airport express. The main computer on my network (The one which I set up all my airport devices) is a macbook. When the macbook is up and running, all my other ipods, ipads, pcs, macs c

  • USB 2.0 on D-bracket not working in WinXP

    Only the USB 1.1 ports work.  Device manger lists the 2.0 controler and ports as working properly.  Tried disabling Windows XP from disconnecting power to device to.  NOPE.  Using latest USB 2.0 drivers from MSI (Microsoft?) Is it supposed to work? K

  • Adding progress Monitor

    HI All, I have been working with reading an XML file through a local path, and sending it to the server via a web service The code is something like this:- String strnewpath = vecPathPLS.elementAt(insel).toString(); FileInputStream finpStream = new F

  • How to capture exception in cursors

    Hi, I wnated to bulk collect say 100 record into global temporaary table,suppose if there is a exception in any of the record how could i handle it? for example 2 records are throwing exception in this case i want remaining 98 to get processed and re

  • Compressor stops halfway - Computer wants to restart

    I have a mid-2006 17" Intel Core Duo iMac with Snow Leopard installed. I'm having problems with Compressor (3.0.5) being able to completely export a 2 and half hour video from Final Cut Pro. Like I said, the film I'm compressing is 2.5 hours of HD vi