Setting the No Limit flag in BAPI_PO_CREATE1

Dear All,
I created an ABAP to execute BAPI_PO_CREATE1 in a loop to create multiple PO's and I am encountering a wierd problem.  I set both no_limit & no_frlimit flags to 'X' in structure bapiesuhc when creating a PO.  It appears only the first PO has both "no limit" checkboxes set when I look up the PO in ME22 under the Service specifications screen.  Any subsequent PO's created do not have the "No limit" checkbox set in the overall limit section. The other "Nolimit" checkbox under the the "Other Limit" tab is  being set correctly.
I do a BAPI_TRANSACTION_COMMIT after each BAPI call and the code to load the Bapi structures each time are the same. I am am at a loss to explain what happened.
Any ideas out there?
Thanks!

Try this... and you are good to go!
Flag the field ITEM_INTVL with X in the structure BAPIMEPOHEADERX. But do not pass any value for this field in BAPIMEPOHEADER.
By doing this, PO is created with user defined item numbers instead of standard config sequence.
Check this note 418683.
Thanks,
SKJ

Similar Messages

  • Dynamically set the upper limit of a numerical control

    I want to dynamically setting the upper limit of a numerical control. The maximal value that is allowed to input is calculated by the code, so that if the value input by the user exceeds the upperlimit,  a warning comes out and the input value is automaticaly reset to zero.
    I wired the calculated upper-limit to the property node of the numerical control using ''Data Range > Maximum" property, but it does not work as I expected.
    Anyone has suggestion on this? Thanks a lot.

    Can you attach your code?
    Dejun wrote:
    ... but it does not work as I expected.
    I cannot read your mind. What do you expect? What to you see instead?
    Overall, you are in a catch22 scenario if I understand you right. If you set the max of the control to coerce to a certain value and you enter a larger value, it will be coerced to the upper limit and the code does not see the original out-of-range value and you cannot successfully test it with a comparison operation. Maybe you can set it to "ignore" instead of "coerce" or not even set an upper limit. Simply use "in range and coerce" and reset the value under the desired conditions (e.g. via  a local variable) before handing it to the rest of the code. You could even wrap this into an xcontrol.
    LabVIEW Champion . Do more with less code and in less time .

  • Set the final invoice flag for a purchase order

    I want to know how to set the final invoice flag for a purchase order.
    I tried BAPI_PO_CHANGE but it is giving me error.
    Help me.

    Hi,
    I think ur BW report shows the cleared Invoice no. The second invoice no. might not have been extracted to BW system. Check your order no. in Cube whether it has two invoice nos.
    Regards,
    Suman

  • How to set the credit limit

    Hi,
    We have a reqirement to set the credit limit evaluated by the credit department which needs to be approved.
    Credit Supervisor 100,000
    Credit Manager 150,000
    Treasurer 1,000,000
    CFO 569000 etc....
    How to make this settings.

    Hi Vijay,
    Your issue is related to the Credit management:
    Credit Controlling Area:The credit control area is an organizational entity which grants and monitors a credit limit for customers.
    Overall Credit Limit we are maintaining here.
    SPRO:Enterprise Structure >Definition>Financial Accounting-->Define Credit Control Area
    Customer credit limit:Individual customer wise we can maintain Customer limit, FD32 (Master data)
    As per your requirement each customer you can set limit.
    Credit Supervisor 100,000
    Credit Manager 150,000
    Treasurer 1,000,000
    CFO 569000 etc....
    Apart from this we need to configure from SD like... Risk category,Credit groups,Define Automatic Credit Control etc...
    Major integration with FI-SD, as per the sales process we can make settings..!
    Rds,
    Anil

  • TS1372 my daughter took my ipod and set the volume limit and she put a code but dont know what she put and shes 2 years old ,can you help

    my daughter took my ipod and set the volume limit and she put a code but dont know what she put and shes 2 years old ,can you help

    You'll have to connect the iPod to your computer and restore it to factory settings in iTunes.  Then resync your music etc.

  • Workflow: Setting the high priority flag

    Hi,
    Does any one know how to set the priority for the email notification?
    (Eg: In microsoft outlook red exclamatory mark for high priority)
    I tried the option priority in notification and message but its not giving the desired output(i.e Flag).

    I know you can set the priority on the task.
    If you click on the User step and go under Routes and Priority, you can change the priority and you will see a different icon in Workspace.
    I'm not sure this will change the priority on the email though.
    Jasmin

  • Set the Unicode check flag for all programs.

    Hello friends,
    We are now upgrading our ecc6 system to unicode. The problem is that all our programs
    are not flaged for unicode checks and there for have syntax errors. I now how to mark
    this flag for a single program but how can I do it to all programs?
    I realy need your help.
    Thanks in advance,
    Gershon.

    Hi Gershon,
    In general, transaction  UCCHECK is designed to cover all Unicode adaptations needed. The guide called
    u201CRequirements of ABAP Programs in Unicode Systemsu201D, which can be found via:
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b02d3594-ae48-2a10-83a7-89d369b708e5
    gives customers a comprehensive description of possible errors. Please also have a look at the docu provided directly in transaction UCCHECK. In addition, SAP notes 1322715 (search for UCCHECK) and 1319517 (point 8.) might be helpful.
    Please note that customer programs have to be adapted - simply setting the Unicode flag works only for the objects with a green traffic light in UCCHECK .
    Best regards,
    Nils Buerckel
    SAP AG

  • FM/Bapi to set the Equipment deletion flag

    Hi guys!
    Does someone know a FM or Bapi to set the deletion flag for an equipment.
    So it's should be the same functionlity like in IE02 --> Equipment --> Functions --> Deletion Flag --> set
    thanks!

    easiest way:
      CLEAR: bdcdata, bdcdata[].
      PERFORM bdc_dynpro      USING 'SAPMIEQ0' '0100'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '/00'.
      PERFORM bdc_field       USING 'RM63E-EQUNR'
                                    p_equip.
      PERFORM bdc_dynpro      USING 'SAPMIEQ0' '0101'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=LVSE'.
      PERFORM bdc_dynpro      USING 'SAPMIEQ0' '0101'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=BU'.
    * Call transaction for marking equipement as deleted
      CALL TRANSACTION 'IE02' USING bdcdata
                              MODE tp_mode
                              UPDATE 'S'            
                              MESSAGES INTO messtab.
      CLEAR: bdcdata, bdcdata[].

  • EKPO-EGLKZ - Setting the "Final Delivery Flag" on a transport order

    When entering a goods issue to a transport order (Movement type '351'), the Final Delivery indicator cannot be checked, because it does not appear on the screen.  I looked in configuration and I cannot find where to 'turn on' that field on the screen.   Does anyone know how to 'turn on' that field?
    In a business example, Plant #1 created a transport order for a  qty of 3000 feet of cable from Plant #2.  When Plant #2 issues the cable to the transport order, they will only be issuing 2900 feet, because that is all they have on that reel.  They will not be issuing any further cable.  They want to consider this item complete.  How does Plant #2 indicate this will be the final delivery.  Can they do that from the  movement type 351 screen?

    if you are talking about stock transport order, you can set the final delivery indicator for that particular STO as follows:
    Go to me22n, give your STO number, in the item data below there is a tab called delivery, inside that, there is a checkbox against final delivery, you can check that box for that particular material in the STO, but once you check it, you can do further goods issue for that material.......
    Reward, if helpful....
    Thanks,
    Noopur

  • How to set the time limit to execute shell script

    I am using Runtime exec() method to execute a shell script
    if the script hangs for long time infinitely then how to get the control
    return to the program.
    Thanks in advance

    rmi_rajkumar wrote:
    let me explain with an example
    script name is test.sh
    Runtime.exec("test.sh") this will start a new process
    if (proc.waitFor() == 0) {
    try {
    InputStreamReader isr = new InputStreamReader(proc.getInputStream());
    BufferedReader br = new BufferedReader(isr);
    String line;
    while ((line = br.readLine()) != null) {
    outputBuf.append(line).append(ConfigOptions.getLineModeStr());
    } catch (IOException ioe) {
    if test.sh did not exit and hangs with no response
    in this case proc.waitFor() will not execute try catch the control will remain if statement
    my question is insteadof waiting indefinitely need to set a time out say 1 hour and kill the process that executed the scriptYou really need to read the article in the link given by another poster. Your code will not work correctly because you are waiting for the process to end before reading the stream and the processes may never end because you are not reading the stream until after it ends (you need to use muli-threading as explained in the article). If the process really did hange you could probably use destroy(); but, for now, the real problem is your code.

  • Setting the 'reportable' flag for a very large ODS

    Hello Community,
    I am working on a very large BW system (6 Tb), and we recently have the need to set the 'BEx Reporting' flag on some very large ODS objects.
    It was my impression that setting this flag would be easy to do.  But the transport that contains this flag for six large ODS objects has already been running for more than 16 hours.
    Can you tell me, what actually happens in the database when the 'BEx Reporting' flag is turned on for an ODS ?
    Thanks !
    Keith

    Hello Bhanu,
    Thanks for the quick response.  Are you able to provide some more information ?
    are the SID values created in a new SID table ?
    if the ODS was already very large, then would you expect the new SID table to also be very large ?
    what about the case if a SID value already exists for the characteristic ?
    Thank you !
    Keith

  • How can i set the signature to not allow to delete?

    I tried to set the widget annot flag's 8th bit to 1.
    This bit is used to lock the annot,but it has no effect. I can delete the signature either.
    If i want to user can not delete my signature ,how can i accomplish this?
    Thanks!

    Also the NoZoom does not work.
    If i set NoZoom flag,the signature appearance can be zoomed still,but the signature position and dimension is not change,so when the appearance is zoomed, may be only a part of appearance can be show.

  • Unable to type the maximum limit in scientific notation in a plot

    Hi,
    I am trying to plot some data that I measured in scientific notation (2E-19, etc) and I have tried everything to manually set the maximum/minimum limits of my plot in either axis without success. I have typed 2E-19 and even the number will all the preceding zeros, but I keep getting a "0" in the field. Does anyone know how to do this?
    Thank you!

    Thanks for the reply. Here is an example. I need to set the maximum limit of the y axis to 4E-19 (box highlighted in blue in the format bar of the screen shot)

  • How can you take off the volume limit?, How can you take off the volume limit?

    How can you take off the volume  limit on iPod touch ?

    Which "volume limit" do you mean?
    All iPods have a volume limit feature that you can set yourself and on your iPod, go into Settings/Music/Volume Limit. There, you can set the volume limit to maximum, which is the same as turning it off.
    However, if you mean the EU (European Union) volume restriction, on all iPods sold inside the EU, you cannot turn that off.

  • Where is the Auto PO flag in MM03?

    Hi,
    I am working with ME59 Transaction. But i found that to create an automatic PO, we need to set the Auto PO flag in MM03 Purchasing view.
    Can you please help me locate it?
    Thanks,
    cs

    Hi ,
    In MM03 Purchasing tab General Data section ,,we have the check box Autom.PO
    Please check this...
    Regards,
    bharani
    Edited by: seethaRamaiah bharani on Sep 29, 2008 2:22 PM

Maybe you are looking for

  • HT1495 how to restore iphon-without backup, after it synchronization from ipod

    how to restore iphon-without backup, after it synchronization from ipod

  • Only allowed 1 simple list of web portal?

    Hi all, I have 4 simple lists as user prompts for a Service request. From the the web portal all is fine and seperate. When i log the same request from the console the 4 list are now 1 big list. Any way to seperate these out for the console other tha

  • Asset Class under Sub Group of assets

    Dear All,   In my Client place they are have list of assets.  I clasify in Asset classes like Plant & machinery, Buildings, Land -Asset Classes In Buildings  they have Differenct Factory Building and Office Building which is situated in Factory itsel

  • JSP to Generate PDF Document

    Hi, I am developing a jsp system that needs to generate a pdf document for every page before proceding to the next on the click of a button. What i have now is itext but itext is a time taker! i have to literally code every page and extract values fr

  • How Do I Enlarge My Apple Works Spreadsheet?

    I have come to the end of my spreadsheet. I am aware that a spreadsheet in Apple Works is 40 columns wide x 500 rows long but can be added to. Problem is, I've forgotten how to add a further 500 rows to my spreadsheet! HELP! Please! I'm stuck!