SD-PGI RELATED

HAI ..
   iam having one query about slecting the maximum (pgi )document for a paricular delivery documents
   how can we retire the max docu.
i had alread writeen the done  just see and suggest me the possible method.
  LOOP AT IDEL.
    PERFORM TIMESTAMP1.
FOR DELIVERY DATA INFORMATION
    SELECT  MAX( VBELN )   FROM  VBFA  INTO  PGIMAXR    WHERE  VBELV = IDEL-VBELN
                                                           AND VBTYP_N =  'R'.
    SELECT  MAX( VBELN )   FROM  VBFA  INTO  PGIMAXH   WHERE  VBELV = IDEL-VBELN
                                                          AND VBTYP_N  =  'h'.
endloop.
can anybody send me th e solution.
tanx in advance.

Hi
  You can use following T-Codes:
SE16 to view Table Data
SE11  to view field length
SE37 to vew function module
SE38 to view program
and also IF u click    F1 on any one of the field it will open a window from there go to technical information icon if u click on that icon it will tel u which table that field belongs to n wat is the table name and field name.Now if u doble click on the field it will take u to data dictionary there u can view field length ..
If it is use full please reward points
Regards
MBS

Similar Messages

  • PGI related report

    Hi All,
    Can any  tell me PGI related report?
    Once we do the PGI the material document gets generated. I need a standard report after PGI is done.
    Please let me know if any such standard reports are there...
    Points will be allocated to the suitable answer.
    Jay

    Dear,
           You can use : VL06G, VL06O, VA05. In this report you can enter your choice in Tab Status : Outb. Delivs and execute. In that report you can see the data at both level - item and Header.
    Regards,
    Sandip

  • PGI check in an order related Billing

    When I do an Order related Billing in VF01, TAO item category does not have any check on whether PGI is done or not?
    I need to establish the control on it.
    Any Exit?
    Pleasea give ur valuable suggestions.
    Regards,
    Anbu

    Hi,
    Here is a proposal of customizing activities to achieve this: 
    1. Create a new item category as a copy of the normal item category used for non-prepaid
       sales. (Change the billing in the item category to order related billing with no billing plan) 
    2. Create a new item category group "ZXXX" or something of your choice with the
       description "Prepaid" or something like that. 
    3. In item category assignment, add or check entries so that you have the order type used,
       and item category group defaulting the new item category. 
    4. Check copy control from sales document to billing document for the new item category.
       Also delivery copy control could be good to check. 
    5. Create a new distribution channel and assign it to the company structure (plant, sales
       org etc) 
    6. Extend your material(s) with views for the new distribution channel and enter the "ZXXX"
       item category group in the field for sales item category group.
    Now you should be able to create a sales order with the new distribution channel where the new item category is defaulted. Check that the sales order is completed when both billing and goods issue for the delivery is posted.
    If not check the completion rule in the new item category. 
    hope it works.
    Siddharth.

  • Sales order related invoice but invoice can generate only once PGI is done.

    Hi All,
    I have situation in project, we have to generate sales order related invoice. but Invoice should only get generate once delivery, Shipment and PGI is done.
    My Qus are listed below?
    1. Is that possible in Standard SAP?
    2. Is it possible by using any user exit?
    we don't want to do any Z thing in our project, so please suggest how we should handle this situation.
    Thanks & Regards,
    Sulabh

    Hi Prasanna,
    My client is a luxury car maker in UK and its complete make to order scenario.
    I have doubt
    1, Suppose Customer is ordered 100 PC , Suppose end user Trying to Raise the Billing based on the Order but system should check Delivery means PGI is done Or not , in that case supose Delivery is Done 50 PCS But at the time of Billing how you Come to know that Delivery is Happened 50 PC then again you back and See the Document flow of the Sale order
    *I my case there will always be one material with 1 quantity. so no issue of partial delivery*
    2. Same customer is ordered Multiple SO , at the time of Delivery You combined Multiple Sale Orders and Done the Partially Delivery and How come to know each SO Partially Qty that means Again you have to check
    There will not be a case of combined delivery also.
    3. IF Partially Done in Delivery level for Multiple SO , how can you raise the Partially Qty of those SO for Billing
    Thanks & Regards,
    Sulabh

  • PGI error related to Posting Period issue

    While delivering, when I do the PGI, it is not allowing ...it says "Posting only possible in periods 2009/02 and 2009/01 in company code 0430"... I closed earler posting periods using Tcode MMPV and opened the current period and fiscal in SPRO IMG. But still PGI is not allowed ...it still says "Posting only possible in periods 2009/07 and 2009/06 in company code 0430". Apart from closing earlier posting periods using MMPV and opening current fiscal in SPRO IMG, what else I need to do to overcome this PGI issue ?

    Hello,
    Please compare the posting periods from MMPV and MMRV
    The posting period for your company in MMRV will show the exact postings periods for your company.
    If this posting periods are not at par to MMPV you have to maintain it.
    regards,
    santosh

  • PGI problem related to CO object

    Dear Gurus,
    While doing pgi getting error as, Account 41201100 requires an assignment to a CO object.
    Not allowing to do the pgi.
    Pl help.
    Regards,
    Santosh

    Dear Santosh,
    If 41201100 is a revenue element , then account needs a profit center. Ifa cost element , then account needs a cost center.
    Please check first the field status of the account in Transaction: FS00.
    If this account requires CO object as mandatory then check whether a cost element is created or not , this error normally occurs when CO object is mandatory but relevant cost element is not created.
    You have a cost account defined in accounts determination (Transaction: OBYC), and every cost account must have a cost object associated (say, internal order, cost center, etc..).
    You must decide what is the cost object to 'receive' the cost value on the account
    Now, Look at Transaction: OKB9 - Display View "Account assignment" : Overview
    In OKB9 specify weather this cost element give impact to cost center or profitability segment. If it is give impact to cost center then assign cost center against to cost element or assign it to PA.
    OR, Alternatively -
    Go to, Transaction: KA04 and delete the cost elements for your g/l accounts.
    Best Regards,
    Amit
    Also, check with:
    [Requires an Assignment to a CO Object|http://www.sap-img.com/financial/requires-an-assignment-to-a-co-object.htm]

  • PGI Mandatory in Order Related Billing

    Hello Guys,
    Is  PGI can be made mandatory in Order Releated Billing in Billing Plan Scenario.
    If possible, please let me know the requisite customization settings.
    Thank you for hte help.
    Subhadra

    Hi,
    Goto the T.Code "VTFA".
    Select your valid combination.
    Double Click on "Item".
    Select your item category.
    Details.
    Maintain the "copying requirements" as "004".
    Save.
    If you have some other setting like this which is not present in standard,we have to go for enhancements.
    We have create a new routine/requyirement by using the T.Code "VOFM".
    Ask your ABAPer to do this.
    Regards,
    Krishna.

  • Related to delivery and pgi

    Hi,
         my scenario is when we raise a delivery in vl01n  we are doing pgi in the same screen but my scenario is it should not be like that.
         system should allow first we want to save a delivery in vl01n after that vl02n we want to do pgi.
    can any one tell the small settings where we want to do that plz.
    regards,
    shiva

    Hi moazzamjii,
    At the time of creating transaction variant for VLN01N the PGI is inactive in the first screen. its only getting active when we entered into the screen after entering the details in 1st screen. So from SHD0 when we are trying to create TRANSACTION VARIANT, we are not getting the option to make PGI invissible....
    Pls. guide...
    regards,
    boseavi

  • While pgi there is date error related to company code?

    I created a sales order and transfer order, then trying to post goods issue, I am getting this issue
    "Good movement: Error log
    Item         Material        Description            Delivery qty    UoM   Batch
    000010    E M7 053        adafdfasd                        10       PC
                   Posting only possible in periods 2002/11 to 2002/10 in company code 1000"
    Could anybody tell, where to change to solve this problem?
    Fully rewarded.
    Thanks,
    Manohar.

    Hello
    Follow these steps for the resolution of your query.
    <b>Step 1:</b>
    Check the t-code 'OMSY'
    As to what is the period. also see in controlling are what type period schedule u selected...
    In the t-code, select the the year and period  for your company as 2007 amd 01.
    <b>Step 2:</b>
    Next in the using the t-code 'MMPV' close the period for your company by entering the company code and the current date.
    Once these are done, you would be good for posting in the current period.
    Regards,
    Gauravjit.
    Reward points if the solution is helpful

  • Profit Center Problem in case of PGI after delivery

    Hello All,
    The problem is related to Stock Transfer Order (STO) between two plants which is as follows -
    When a PO is raised for Material 1 the Profit Center is maintained in the material master in the Supplying Plant A but not maintained in the material master for Material 1 in the Recipient Plant B.After Delivery & PGI when posting is checked it is observed that In case of Supplying Plant A inventory a/c is getting credited reflecting the assigned profit center while in case of Recipient Plant B inventory a/c  is getting debited but the profit center field remained blank.Is there any configuration possible to check/restrict the PGI posting when the profit center is not getting reflected in the recipient Plant without making the profit center field as 'mandatory' in the General Plant & Storage Data of the Material Master??
    Please suggest at the earliest.
    Thanks & Regards
    Priyanka Mitra

    Hello Sangram,
    thank you for your fast reply.
    It is not about the amounts. They are correct.
    I got confused regarding the change of the profit center numbers on the level of the GR/IR.
    KR
    Thomas

  • Field and Table for PGI status updation

    Hi All,
    I want to know in which field and table the PGI status will get updated.
    i.e. once we do the PGI for a delivery in which table will this PGI status gets updated.
    Thanks in advance for help.
    Harini

    Hi Harini,
    In Table VBUK you 3 different status related fields for  sales documents.
    Over all status field name GBSTK ( here it gives the total status of praticular sales document) here you see options
    A  Not yet processed      ( This means its complete open)
    B  Partially processed     ( This means the sales doc is partially processed)
    C  Completely processed  ( This means the sales doc is completly processed)
    Delivery status  and over all delivery status field name LFSTK and LFGSK respectively, these 2 fields will be same always ( here it gives the total status of praticular sales document) here you see options
    A  Not yet processed      ( This means its completly  open)
    B  Partially processed     ( This means the delivery doc is partially processed)
    C  Completely processed  ( This means the delivery doc is completly processed)
    So overall status can be  different then delivery or overall delivery status.
    If sales document has 100 quantity for 1 material, if delivery is done for 50 quantity.
    Then over all status field name GBSTK will be B  Partially processed and delivery and overall delivery will be C  Completely processed  .
    Regards
    vK

  • In STO process , PGI to be made mandatory

    I wish to make PGI mandatory for STO process..Steps are as follows:
    -Create PO.-.ME23n
    -Create Replenishment Delvery -VL10B
    -Do PGI -.VL02n>PGI
    -Create Proforma Invoice-VF01
    -Create Excise -J1iin
    In order to achieve that , in VTFL copy control  for  NL to F8 , I changed Copying Req ( at header) to 003 from 009.
    But somehow I am not able to create proforma invoice VF01 ...even after doing PGI.
    Message is that there is no delivery related items.

    Hi Ramesh
    In copy control VTFL for NL->F8, I made the copying requirement at header as '003' ( replacing 009 as was the original).
    -Also,as per earlier suggestion, I changed the Copying requirement at Item level ..i.e for NLN to 034 ( replacing 010 as was original).
    Next I ran the cycle
    a) Created a PO. ..ME21n
    b) Created replenishment delivery .VL10B
    c)Picked the Delivery Quantity ..VL02n
    d) Tried ..Generating Proforma invoice .of .type F8 .in  VF01 . It didn't allow.
    This was fine and satisfy my requirement of not being allowed to do invoicing before PGI.
    Next ....
    e) Did PGI for that delivery.
    f) Tried to generate proforma invoice ..type F8 . But the system is not allowing me to do so.
    Processing status-Incorrect.
    Error log..The document is not relevant for invoicing.
    What is the way out?
    (As a fyi..without the changes I did  in copy control, I was able to generate Proforma invoice after PGI.earlier)

  • Proforma Invoice program ---delivery related with billing block on SO

    Hi,
    I need some help on Profoma Invoice--delivery related.
    I have created a Sales order with Billing block, then created delivery and picking,handling but no PGI.
    Now I am trying to create a Proforma invoice for delivery (before PGI ),
    I can  create the Proforma invoice manually using VF01 by selecting the document type and by delivery number input in the docs selected.
    But I want to create the proforma for the above mentioned scenario using batch job, I have tried both RV60SBAT and SDBILLDL but both of them are not working.
    Both the program are fetching delivery for proforma creation if PGI is done (Even though the billing block is set on Sales order)
    or Billing block is not there on Sales order if PGI is not done.
    Thanks and Regards,
    Ananda

    Hi,
    The programs below are for the specified transactions below.
    "SDBILLDL" program is for  the transaction "VF04" which is for creating the Final invoice(Original Invoice) i.e. Billing due list.
    Where as "RV60SBAT" is for the T.Code "VF06" which is for creating the invoice in background.
    So these two programs will not create proforma invoices.
    Incase if you have only proforma invoice not final invoice,then maintain this proforma invoice type in "VOV8" T.Code under order/delivery-related billing.thwn you can create Proforma invoice by using Vf04/VF06(By using these programs).
    Regards,
    Krishna.

  • Restrict proforma invoice without doing pgi in STO(same company code)

    Hi Gurus',
    I am creating STO (same company code) from Exciseable Plant to Non Exciseable Plant.
    For that i am creating ME21N> VL10B>VL02N(PICKING & PGI)>VF01(Proforma Invoice)>J1IIN>
    Now problem arises ---
    I am able to create Proforma Invoice without doing PGI.
    Now i want to restrict proforma invoice creation with out doing PGI.
    What config require for this.
    Regards
    Santanu

    Check your copy controls fromT. Code: VTFL - Copy-Control Settings b/w Delivery-to-Pro forma  say, F8 -- LF
    Settings at Header for the combination equal copying requirements 003 Header/dlv.-related and at Item category copying requirements 004 Deliv-related item

  • Period close in MM problem in PGI SD

    Hi,
    I have problem at the time of PGI!
    I have close all the period  by mmpv from 01/2006 to 01/2010 but in actually I have to post entry in 01/2010. To post entry in 01/2010 I have open period by the process of deleting the company and plant assignment then I have open the period . in between I have also tried that entering the parameter mmpv_read_note I donu2019t which one is worked out but after this all I get the message as material account determination is not determine of material then I have done that while doing this i think I have change valuation class from simulation (not sour ) and now I doing PGI it shows error as Period 001/2010 is not open for account type S and G/L 894025( I have checked mmpi it shows the current period is 01 2010 and previous period as 12 2009.
    Gajanan

    Hi,
    After making OB52 settings, you can goto MMRV and click on
    "ALLOW posting in previous period". Even though you have closed 01/2010, then also system will allow you to post.
    Secondly an error related to M is again from OB52. Against your variant, you will have many entries in OB52, you need to open all periods or just open the period with entry "*".
    Regarding the consumption account error, it seems, some settings in transaction OBYC are missing for your valuation class.
    Regards
    Karan

Maybe you are looking for

  • Changing to power-saving results in losing picture on the screeen

    Hi, Product name: HP Pavilion dv6-6093ex Entertainment Notebook PC support. Product number: LM610EA#A2N When changing to power-saving GPU, then Radeon got disabled and no picture on the screeen is shown. I really had been facing a problem with my Win

  • "OK" button doesn't save parameters in Customization Form

    Hi, In some portlets of the portal that I am developing, the "OK" button of the customization form doesn't save the portlets parameters. For an effective change in the portlet parameters we must press the "APPLY" button first. This behaviour only hap

  • Legally Unlocked 3G - how can I use when vacationing in USA?

    I have a 3G iPhone, legally unlocked by Optus (standard in Australia). I'm going to be visiting the US for a vacation shortly, and want to use my phone for both US phone calls as well as data. Obviously I don't want/need some kind of permanent subscr

  • Weblogic 9.2 - Problem with Connection Pool not releasing resources

    We have a third party application that is running Weblogic 9.2 and has a connection pool to a SQL 2005 db for queries within it's batch process. What I have noticed is that it does not seem to be releasing SQL cpu back after the batch and this is cau

  • MS SQL Server in Java/J2EE Environment

    Dear all, I wanted to understand pros and cons of choosing MS SQL Server in Java/J2EE environment. Could anybody share some thoughts or web resources? Personally I hate using MS SQL Server for Java/J2EE based applications. But one of my clients wante