Problems in Creation of Limit based PO's

Dear Forum,
  As per my req I am creating a limit Based PO with reference to limit based PR using the FM BAPI_PO_CREATE1 in 4.6c.
I encountered so many errors like 'PO contains faulty item data' 'Assign acc data correctly'. I searched max in forums for solution. But I have not come across the limit based PO creation solution. I fcould found so may service based PO creation.
Checked may notes.
request you all to provide the solution of creating Limit Based PO (which structures I need to update)with reference to PR.
Kindly find my code below and provide me the solution.
  v_ponum = p_i_eban_banfn.
  v_pitem = p_i_eban_bnfpo.
  CONCATENATE v_ponum v_pitem INTO v_fnum.
  header-po_number  = p_i_eban_banfn.
  header-comp_code  = c_comp.
  header-doc_type   = p_i_eban_bsart.
  header-creat_date = sy-datum.
  header-vendor     = c_lifnr.
  header-purch_org  = c_org.
  header-pur_group  = p_i_eban_ekgrp.
  header-vper_start = sy-datum.
  header-vper_end   = c_date.
*populate header flag.
  headerx-po_number  = c_x.
  headerx-comp_code  = c_x.
  headerx-doc_type   = c_x.
  headerx-creat_date = c_x.
  headerx-vendor     = c_x.
  headerx-purch_org  = c_x.
  headerx-pur_group  = c_x.
  headerx-vper_start = c_x.
  headerx-vper_end   = c_x.
*POPULATE ITEM DATA.
  item-po_item     = p_i_eban_bnfpo.
  item-preq_no     = p_i_eban_banfn.
  item-preq_item   = p_i_eban_bnfpo.
  item-acctasscat  = p_i_eban_knttp.
  item-po_unit     = c_uom.
  item-short_text  = p_i_eban_txz01.
  item-net_price   = p_i_eban_preis.
  item-po_unit_iso = c_uom.
  item-plant       = p_i_eban_werks.
  item-quantity    = p_i_eban_menge.
  item-tax_code    = c_a0.
  item-vend_mat    = p_i_eban_idnlf.
  item-item_cat    = 'B'.
  item-pckg_no     = '0000000001'.
  APPEND item.
*POPULATE ITEM FLAG TABLE
  itemx-po_item     = p_i_eban_bnfpo.
  itemx-plant       = c_x .
  itemx-preq_no     = c_x.
  itemx-preq_item   = p_i_eban_bnfpo.
  itemx-acctasscat  = c_x.
  itemx-quantity    = c_x .
  itemx-vend_mat    = c_x.
  itemx-tax_code    = c_x .
  itemx-po_unit     = c_x.
  itemx-short_text  = c_x.
  itemx-po_unit_iso = c_x.
  item-item_cat     = 'X'.
  itemx-pckg_no     = 'X'.
  APPEND itemx.
*POPULATE SCHEDULE TABLE
  WRITE sy-datum TO gv_inv_date.
  poschedule-po_item       = p_i_eban_bnfpo.
  poschedule-delivery_date = gv_inv_date.
  poschedule-preq_no       = p_i_eban_banfn.
  poschedule-preq_item     = p_i_eban_bnfpo.
  APPEND poschedule.
*POPULATE SCHEDULE FLAG TABLE
  poschedulex-po_item        = p_i_eban_bnfpo.
  poschedulex-del_datcat_ext = c_x.
  poschedulex-delivery_date  = c_x.
  poschedulex-preq_no        = c_x.
  poschedulex-preq_item      = c_x.
  APPEND poschedulex.
populating Account table
  t_acc-po_item    = '00010'.
  t_acc-serial_no  = '01'.
  t_acc-gl_account = '0621150001'.
  t_acc-costcenter = '0020011813'.
  APPEND t_acc.
populating Account flag table
  t_accx-po_item    = '00010'.
  t_accx-serial_no  = '01'.
  t_accx-po_itemx   = 'X'.
  t_accx-serial_nox = 'X'.
  t_accx-gl_account = 'X'.
  t_accx-costcenter = 'X'.
  APPEND t_accx.
