We need to derive ZNUMPACK (Number of Packages) in plants depends batch

Hi Experts,
I have the code,it is nothing but a lookup on 0BATCH for quantity more lines greater than zero.I would like to derive it directly in the BEx Report.  That is all we have to do is count the number of batch lines.  We need to derive ZNUMPACK (Number of Packages) in plant depends upon batch. I tried it by using exceptional aggregation and tried in lot of ways. But I am not getting the solution.Please help me to solve this problem...
Thanks,
SVS

Hi Amit,
  Thanks for your reply. In this scenario configurable material is involved. And first Make to Stock scenario is executed to check any material with customer entered characteristics are avialable. If its so it will determine its batch and assigned the quantity.
If zero quantity is assigned or no quantity is assigned then I have to trigger the Make to Order scenario for rest of unconfirmed quantities in order.
I have check it in USEREXIT_MOVE_FIELD_TO_VBAP but it was of no use. I even tried in USEREXIT_CHECK_VBAP but still no result. I am not sure what all the tables and structures i need to populate there.
Regards,

Similar Messages

  • Derive week number of that month

    Hi,
    I need to derive week number based on month.
    Ex:
    Sy-datum = 10.10.2010
    Month: 10.2010
    Calweek: 40.2010
    Week no: 2
    Sy-datum = 11.10.2010
    Month: 10.2010
    Calweek: 41.2010
    Week no: 3
    So for everymonth I need to store the week no in the cube
    Ex
    Date--Month--
    calweek............weekno
    10.10.2010.............10.2010.............40.2010...............2
    10.10.2010.............10.2010.............40.2010...............2
    10.10.2010.............10.2010.............40.2010...............2
    11.10.2010.............10.2010.............41.2010...............3
    11.10.2010.............10.2010.............41.2010...............3
    11.10.2010.............10.2010.............41.2010...............3
    So here i need to derive week number for a date in the month
    Can anyone please help what logic to be applied to get the week number?
    Thanks
    Annie
    Edited by: Annie on Oct 14, 2010 7:48 AM

    Hi Annie, I'm not very sure of any function modules, but you may try this logic:
    1. Date Format Stored in SAP: YYYYMMDD.
    2. Use a formula X+6(2) to get the DD part.
    3. Use Conversion Exit  'CONVERSION_EXIT_ALPHA_INPUT'
    4. Logic: [ DATUM's DD ] MOD 7 which gives the week # ordering for the particular month.
    5. Close the START Routine passing the temp value to RESULT.
    DATA:var_dd type sy-datum, var_temp(2) type i.
    var_dd = SOURCE_FIELDS-ZDATE+6(2).
          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
            EXPORTING
              INPUT  = var_dd
            IMPORTING
              OUTPUT = var_dd.
    if sy-subrc = 0.
    var_temp = var_dd MOD 7.
    end if.
    RESULT = var_temp.
    Pls. review & let me know your comments.
    Thanks.
    Edited by: Arun Bala G on Oct 14, 2010 12:22 PM

  • How to find Number of package for a Billing Document

    Hi,
    I have a requirement in that i need to print the number of packages used for a particular billing. Please tell me the tables and fields in which i get this?
    Thanks and regards,
    Ezhil.

    If your billing document is created with reference to the Delivery, then check the field LIKP-ANZPK.
    Regards
    Vinod

  • Need a BAPI to upload "Number of packages" for outbound delivery in VL02N

    Hi,
    I need a BAPI which can change data into field LIKP-ANZPK (Number of packages) for outbound delivery with tcode VL02N.
    I saw BAPI_OUTB_DELIVERY_CHANGE but don't know what to parameter to fill.
    Can anyone help me?
    Tarick.

    This solution is in kzapk and kzntg.
    Example:
    CLEAR ls_vbkok.
         ls_vbkok-vbeln_vl  = <ls_created>-document_numb.
         ls_vbkok-vbtyp_vl  = <ls_created>-document_category_sd.
         ls_vbkok-anzpk     = id_volum.
         ls_vbkok-kzapk  = 'X'.
         ls_vbkok-kzntg  = 'X'.
         ls_vbkok-wabuc  = 'X'.
         CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
           EXPORTING
             vbkok_wa       = ls_vbkok
             update_picking = 'X'
             synchron       = 'X'
             commit         = 'X'
             delivery       = <ls_created>-document_numb
           IMPORTING
             ef_error_any   = ld_error.

  • We have an Adobe support package (U.S. Treasury Dept), but I need a phone contact number

    We have an Adobe support package (U.S. Treasury Dept), but I need a phone contact number.
    Thanks.
    Jahmal Lake

    This link might help:
    Adobe Gold and Platinum contract holders

  • Auto Population of number of packages field in the delivery document

    I have a requirement wherein the number of packages field (LIKP-ANZPK) field needs to be populated automatically in the delivery document. I have maintained the packing instruction(POP1) and assigned the instruction to respective material(POF1). Is there anyway that standard SAP calculates the number of packages from POP1/POF1 and populates it into the delivery document?
    It would be helpfull if someone can let me know if this scenario is possible via standard SAP config? If yes what other configs should i setup?
    Thanks,
    Harish

    As far as i know SAP does not perform this calculation based on POP1/POF1 and this is not controlled in Configuration.  It is simply performed automatically by the system by calculating the number of HU's in the "Pack Screen" of the Delivery.
    thanks,
    A

  • Population of Number of packages field(LIKP-ANZPK) in delivery document

    Hi,
    We have a requirement from our client that the number of packages field needs to be populated in the delivery document automatically.
    Scenario:
    The plant is a warehouse managed plant. The delivery document will be created and the TO will be created automaticaly and confirmed. On confirmation of the transfer order the delivery document should be updated with the number of packages field.
    We have setup the packing instructions using POP1. The number of materials in one carton will be mainatined through POF1(O/P type STOC with condition record for material/PLant/Sloc)
    We need information on any standard SAP program which will calculate the total number of cartons/Packing boxes required for the materials specified in the delivery document and this should be populated in the number of packages field in delivery document.
    Would appreciate help from someone who has worked on such a scenario.
    Thanks,
    Harish

    Hi,
    If you use pick and pack LM45 to pack the items as you pick when the TO is confirmed this field automatically updates with the number of HU used and you get an accurate packing hierarchy.
    James

  • My computer crashed and I need a new serial number.  I have my product key

    My computer crashed and I need a new serial number.  I have my product key

    Duplicate thread http://forums.adobe.com/thread/1204907

  • Triing to send pictures threw e mail but it tells me I need a sender verification number. What is it

    I am triing to send pictures threw eliments 9 and it tells me I need a sender verification number. What is it and where do I find it?

    Hey,
    Just to elaborate, as you have added the email id after selecting Adobe email services. You will get an email from '[email protected]'. In this mail there will be an alphanumeric code. This is the verification code asked by Organizer. If this email is not in the inbox then check your spam folder.
    ~Andromeda

  • Need to make serial number in rdf

    need to make serial number column in report builder
    i tried to put rownum as column in the select statement but data wasnot fetched probably

    user513954 wrote:
    need to make serial number column in report builder
    i tried to put rownum as column in the select statement but data wasnot fetched probablyWhat do you mean by "was not fetched properly"? Why did not rownum work for you? Do you have the corresponding SQL?
    Cheers
    Sarma.

  • Help needed- Reg: Display page number in SQL Reports

    Hi,
    I need to display page number in " page no: X of Y " format where X is current page & Y is total number of pages. Now I am able to display only the current page using ' sql.pno '. but not able to display in ' X of Y ' format.
    Any inputs in this regard will be helpful.
    Thanks & Regards,
    Anilkumar.

    Hello Anil,
    If you have the above requirement for Oracle Reports then follow the steps:
    1.In the Paper Layout view or Paper Design view, choose InsertPage Number.
    2. In the Insert Page Number dialog box, choose from the list the location for the page number.
    3.Click the desired page number format: Page Number Only or Page Number and Total Pages.
    Cheers,
    Suresh

  • I need a purchase order number immediately option in I-proc

    Hello,
    I created one catalog requisition in I-Proc, and checked " I need a purchase order number immediately" option during checkout. This requisition has been created and i even got message that "Purchase order number 45 has been reversed for you" With this being said...
    1. Where can i see this PO number ( I approved above requisition, but i can not see this PO number in PO screen)...?
    2. What does this purchase order number do?
    Thanks
    Deepak

    Hi Depak,
    Please check this doc...
    PO Create Documents
    Workflow File Name: poxwfatc.wft
    This workflow manages the automatic creation of purchasing documents. The PO Create Documents workflow starts in Oracle iProcurement when you submit a
    requisition associated with an existing blanket purchase agreement, contract purchase agreement, or catalog quotation in Oracle Purchasing. Customize the attributes in this workflow to fit your business needs.
    The following table shows the attributes that you must consider:
    1) Is Automatic Creation Allowed?
    Please change to Y
    AUTOCREATE_DOC Indicator (Y for Yes or N for No) of whether this workflow is initiated for all approved requisition lines.
    Default value: N
    2) Is Automatic Approval Allowed?
    AUTO_APPROVE_DOC Indicator of whether the purchase order approval workflow is initiated automatically after this workflow.
    Default value: N
    Please change to Y
    3) Should Workflow Create The Release?
    CONT_WF_FOR_AC_REL_GEN Indicator of whether this workflow creates, releases, or leaves them to the buyer to create using AutoCreate in Oracle Purchasing.
    Default value: N
    Please change to Y
    You can verify the changes through below query..
    select rtrim(w.name) name,
    w.text_default Value,
    rtrim(w.item_type) item_type
    from wf_item_attributes w
    where w.NAME in ('AUTO_APPROVE_DOC', 'CONT_WF_FOR_AC_REL_GEN', 'AUTOCREATE_DOC')
    Hope this will help.
    Regards,
    S.P DASH
    Another quick question to you, you mentioned UNSPENT code in your queries.. I think it should be UNSPSC code...correct me if I am wrong here..

  • Do I need to buy a web hosting package to publish with iweb, and how do I configure Filezilla?

    Hi,
    I've created a website using iweb and have bought a domain name from 123reg and downloaded Filezilla as the FTP server. How do I configure Filezilla to my server and do i need to buy a web hosting package?
    Thanks!

    To use FileZilla, or iWeb's built-in FTP, you need a webhosting package.
    Which one? Start with your own ISP. Otherwise its like answering what's a good grocery store.
    The webhoster will provide the details of what to enter in the various fields.
    Perhaps 123Reg offers what you want? They do actually.
    You must have seen it when you visited their pages.

  • My computers broke down before I could deacte CS3. I need a new serial number to reinstall on my computer.

    My computers broke down before I could deacte CS3. I need a new serial number to reinstall on my computer from Adobe.

    Contact support by web chat to reset activations.
    Mylenium

  • My computers broke down before I could deactivate CS3. I need a new serial number to reinstall on my computer.

    My computers broke down before I could deactivate CS3. I need a new serial number to reinstall on my new computer.

    Hi Corinne,
    You can try and perform the installation on another machine and it should work fine for you. Can you please let us know if this is able to solve the issue for you or not.
    Cheers,
    Kartikay Sharma

