New Question for ABAP....( &1 and &2 )....

Dear Sir And Madams,
Cool Hii to all of you....Here once again i have stuck with a little probem... kindly help me out if you had solutons....
In one module pool coding i have found one strange thing and it is that :
  LOOP AT &1.
    &1-SEL = &2.
    MODIFY &1.
  ENDLOOP.
END-OF-DEFINITION.
DEFINE SET_SELECTION.
  &1-SIGN   = 'I'.
  &1-LOW    = &2.
  &1-HIGH   = ' '.
  &1-OPTION = 'EQ'.
  APPEND &1.
END-OF-DEFINITION.
DEFINE TOTAL.
  LOOP AT &1.
    &2 = &2 + &1-AMOUNT.
  ENDLOOP.
END-OF-DEFINITION.
DEFINE GET_DOC.
  CLEAR: IT_DOCMSTRT, &2 .
  READ TABLE IT_DOCMSTRT WITH KEY DOC_CODE = &1.
  &2 =  IT_DOCMSTRT-&3.
END-OF-DEFINITION.
DEFINE GET_DOCL.
  CLEAR: IT_DOCMSTRT, &2 .
  READ TABLE IT_DOCMSTRT WITH KEY DOC_CODE = &1.
  IF SY-SUBRC = 0.
    &2 =  IT_DOCMSTRT-&3.
    &2P = 'X'.
  ENDIF.
END-OF-DEFINITION.
DEFINE CHARGE_SET.
  CLEAR:&2.
  CASE &1.
    WHEN 'B'.
      &2 = CON_BEN.
    WHEN 'P'.
      &2 = CON_APL.
  ENDCASE.
END-OF-DEFINITION.
: Here will you explain me what is meant of '&1' and '&2' ???? by double clicking on it... navigates no where.... and asking for creating an object as per procedure of standard SAP.....
Take care....
Warm Regards,
Nirav Parekh

Hi Nirav,
All the piece of code below refers to definition of Macros.
Here &1 and &2 are the parameters that need to be passed to the macro.
Remember the Formal and actual parameters funda.
The Parameters &1 and &2 are the formal parameters and they will take the actual values once the Macro is used.
e.g. SET_SELECTION S_OPTION 2.
In this SET_SELECTION is the macro and S_OPTION is the actual parameter which will take place of &1.
Hence the coding will convert to
S_OPTION-SIGN = 'I'.
S_OPTION-LOW = 2.
S_OPTION-HIGH = ' '.
S_OPTION-OPTION = 'EQ'.
APPEND &1.
Regards,
Himanshu