populating limit table
  t_limit-pckg_no    = '0000000001'.
  t_limit-limit      = p_i_eban_preis.
  t_limit-no_limit   = ' '.
  t_limit-exp_value  = p_i_eban_preis.
  t_limit-no_frlimit = 'X'.
  APPEND t_limit.
Populating srvaccessvalues table
  t_serv_acc-pckg_no = '0000000001'.
  t_serv_acc-line_no = '0000000000'.
  t_serv_acc-serno_line = '01'.
t_serv_acc-percentage = '100.0'.
  t_serv_acc-serial_no = '01'.
  APPEND t_serv_acc.
*POPULATE CONDITION TABLE
  pocond-itm_number = p_i_eban_bnfpo.
  pocond-cond_type  = c_zbpr.
  p_i_eban_preis    = p_i_eban_preis / 10.
  pocond-cond_value = p_i_eban_preis.
  pocond-change_id  = 'I'.
  APPEND pocond.
*POPULATE CONDITION FLAG TABLE
  pocondx-cond_type  = c_x.
  pocondx-itm_number = i_eban-bnfpo.
  pocondx-cond_value = c_x.
  pocondx-change_id  = c_x.
  APPEND pocondx.
**bapi create call
  CALL FUNCTION 'BAPI_PO_CREATE1'
       EXPORTING
            poheader          = header
            poheaderx         = headerx
       TABLES
            return            = return
            poitem            = item
            poitemx           = itemx
            poschedule        = poschedule
            poschedulex       = poschedulex
            poaccount         = t_acc
            poaccountx        = t_accx
            pocond            = pocond
            pocondx           = pocondx
            polimits          = t_limit
            posrvaccessvalues = t_serv_acc.

Hi Venkat Prasad
As you told that the query is on multi provider and the view is not allowing to declare/define filter value
Just drag the infoprovider info object avilable under packet dimension to rows and right click on it restrict by selecting the name of the info provider when u right click it will show you the option of restrict once u click on it,it will takes to u a pop up where you can able to see the name of info providers and you specify according to it and finally in the display of results if you dont want to to display the info provider name then just right click on the 0infoprovider object under rows go to properties then choose hide option under display.
Hope its clear a little..!
Thanks
K M R
**Assigning points is the only way of saying thanks in SDN***
>
venkata prasad wrote:
> Hi K M R,
>
> Thanks for ur quick response.  Most of the Infoobjects are common for both infocubes. I didn't understand this sentense "retrict the value with the infoprovider which values you are trying to view".
> Please explian elaborately how to restrict the values speicfic to infoprovider under rows.

