'DO VARYING' operator

Hello, I have a problem with 'DO' operator. I am using expression in my program:
DATA old_pernr LIKE p9090-OLD_PERNR01.
    DATA datp LIKE p9090-DATP01.
    DO 50 TIMES VARYING old_pernr FROM it9090_old-OLD_PERNR01 NEXT it9090_old-OLD_PERNR02
                VARYING datp FROM it9090_old-datp01 NEXT it9090_old-datp02.
    ENDDO.
In '.........' section I need to update old_pernr field in the infotype 9090. But I don't have exact field name, it could be old_pernr13 or old_pernr25 depending on cycle iteration.
Do you know how to get the field name in that case ?
Thank You.

You may check what Rainer said, but I am not sure of that.
If that doesn't work you can use field symbols for this
field-symbols <pernr> type any.
data: fieldname type string,
        indx(2) type n.
    DO 50 TIMES VARYING old_pernr FROM it9090_old-OLD_PERNR01 NEXT it9090_old-OLD_PERNR02
                VARYING datp FROM it9090_old-datp01 NEXT it9090_old-datp02.
      write sy-index to indx.   "01, 02, 03 ...
      concatenate 'IT0909_OLD-PERNR' indx into fieldname.  "IT0909_OLD-PERNR01 ,02 ...
      assign (fieldname) to <pernr>.   "now <pernr> points to IT0909_OLD-PERNR01, 02...
      <pernr> =  ... "here if you assign somehthing it will automatically reflect in that field
    ENDDO.
Regards
Marcin