Similar Messages

  • I used to share one apple ID/account with my ex but made a new one for myself recently and logged out of the old one but when I try to update my iBooks it asks for the old account's password(which my ex changed by now)

    I used to share one apple ID/account with my ex but made a new one for myself recently and logged out of the old one but when I try to update my iBooks (only happens with this app)it asks for the other account's password(which my ex changed by now). I don't understand why this happens when I'm logged into my account and it only happens with that app. Please help, I need to update. :/

    Content (apps, music, ibooks, films etc) is tied to the account that originally downloaded it, so if the iBooks app was downloaded using the account that you used to share with your ex then only that account can download updates to it. As it's a free app you could delete it and re-download it under your own account - and then re-download your ibooks into it (or copy the books to your computer's iTunes first via File > Transfer Purchases and then sync them back to the app).

  • 1Z0-035 Oracle9i New Features for Oracle7.3 and Oracle8 OCPs ...

    Hi All
    I am preparing for OPP exam 1Z0-035.
    Oracle9i New Features for Oracle7.3 and Oracle8 OCPs ..
    Can somebody please let me know where can I get the Oracle Material (pdf) for the same.
    or any good book i can purchase.
    Thanks
    Shahid
    [email protected]

    Hi,
    I am interested in knowing the link for 1z0 035.
    Please let me know Shahid - if you have got the document or any particular book.
    I need to give my exam.
    Thank you,
    Gauri
    [email protected]

  • I recently had to get a new hardrive for my computer and my husband and I lost all our downloads from itunes,how do I get it all back ?

    I recently had to get a new hardrive for my computer and my husband and I lost all of ours downloads. How do I get them back ?

     Downloading past purchases from the App Store, iBookstore, and iTunes Store
              http://support.apple.com/kb/HT2519

  • Creating t.code for ABAP query and Transport  it TO Production and run it .

    Hi Friends
    Thanks for ur reply ,
    The requirement is that i want to create tcode for abap query and that query can be regenearted ,
    in case of regeneration programe name i got answer programame name will be change, i created and modified query but i saw the same programe name ,,, may be it changed when it is trasnported if so then what ??
    and also pls give me solution for asiging tcode for query which is going to be regenerated.
    thanks and regards
    farukh

    Dear Farukh,
    As we know,
    Query is created in Production server and a corresponding program is generated by System.
    What we have to do is just to assign the program to the desired transaction code in Development server and transport it.
    If you have any doubts please let me know.
    Kindly assign points if you find this info usefull.
    Regards,
    Lijo Joseph

  • I just purchased a new SSD for my mac and I wanted to do a fresh/clean install on the SSD, like if my Macbook just came out of the box. How do I do that?

    I just purchased a new SSD for my mac and I wanted to do a fresh/clean install on the SSD, like if my Macbook just came out of the box. How do I do that?

    Install Mavericks, Lion/Mountain Lion Using Internet Recovery
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    Boot to the Internet Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND-OPTION- R keys until a globe appears on the screen. Wait patiently - 15-20 minutes - until the Recovery main menu appears.
    Partition and Format the hard drive:
    1. Select Disk Utility from the main menu and click on the Continue button.
    2. After DU loads select your newly installed hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed. Quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion. Mavericks: Select Reinstall Lion/Mountain Lion, Mavericks and click on the Install button. Be sure to select the correct drive to use if you have more than one.
    Note: You will need an active Internet connection. I suggest using Ethernet
                if possible because it is three times faster than wireless.
    This will install the version of OS X that originally came with your model if you have a model that supports Internet Recovery - 2010 models and later: Computers that can be upgraded to use OS X Internet Recovery.

  • HT201364 trying to install new software for OS mavericks and i get the he product distribution file could not be verified. It may be damaged or was not signed.can you assist

    trying to install new software for OS mavericks and i get the the product distribution file could not be verified. It may be damaged or was not signed error message
    .can you assist

    What "new" software?
    Barry

  • Im trying to install new drivers for my printer and it will not accept my password

    Im trying to install new drivers for my printer and it will not accept my password

    Hey fyermanbob,
    Thanks for using Apple Support Communities.
    OS X Mavericks: If your administrator password was not accepted
    http://support.apple.com/kb/PH14014
    Have a nice day,
    Mario

  • Creting t.code for ABAP query and Transport  it TO Production and run it .

    Hi Friends
    Thanks for ur reply ,
    The requirement is that i want to create tcode for abap query and that query can be regenearted ,
    in case of regeneration programe name i got answer programame name will be change, i created and modified query but i saw the same programe name ,,, may be it changed when it is trasnported if so then what ??
    and also pls give me solution for asiging tcode for query which is going to be regenerated.
    thanks and regards
    farukh

    Hi farukh,
    1. If any query is re-generatred,
       then some MANUAL INTERVENTION
       is absolutely required.
    2. Hence, what we prefer is this :
       1. Generate first query.
       2. Copy the code to a Z Program
       3. Attach tcode to THIS z program.
       4. Transport
    3. Now,
      whener the query is generated again,
       AGAIN COPY THE CODE
      TO OUR Z PROGRAM (2ND STEP ABOVE)
                        (which has already been created)
      AND TRANSPORT JUST THIS Z PROGRAM.
      REST WILL TAKE CARE OF ITSELF.
    4. In such cases,
      ONLY COPY-PASTE IS REQUIRED.
      (and it takes not more than 15 SECONDS)
    regards,
    amit m.

  • HT5312 Hi, i'm forget answer for may security questions for Apple ID and can't reset it

    HI. i'm forget answer for may security questions for Apple ID and can't reset it, after verified email adress the link for reset questions is not available.

    The reset link will only show if you have a rescue email address on your account - if you've just added an address then it will be an alternate/secondary email address, which is a different setting/address on your account (a rescue email address can only be added by answering 2 of your questions).
    You will need to contact iTunes Support / Apple to get the questions reset : http://support.apple.com/kb/HT5699
    When they've been reset you can then use the steps half-way down the page that you posted from to add a rescue email address for potential future use

  • HT201210 Lost YouTube after installation of new software for both iPad and iTune. How to reinstall?

    Lost YouTube after installation of new software for both iPad and iTune. How to reinstall?

    Try this free YouTube app for iPad:
    http://itunes.apple.com/be/app/jasmine-youtube-client/id554937050?mt=8

  • I downloaded the new iOS for my ipad2 and now my apps have no sound

    I have downloaded the new iOS for my ipad2 and now my apps have no sound and no system sounds

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
     Cheers, Tom

  • I just started the new update for my iphone and my phone is asking me to connect it to itunes but my computer isn't recognizing my phone being plugged in

    i just started the new update for my iphone and my phone is asking me to connect it to itunes but my computer isn't recognizing my phone being plugged in

    Click here and buy the DVD.
    (89921)

  • I just purchased 2 new iPhones for my wife and I and set them up. We want to give the old phones to our kids, with the ability to share all the songs in my iTunes account. How do I want to give new names so our old phones sync with our kids names?

    Sorry for the long intro question.  I just bought a new iPhone 5S for me and a new 5C for my wife.
    We want to give our kids my old 4S and my wife's old 4.  We backed up our old phones and restored
    our info to our new ones, but when we connect our old phones, they still show all our songs and iTunes
    settings on them (along with the same names as our new ones).
    We want to set up our old iPhones for our kids to be able to have their own names on theirs so that
    when we connect to my iTunes computer, it sees each phone accordingly, and has only the songs
    that they select (whereas I want to keep ALL my songs in my iTunes account on mine, not just some).
    How do I do this?

    You are most welcome
    Each post should have the text "this helped me" or "this solved my question," or something similar. Just click on whichever one applies to that particular post!
    This tutorial has more info.
    ~Lyssa

  • Can anybody help me out for sample questions for ABAP certification

    Hi
    i am going to appear for ABAP certification exam , i just wanted to have a look of types of questions asked in exam. can you please tell me where can i find these kind of questions.
    Thanks

    Refer this thread from SDN and a lot more are there on ABAP certification exam details and material.
    /message/515239#515239 [original link is broken]
    /message/279409#279409 [original link is broken]
    There is a pdf called ABAP certification.
    http://www.esnips.com/web/SAP-ABAP?
    If you have a firm stand in the ABAP dictionary (BC430), have already done some programming (BC400) and know the basics of ABAP-OO (BC401) you are on the safe side for the exam.
    Also have a look at below links:
    http://www.sap.com/services/education/index.epx
    http://www.sap-img.com/ab040.htm
    http://www.sapdomain.com/testimonials.php
    http://www.planetsap.com/Abap_certification_requirements.htm
    http://www50.sap.com/useducation/curriculum/group.asp?tid=8
    http://www50.sap.com/useducation/curriculum/curriculum.asp?rid=256&TID=
    http://www.amazon.com/exec/obidos/ASIN/0071341617/qid=1120754726/sr=2-1/ref=pd_bbs_b_2_1/103-7699884-1772649
    I hope it helps.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

Maybe you are looking for

  • I have a doubt?

    i'm doing the pitagoras theorem in java, to calculate one hipotenosa. but i don't know how to calculate the root square in java. do you know it? thanks

  • How to covert business system to business service

    I have, for example, business system (BSys1) in inegration directory and some scenarios that use BSys1... and now i need BSys1 to be business service (BServ1). Is it possible?

  • Select point on chart and retrieve more than just data

    var ShiftChart = document.FR_Runtime_ShiftHistory.getChartObject(); var selDate = ShiftChart.getYDataValueAt(1,ShiftChart.getLastSelectedPoint()); alert(selDate); When dealing with a grid I can find the select cell value of column 1 or whatever colum

  • QoS in Async Interfaces

    Hello, I want to apply Custom Queueing or Priority Queueing or CBWFG in async interface but it doesn't work the interface is corresponding as FIFO. I can't find in cisco site if there is restrictions in QoS in ASync interfaces

  • Subcontracting GR/IR postings

    Dear All I have some basic doubts on subcontracting process, though i have searched the FORUM but nowhere it is explained in a way i wanted. I have created a subcontracting order for a product X, which is made up of 5 components (A,B,C,D and E).Now i