Similar Messages

  • Problem in creation of HUs through FM HU_REPACK and HU_POST

    Hi Experts
    This is regarding the problem in creation of HUs with function modules HU_REPACK and HU_POST.
    I am sending two Unique Sources HUs with single destination HU for the same material and batch into HU_REPACK and it shows that it is successfully repacked and soon as the HU_REPACK function module passess I have called HU_POST without any parameters except messages..As the data will be picked up auomatically from the internal memory as these function module are related same function group.
    Even the HU_POST FM passes successfully and also it creates a Transfer order but the problem is that THe HU is created with the MULTIPLE LINE ITEMS for the same material and Batch which should not be done at all .
    Please find the example of the HU created in the system
    0 10020000038479 S-DISP 1 EA S DISPNSARY
    1 0024632192 000004 810062 0.250 KG L0533A4172 Lactose
    1 0024632192 000004 810062 24.900 KG L0533A4172 Lactose
    Material is 810062
    Batch is L0533A4172
    Can you please assist me how to acheive single line item HU when we are trying to repack the data for same material and batch as it does while you create the HU through Manual processing i.e HU02 etc

    Hi Sailaja,
    I have similar requirements like this before with HU_PACKING_AND_UNPACKING FM. It was a tough debugging before I came up with the right solution. Unfortunately, I was not able to document that code..
    But here is what I have been doing.
    Youre on track with the solution below, never use BDC as it will only limit the Handling units that you wish to put into.
    The function modules that starts with V5_ plays important role as you need to initialize the global variables and table of this function group with values before calling HU_PACKING_AND_UNPACKING FM
    Debug inside the Function module, and look for the FM that returns SY-SUBRC <> 0 then set a breakpoint.
    Restart the program then debug inside that FM again (and I do not want to go further on the details, I give you the presumption of literacy)
    You will find some items that has no value, try to initialize everything by utilizing the FM for this function group V51S.
    Happy Debugging.

  • Credit Limit based on Open Items only.

    Dear Friends,
    Is it possible to set credit limit based on Open Items only ( Document Type RV)
    If the credit limit is crossed for accounting documents not yet cleared, then system should allow creating sales order, but block any deliveries further.
    Just to add this, we are using Oldest Open Item, to make sure system blocks deliveries if even one Billing document is overdue for payment.
    << Moderator message - Please do not promise points >>
    << Moderator message - Everyone's problem is important. Please do not ask for help quickly. >>
    Regards
    Trupti Deulkar
    Edited by: Rob Burbank on Dec 16, 2010 4:02 PM

    Hi,
    AT FD32,
    For respective customers Credit Limit should be made 99999999....(i.e maximum)
    Goto OVA8. Select the respective Credit Control area, Risk category & Customer Group.
    tick-> OpenItems
    Max.Open items 100% and Nodays Open here you can maintain the grace days (after the payment term limit expires) is allowed to do the transaction for respective customer.
    if grace days are '0', then as soon as payment term limit is expires system will block the transactions selected.
    Thank You,
    RB.
    Edited by: RB@007 on Dec 16, 2010 3:12 PM

  • Problem in  creation of Customer Master

    Hi gurus,
    I am facing problem in creation of customer master.
    I have created a account group zz01 copying from 0001.which has internal no. assignement for the customer.
    Now i am trying to create a customer master, at partner functions level under sales area data...  the system is asking for the no. for each partner functions.. when i tried to manually enter, the system is not taking any number nor it is letting me save the data.
    Please help me out in acertaining,  what could be the issue.
    regards
    Gupta
    [email protected]

    its due to the number ranges that is specified in the partner determination ... chech what is the number range assigned in the parner determination ,,, so once u check that u have to manually enter the number between that range only .. this should solve ur problem...
    path to check the number range is as below :
    spro-img-logistic generalbusiness partner-customers---define account groups and field selection ---    
    at this point click position button at the bottom and give ur account group .. select ur account group and click detail button .. now inside that u can see the specified number range .. dafault is 08 ( means u can specify between 400000 to 499999)..
    and some times  u may not have defined number range... check urs and create accordingly ... this should solve ur problem...
    rewards if solved ..
      thank you
    madhan

  • Problem in creation of User while validating accountId

    Hi all,
    Im creating an accountId based on the Firstname and Lastname of an employee in a form. A rule has been written for the creation of accountid based on the combination of First & Last names, which is placed in the Expansion tag of the accountId field. The accounted is in hidden format and the Rule works fine.
    The Page gets refreshed when the Lastname is entered & the accounted gets calculated.
    When some invalid characters are placed in the names a validation error shows up. But the accounted gets calculated with those junk characters and stores in Idm . How can I avoid those junk values in the accountId field?
    Can any one help me with this issue?

    Case closed . My issue has been resolved

  • Problem in creation of SOAP massage

    hi
    I am using JDeveloper (version 11.0) to create the proxy classes from WSDL
    but i am getting an exception as following
    SOAPFaultException
    this exception indicate that there is some problem in creation of SOAP massage internally
    so can anyone help me to know what is the problem?
    If u want to see the code then i can display here.
    thanks in advance

    its due to the number ranges that is specified in the partner determination ... chech what is the number range assigned in the parner determination ,,, so once u check that u have to manually enter the number between that range only .. this should solve ur problem...
    path to check the number range is as below :
    spro-img-logistic generalbusiness partner-customers---define account groups and field selection ---    
    at this point click position button at the bottom and give ur account group .. select ur account group and click detail button .. now inside that u can see the specified number range .. dafault is 08 ( means u can specify between 400000 to 499999)..
    and some times  u may not have defined number range... check urs and create accordingly ... this should solve ur problem...
    rewards if solved ..
      thank you
    madhan

  • Problem in creation of STO(stock transport order)

    hi all SAP gurus,
    i am facing the problem in creation of stock transport order with ME21N code. i m getting the error msg of "Not possible to determine shipping data for material in STO "
    i have checked the stock transport order setup in customization. but not getting the clear idea to come out from this problem.
    if anybody have the idea of " how to do the customization of stock transport order setup, pls. let me explain.
    thnx in advance.
    rgrds,
    rajesh

    Hi Rajesh,
    when ur creating STO with UB doc type, then you have to maintain material in both the plants.
    Regarding the error which is comming for you, you have to check the settings at
    SPRO- IMG- MM-Purchasing-Set up stock transport order- Assign delivery type & Checking rule
    here for document type UB and your supplying plant-XXXX select nothing for Dlv type(delivery type) and chr - 01 and after this save.
    After this you create STO as you are doing and see what the system is prompting.
    For any further clarification let me know.
    Regards,
    NJ

  • Problem in Creation of Handling Units through HU_REPACK and HU_POST FM

    Hi Experts
            This is regarding the problem in creation of HUs with function modules HU_REPACK and HU_POST.
    I am sending two Unique Sources HUs  with single destination HU for the same material and batch into HU_REPACK  and it shows that it is successfully repacked and soon as the HU_REPACK function module passess I have called HU_POST without any parameters except messages..As the data will be picked up auomatically from the internal memory as these function module are related same function group.
      Even the HU_POST FM passes successfully and also it creates a Transfer order but the problem is that THe HU is created with the MULTIPLE LINE ITEMS for the same material and Batch which should not be done at all .
    Please find the example of the HU created in the system
        0     10020000038479     S-DISP     1     EA          S DISPNSARY
        1     0024632192 000004     810062     0.250     KG     L0533A4172     Lactose
        1     0024632192 000004     810062     24.900     KG     L0533A4172     Lactose
    Material is 810062
    Batch    is L0533A4172
    Can you please assist me how to acheive single line item HU  when we are trying to repack the data for  same material and batch as it does while you create the HU through Manual processing i.e HU02 etc

    *

  • Problem in  creation of any purchasing doc  against plant 0001

    Hi MM Experts,
    I am facing problem in creation of any purchasing doc (i.e: PR or PO) against plant 0001.This is available in the system and assigned to company code. I can create Material master with this plant 0001 and copy to create new plant. But Can't create any pur doc? also in plant list in pur doc showing the rest of the plant except plant 0001.
    I m working on ECC 6.0.
    Regards,

    Dear Sairam/Steve,
    I got solution for my problem. The problem is that address number not maintained for 0001 plant.This solution available from the following note. please go thro...
    Note 433997 introduced a new logic for the F4 help for plants.
    solution proposed in note 433997 :
    To maintain the address number of a plant subsequently, startTransaction OX10 for the affected plant ('Change plants') view. Click the 'Address' pushbutton (envelope) or (shiftF5). In the subsequent screen ('Change address'), press Enter or click the 'Copy' pushbutton and save using the 'Save' pushbutton (disk) or (CtrlS).
    Then the plant should have an address number and should also be displayed in the search help.
    Thank you all
    Regards,

  • Problem in creation of order relevant - intercompany invoice

    Dear all ,
    I am facing problem in creation of intercompany invoice which is sales order relevant . Please tell which settings is required to resolve this as all the settings has been made.
    Send ur email id so that the problem can be described if required....
    Thanks .........

    Hi,
    while creating inter company sales order give the delivering plant in the overview screen. so that enables the system and tells that that is inter company sales order . u can verify whether the system takes which sales order whether it is standard order or inter company? by going to the conditions in the item overview in that u can find the "pi01" or "pi02" and select the delivery details there u can find the delivering plant which is supplying plant and the shipping point of the supplying plant..
    in case of doubt u can mail me at [email protected]
    Reward if Helpful..
    Regards,
    Praveen Kumar.D

  • Problems with creation of catalogue XPGrpwise and temporary

    Problems with creation of catalogue XPGrpwise and temporary files.
    I use GroupWise 8.01 and WinXP (SP2), OpenOffice 3.1.
    Why at opening files in Library, temporary files are not created in catalogue C:\Documents and Settings\Jon Smith\Local Settings\Temp\XPGrpwise, and created in catalogue C:\Documents and Settings\Jon Smith\My Documents. That causes problems. How to change a situation that worked as it is necessary.
    Catalogue XPGrpWise is created and leaves duly in catalogue C:\Documents and Settings\Jon Smith\Local Settings\Temp\.

    Cvetaev,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Problem with Creation of TemSe file...

    HI Experts...
    Here im facing the problem with creation of # 3 rd Quarters
    Temse file.when ever i use the tcode pc00_m40_f24 and entering the details of quater 3 ...here im showing up the ABAP Runtime error."""Overflow for arthimitic operation Type P in program  HINCF240"".
    What could be done to overcome the problem.Please advice.
    Regards,
    V Sai.

    Hi experts/Sriram...
    Thanks for the reply.
    The -
    >showing the line....
            QS80_TAB-DEDMT=QS80_TAB-DEDMT+S80-DEDMT
    Where should we change to get rid of this runtime error.
    Here in my quality everthing is fine and we have uploaded patches in quality upto recent one sp80.But in prod. the patchlevel is sp71.Will it be the reason.
    Please advice me on this as i have to complete the issue of F16.
    Thanks and Regards,
    V Sai.

  • There is any Performance problem with Creation of many Y or Z  Programs.

    HI,
    There is any Performance problem with Creation of many Y or Z  Programs. plz give clarity regarding this to me......
    regards
    ganesh

    Ganesh,
    Can you please mention the context and the purpose of creating these custom program.  And application are you referring to?
    Regards,
    Rohit

  • Problem with creation of jar with external libraries

    hi guys, I've no problem with creation of jar,i use this command:
    jar -mcf MANIFEST.MF NameFile.jar *.class
    my file manifest is this:
    Manifest-Version: 1.0
    Created-By: Me
    Main-Class: NameFile
    Now,I've to make a jar file,but i have to use some external libraries in jar format.
    I've read on sun tutorial and i've added to manifest this line:
    Class-Path: dt.jar formshelp.jar formsrt.jar jh.jar looks-1.3.1.jar substance.jar TableLayout.jar
    But the jar file doesn't work, neither with a double click nor with console...
    Someone can help me?Thanks!:)

    Darkweb wrote:
    sorry but,the external libraries that i use are in .jar,what i've to do to include these libraries in my jar?One of 3 things
    1) Take them out of the jar, and put them in a folder, preferably a folder in the same folder as the jar
    2) Write a custom classloader to load classes from nested jars
    3) Extract the contents of all the dependency jars, and jar them all up with your own code
    The first is almost always the most preferable, the second one is doable but brittle and resistent to updating dependencies ( you have to release everything for any changes you need, even if it's not a change in your own code ) and the third one is tedious and suffers from the same robustness problems of the second, not to mention that a lot of software licences prohibit you from actually doing it. Do the first one, it's by far the most common and easiest to maintain. I really wouldn't advise the third option, ever, though. Any activity that reduces the modularity of your application is ill-advised

  • Problem during creation of shipment document and shipment cost document

    Hi
    My client  facing problem during creation of shipment document and shipment cost document at the time of Batch Job
    Delivery no 897654: goods issue on 30.11 at 13:22. Shipment on 30.11 (VT01N).
    Shipment costs on 1.12 (VI01).
    the problem is the shipment document get created on 30.11.2010 but the shipment cost document get created on 1.12.2010
    pleas advice.

    Hi,
    Please check the batch job processing log.
    As per my understanding, business requires to generate the Shipment & Shipment cost documents immediatley.
    However there is some time between the documents creation time. I dont see any issue in the data or problem in the delivery docs Because system will not generate the shipment docs after 1 or 2 days if there is an issue with the data . There must be problem in the Batch Job.
    Analyse the batch jobs and timing of the job process.
    Let us know your feedback...
    Best Regards,
    MKumar

Maybe you are looking for