Maybe you are looking for

  • Free Goods line item in Billing Doc.

    Hello SAP GURUS, I am working on ECC.6. I am processing the sales order and delivery for FREE GOODS every thing is fine but I not able to see the relavent free good item in the billing document.Can some one help me How to get the same. Thanks & Regar

  • Select query in driver program for sapscript

    Hi All, I want to select buzei, zuonr,sgtxt,meins from bseg ,temp (a temporary variable of type p deciamls 2), tmp (another temporary variable) and dmbtr from HBSEG (a structure of type bseg) . under the cond koart ne 's' or xauto ne 'x' or buzid ne

  • How to create and add an XML node at run time ?

    Hello and thanks to All of You i've been learning a lot since i use this forum.. I'm having another problem, !!! i would like that my executeShape function insert a new XMLChildnode called "adverts"  to my Pages:XML via the evenListener of the execut

  • Ios 8: find inside pdf (Safari)

    Before iOS 8, i was used to find words inside pdf documents in the Safari app, in the same way we can find words in a web page. Now with iOS 8.0.2, both in my iPhone 5 and in my iPad mini retina, this feature doesn't work. Can anyone try if it's a co

  • Convert Month to Range of Dates

    Hi All, I need help it writing a T-SQL which converts a single month into the all the dates of that month. I tried and tried, and  nothing came to my brain. I need from experts like you. Table Data P_Status Month Daily Prod Unit Jan-14 1 4 Feb-14 3 6