Similar Messages

  • "Invalid Variant Operation" when AVDoc.GetPDDoc

    Hi, I create pdf object by ole in delphi.
    =====================
        try
            AcroApp := CreateActiveXObject('AcroExch.App');
            AcroApp.Hide;
        except
            Exit;
        end;
             AcroAVDoc := CreateActiveXObject('AcroExch.AVDoc');
            if not AcroAVDoc.Open(strFileName, '') then begin
                Exit;
            end;
            AcroAVDoc := AcroApp.GetActiveDoc;
            AcroPDDoc := AcroAVDoc.GetPDDoc;  <-- throw invalid variant operation exception
         AcroPDDoc.Save(1, strFileName);
    ==========================
    In fact, If I can save the document, do not know if there is no other way to bypass the pddoc, if only with pddoc, is not playing some of the patches can

    Attached a sample VBS. Save it as ...vbs and doubleclick on it.
    If it works for you, ask in the delphi forum, how to translate.
    HTH, Reinhard
    AcroTestSave.vbs
    fileIn = "C:\Test.pdf"                         '// state the full path of the file to open
    FileOut = "C:\Test3.pdf"                  '// state the full path for the file to save
    set App = CreateObject("AcroExch.App")            '// start Adobe Acrobat
    App.Show                                                      '// show Acrobat
    Set AVDoc = CreateObject("AcroExch.AVDoc") '// connect to  Ac Viewer
    AVDoc.Open fileIn,""                                '// Open a file into viewer
    set PDDoc = AVDoc.GetPDDoc             '// Get the Doc opened in the viewer
    set JSO = PDDoc.GetJSObject            '// Connect to Acrobat JS
    JSO.app.alert("Hi, the file is open press Ok and I'll save it")  '// Display a MsgBox
    PDDoc.Save 3,fileOut                             '// SaveAs
    App.CloseAllDocs                                       '// close all docs
    set JSO = nothing
    set AvDoc = nothing
    set PdDoc = nothing
    set App = nothing

  • Variant Input Parameters with ActiveX Objects

    I've created an ActiveX library that exports a variety of objects using Visual C++ Version 6.0. I'm testing the methods and properties of these objects using both LabVIEW and Visual Basic clients. The problem I'm facing is that when testing under LabVIEW, I can't access methods that expect a VARIANT input parameter. The declaration in C++ of one object's such method looks like this:
    void CChassis::Configure (VARIANT config, int rate);
    I can create the ActiveX object with both LabVIEW and Visual Basic. I can invoke methods that do not use VARIANT input parameters using both as well; but, when I create a second ActiveX Object (a CConfiguration) and use the LabVIEW Variant operator, my attempt to invoke Configure fails with a "No Such Interface (E_NOINTERFACE)" error. The invocation fails identically if I wire the CConfiguration directly to the Variant input, as well. If I instead create a constant VARIANT as an input parameter, my Configure method gets called, although the method recognizes that I passed an invalid object.
    Using Visual Basic I can invoke the Configure method without problems while encapsulating a CConfiguration object within a Variant.
    So my question is, have I found a LabVIEW error, or is my approach flawed? If my approach is flawed, where have I gone wrong? Thanks in advance! I'm using LabVIEW version 7.0.

    Hi,
    Have you tried to put in plain data or an object reference into your variant parameter?
    I think plain data should work... for object references i don't know.
    Some time ago, i also coded a small activex library, where i passed object references by parameters in delphi. I did not use variant parameters, but the real interfacedeclaration types (like IMyObject**). This worked fine. I also uses "dual" interfaces for the objects, which get passed by parameter. But i don't really know if this is helpfull for vb.
    Finally, you can also use a workaround:
    For each of your Objects, that you want to use from LabView and which you want to pass by a parameter, you
    insert an new Property "int32 Object_Handle".
    When an Object gets created, it ask a "ObjectHandleManager" (gets written by you) to get an own unique Object_Handle which it stores into its property "Object_Handle".
    The ObjectHandleManager generates an new Object Handle and memorizes the Handle assoziated with the calling object's reference.
    Now, at each time, when you want to pass a object reference to a library function of your self, you can pass the Object_handle as an integer value. In the called function, you can ask your ObjectHandleManager for the real ObjectReference.
    But thats not a very comfortable workaround.

  • MAM Profile Selection Variant

    Hi,
    I followed the configuration guide for MAM and created an Variant Operation for the Order Profile. Testing the variant (using IW37) it gives the correct amount of orders (5).
    Now using transaction SE37 to test MAM25_001, it gives me more orders that I should (9 in total). Also in the mobile device I also get the 9 orders.
    It was my understanding that the Variant should reduce the number of orders/operations that are downloaded in the device. It seems that it is ignoring the Variant. Do I need to do additional configuration to allow me use the variant? Thanks in advance.

    Thanks.
    My situation is the following. The backend system was configured so the dispatched can assign different technicians to different operations in a work order, i.e.
    Order 00001
        Operation #1 -> Tech #1
        Operation #2 -> Tech #2...
    I tried to set Order Assignment to EMPLOYEE NUMBER, but then no one get any order. I tried setting it to WORKCENTER but the tech receives all orders even the ones that doesn't have any operation assign to him.
    I was hoping to use the variant to filter the orders, but even with that the tech is receiving all the orders. Any idea? Thanks in advance.

  • Inspection plan based on workcentre

    Dear Sir
    We have one plant,in that we are using two interfaces,result recording has to come from this interfaces for that there is only one material code,we are using workcenter in inspection plan and even for that plan there are two operation,so how get the correct plan for the production confirmation
    Aim if there is eg X work center  its should take X plan
    If there is Y workcenter it  should take take Y plan
    We donu2019t want to use dynamic modification rule ,and in search field in we use some to detect  the plan,it will peak but how to segregate that w r t to workcentre

    Dear Kunal,
    I am not so sure what sort of user interface you are dealing with.
    First of all may I request you to clarify with which inspection type you are working (03, 04, 01 or 89)?
    For every operation you can assign only 1 work center and 1 inspection plan may contain several operations.
    Inspection characteristics are defined at operation level only. These MICs may also vary operation to operation depending upon nature of operation. For example, if your inspection plan contains u201CDrillingu201D and u201CInner Threadingu201D as 2 operations, you can have diameter as inspection parameter for drilling and pitch for threading. Kindly note this entire information is associated with only 1 plan.
    When the inspection lot is created and you click on results tab in QA32, system throws pop up of operations. There you need to choose for which operation you want to perform result recording. If you select Drilling, only diameter will be displayed to you to put observed reading.
    To sum up, this mechanism ensures to pick operation specific (work center specific) inspection characteristics. There is no need to create 2 inspection plans if your plan contains 2 operations in a single plan.
    Regards,
    Anand Rao

  • Configuration (IMG) Objects in Logon Language

    Dear SAP Experts,
    I am currently working on an implementation where, in addition to English (EN) as logon language, we will also be having French (FR) and Portuguese (PT) languages.
    Would like to seek your advice on how we can extract or get a list of configuration objects or activities which will require maintenance in the logon language. For example, for Costing variant, Operating concern or IO budget profile, we have to maintain the description of these objects in FR and PT in addition to EN - otherwise the description will be blank.
    Thank you for your advice.
    Kind regards,
    Teck

    Hi, yes,you need to maintain in all languages, because how system will know translation?

  • Diagram disable adds overhead in certain cases

    I was doing some timing tests of two ways to do the same thing – a typecast and flatten to string.  Well, in the process I saw a discrepancy when a diagram disable structure was wrapped around a typecast.  Without the diagram disable, 1000000 iterations took 274 msec.  With a diagram disable around the same thing, it took 1485 msec.
    This scared me a bit, because technically the diagram disable case should be no different (ok, maybe a small overhead).  It further scared me, because the same overhead is invisible with flatten to string.  Inconsistent behavior…
    The vi that clearly shows the “bug” in 8.0.1 is attached.
    This is not a show stopper, but says “use the diagram disable structure with caution”.
    Thoughts?
    Attachments:
    Diagram Disable Bug.vi ‏24 KB

    Apparently that wasn't the only case where Diagram Disable behaves differently than just having the code inline.  I also was  investigating the performance of certain VIs, because I wanted to know if variant operations were faster than flatten/unflatten to/from string.
    In the following snippet, I set the number of loop iterations to 100 and ran the VI, resulting in an Elapsed Time of ~50ms.  I then moved the 'To Variant' VI inside the Enabled structure for both cases (Disabled and Enabled), and running the VI again resulted in an elapsed time of over 2 seconds!  The source code should be identical in both cases, but it appears as though there is some optimization occuring in the first case that is not occurring in the 2nd case. It's as though in the first case, the compiler is smart enough to realize that the loop output does not change from iteration to iteration, but in the 2nd case it gets stupid.
    So continue to beware of the Diagram Disable structure...
    Attachments:
    benchmark.png ‏71 KB

  • Mac OS X Mountain Lion randomly disconnects from a Windows SMB share

    First le t me say that I am still trying to diagnose if this is a hardware or software issue.  But I figured I would start here.  I work in a mixed environment with Mac's and PC's and all working together with no issues.  I deployed this Mac about 6 months ago to production.  The person using this Mac recently has been complaining of the Mac disconnecting from a Windows SMB share at random times.  The server is running Windows Server 2008R2 and has been running for 3 years.  I have other Macs on the same network connecting to it with varying operating systems ranging from 10.6 to 10.8.  None of the other Mac's are experiencing this same issue.  So I know it is isolated to this Mac.  I was wondering if there might be something in the software like a setting that needs changed that might be causing this.  Any suggestions are welcome.

    I have renamed my pc and everything is ok with the file sharing SMB. Both my iMac and my pc can share files very easily.

  • All you need to know about Operator-Variant softwa...

    There are lots of myths and misunderstandings about phone software, and you don't need to search far on this forum to see the issues that can be caused, so this post will try to answer the common questions.
    What is Operator Variant / Branded phone software?
    In many markets, mobile network operators dominate the sale of mobile phones, and their power in the market gives them the leverage to demand changes to the phones that they sell. Branding may include unique colour schemes for outer casings, logos on cases, default themes showing the network logo and using network colours, changes to the phone software to remove features, change features or add extra features, and in some cases different pre-installed applications.
    What features might be missing?
    Common ommissions in branded phones are features for which the network makes no money. For example, some networks including Vodafone removed VOIP capabilities from their versions of the N95 in many markets because they preferred their customers to make chargeable GSM calls instead. Another good example is the American network AT&T, which removes the voice-dialling feature of phones in favour of its own network-based service which requires a monthly subscription.
    You will often also find that the section of the S60 Settings Wizard that deals with settings for MMS and internet access points is also missing, making it difficult for people who switch to other networks to reconfigure their phones for the new provider.
    Who changes the software?
    You often see people saying that "(operator name) changes the software...", but this isn't strictly true - your operator doesn't open every box and change the software before selling you the phone, they provide a list of their required modifications to the phone manufacturer before they accept to place any orders, and the modified (or branded) software is then presented back to the network for approval, after which orders are placed - the phone leaves the factory in its branded state, and in many cases in a SIM-locked state.
    Why can't I update?
    The network holds intellectual rights to the branded software, and just as they approve the changes in the initial version before they begin to sell any particular model, they also exercise the right to approve software updates before the manufacturer can release them. This often causes delays to software releases, and can even prevent software releases. For example, our old friends the Orange and T-mobile groups hit N95 owners by refusing to approve v20 for their branded versions at a time when N-Gage gaming was being relaunched, meaning that N95 users couldn't meet the minimum software requirements to run N-Gage software.
    It is common for networks to stop approving updates after they stop selling a particular model, as they no longer see any profit in supporting the handset any more. Some networks, and any customers of the Hutchinson 3G group around the world will testify to this, seldom approve any updates at all. If you have a problem related to software and call your network for support, expect to be told that the problem is a delay on the part of the manufacturer, but this common excuse is simply untrue - the manufacturer can only release updates for branded phones when it receives network approval.
    Why does branded software cause so many problems?
    This one you'll never get an official answer to, because the phone manufacturers and mobile networks walk a fine line in their professional relationships, but my educated guess is that the manufacturer doesn't extensively test modified operator-variant software because since the network needs to give approval, it is assumed they will test that the changes meet their requirements and work correctly. The network likewise doesn't fully test the software because it assumes that the manufacturer has done it - classic lack of communication.
    Can I remove branding and install the standard Nokia software?
    Strictly speaking, No. There are plenty of people on the internet ready to tell you how to do it and provide software to help, but anything you do yourself is an unauthorised change that will invalidate the warranty. You risk causing additional damage to an expensive phone and losing support to repair it.
    It is known that you can have this officially changed by a Nokia service point or Flagship store, provided that any SIM-lock has already been officially removed by the network, and in some cases that the network provides written consent for this change; the phone would be changed to a generic product code, the software reflashed, and if completed properly, a new product information label will be put in the battery compartment reflecting the change. However, we also know from this forum that not all service points offer this service, and in some countries the local Nokia head office does not permit it.
    It's my phone, I bought it, I own it, I can do as I please!
    Yes, and no. Network operators and retailers are guilty of not warning customers that their product is a modified version rather than an original version, but at the end of the day you have paid for and accepted a branded phone. In order to benefit from the support of the device warranty, any work has to be carried out by an authorised person, just like any other product from calculators to cars.
    Edit: one of my trademark typos corrected.
    Message Edited by mccbleue on 13-Oct-2009 05:17 PM

    Make sure you have entered your Voyager licence code in CMC.
    I'm using BOXI R3. but is same for BOXIR2 Make sure you have defined a voyager connection in the CMC.
    in here you need to specify
    Server type: Server
    Server: your SSAS 2005 server name
    then click the Connect and type a user ID with appropriate authority to the cubes.
    then select the cube you want.
    then specify:
    Authentication: User Specified
    User: Authorised user
    Password:
    Click Save.
    You then should be able to create a new Vouager workspace from the infoview.
    Hope this Helps (ive got about 20 cubes accessed by Vouager... not such a flash viewer but its the only thing BO offer. OLAP intelligence (a good product) is no longer available!

  • Controlling area & operating concern must have same fiscal year variant

    Dear Experts,
    Whether i can assign two controlling area with different fiscal year variant to one operating concern.
    Getting error 'Controlling area & operating concern must have same fiscal year variant'
    Fiscal year variant must be same or Number of posting period must be same.
    regards
    RR
    Moderator: Please, search before posting

    Hi ajay,
    I did the testing also,
    System is showing error msg' Controlling area & operating concern must have same fiscal year variant'
    But someone told me. number of Posting period must be same not fiscal year variant.That why i am confused.
    I assigned all company code same posting period variant in different controlling area.Still facing same error.
    That why i have posted in SDN.
    regards
    RR

  • Variant Config In Network - PS, Operation Deleted Without Dependency.

    Dear Experts:
    We use the variant configuration to configure a network. The standard network have operations with and without dependency. The problem is that in configuration change in sales document, operations that NOT HAVE dependency are deleted (TABLE AFVC) and created again after change comparison, with another counter (AFVC - APLZL). This generate problems in our process, because the milestones attached are also deleted, and not created again.
    Somebody had this problem? Some advice?
    Regards,
    Ricardo Siqueira

    Hi,
    The forum rule is: one question per thread. Please reorganize your question to few more threads to ask.
    Thanks,
    Gordon

  • I can install Amber country variant to an operator...

    I promised to my sister a phone with radio fm, and request a Nokia Lumia 520, to my mobile company Movistar Argentina
    At Nokia page say than at Argentina, update to Amber at Lumia 520 is only available for country variant (free cellphones) and at all 3 mobile operators (claro, movistar, personal) say waiting for aproval
    There is a cheat to force country variant?

    Unfortunately forum rules forbids the discussion of any topic that might result in the voiding of warranty. Apart from voiding warranty, you will also run a very high risk of bricking the phone in the process. Not something you should consider unless you really have to or you don't care what happens.  

  • Creation of new Print Program & Variant for new Correspondence Type created

    Dear Friends,
    I have created 2 new Correspondence Types in SAP as SAP61 (Vendor Debit Note) & SAP62 (Vendor Credit Note) by copying SAP09 (Internal Document) properties like itu2019s Name of the print program - RFKORD30 & Name of variant - SAP09.
    We are facing problem when we execute print program in F.64 for SAP09 it is coming same like SAP61 or SAP62. Actual script & print values of SAP09 are replaced by SAP61 or SAP62.
    Please suggest us how we can differentiate both SAP09 & SAP61/62. Because we use these correspondences for different purposes like SAP09 gives the information for the Line items in the Document whereas SAP61/62 gives the information of vendor line item weather it is debit or credit entry.
    Your kind co-operation in this matter is highly appreciated.
    Thanks & Regards,
    Naveen Kumar.P

    "Assigned the from to the company code - progam in V_001F_B"
    Check 'Form ID' field in this IMG transaction against the program and form that you have created.
    I am assuming there are 2 lines with same entries but different form IDs.
    Or there are 2 lines with the same entries but different CoCodes (seem to remember that the CoCode is not taken into account as a key in certain programs - not logical i know but remembered a previous issue I had many moons ago - could be to do with the blank entry for CoCode field if there is one being picked up by the program before the entry that has your CoCode).
    Now check the variant attached and Form ID in step 'Created new program variants in SA38'
    Ensure the correct program and variant are attached in step OB78.
    My assumption is Form ID is the key.
    Hope this helps

  • My cellular connection (swedish 3 operator) does not work after update to iOs 8.3

    After I updated my iPad mini from iOs 8.1.3 to 8.3 my cellular connection has stoped working. It connects but the apps don´t recongnice it. The operator is the swedish network "3" (Three),

    Hello svenakealb,
    It appears you are unable to connect with cellular networks using your iPad. The following article provides troubleshooting steps for this issue, which you may find helpful:
    If you can't connect to a cellular network or cellular data - Apple Support
    Get help with No Service or Searching, cellular network, and 4G LTE issues on your iPhone or iPad (cellular model).
    If you see No Service or Searching 
    If you see No Service or Searching on your device, or can't connect to a cellular network or cellular data, follow these steps: 
    Check your coverage area to make sure you're in an area with cellular network coverage.
    If you can't connect to a cellular network, make sure cellular data is on in Settings > Cellular.
    If you're traveling internationally, make sure your device is set up for data roaming. Go to Settings > Cellular > Data Roaming.
    Restart your iPhone or iPad.
    Check for a Carrier Settings Update.
    Remove the SIM card then reinsert it. If the SIM card is damaged, worn, or bent, or doesn't fit in the SIM tray, contact your carrier.
    Try another location. If possible, see if other devices are able to connect to your carrier's network in that location. 
    Contact your carrier to:
    Verify that your account is active and in good standing.
    Make sure there are no outages in your area.
    Check that your device is not blocked from receiving cellular services and set up with the right data plan. 
    Update your iPhone or iPad to the latest version of iOS.
    If you can connect to 3G but not 4G LTE
    If you can connect your iPhone or iPad to 3G but not 4G LTE, make sure your device is compatible with LTE. Go to Settings > Cellular > Enable LTE. Identify your iPhone and compare its model number with the list of supported LTE carriers for your country location. Or identify your iPad and compare its model number with the list of supported LTE carriers for your country location. LTE options might vary depending on your carrier's network.
    Thank you for contributing to Apple Support Communities.
    Cheers,
    Bobby_D

  • Production Order BOM with Variant Configurable Material

    Hi,
    I have a requirement to process the document items in the Production Order BOM for a variant configurable martial. I am not sure which Function Module will do this purpose. I checked the FM: CS_BOM_EXPL_MAT_V2 and does not seem to be working.
    Can you please help me with a suitable Function Module or program that will process the Production Order BOM? Appreciate Your Help.
    Thanks,
    Kanan
    Edited by: Kannan SA on Jul 6, 2011 8:59 PM

    What are you doing with the characteristics right now ?
    If you want operations selected based on characteristic values, you need to have dependencies written just like you do (or in your case, will do) in your BOM components.
    I understand the business-push to not do things 100% at the start and just "oh we'll add that part later" but I would really push back to get that part included initially.

Maybe you are looking for

  • Solution to iPod Touch Podcast Sync Problem

    Like many of you, I had problems syncing my podcasts to my iPod Touch. I have the newest model with 2.1.1, and I had the same problem where (in iTunes) I would drag and drop the podcasts onto my iTouch and nothing would happen. They would not be list

  • Develop Module is not working after the latest 5.5 update.

    I have uninstalled and installed from the direct link. Cleaned up and optimized the catalog, etc. Images are visible in the library and develop module, but if I try to start editing - there are no changes visible, unless I go to Library and back to D

  • How to make type flow with the shape of an object?

    Hi there, I am a bit of an Illustrator newbie. I am needing some help to work out how to wrap or manipulate type to fit the shape and flow of an object? I have attached an image to show you what I am trying to do. I want the "shop by measure" text to

  • Adobe Reader X - moving toolbars (toolbar customization)

    In Reader 9, I can customerize the position of the toolbars. Anyone know how to do this in Reader X?

  • XML forms: attachment size

    Hello, we are working with XML forms to create news. Also we have the possibility to attach km document to this news. The attachments are displayed as a link on the end of the news. No my question. Is it possible to show the size of this attachment?