Report in which i have to run bdc and do changes

Hi ABAP Gurus,
                      my requirement is i have to develop report in which i need to have 2 radiobuttons if i select first radiobutton my program should run Report and if i select second radiobutton it should run va02 and make some changes (i.e, it should change delivery quantity is equal to orderquantity.
i wrote program to display the report but what i want is now i have to do recording in va02 tr.code and write the logic in my developed program.and below is my program .
TYPE-POOLS : slis.
TABLES : vbak,vbap.
TYPES : BEGIN OF t_vbak,
        vbeln TYPE vbak-vbeln,
        audat TYPE vbak-audat,
        vbtyp TYPE vbak-vbtyp,
        END OF t_vbak.
TYPES : BEGIN OF t_vbap,
        vbeln TYPE vbap-vbeln,
        posnr TYPE vbap-posnr,
        arktx TYPE vbap-arktx,
        kwmeng TYPE vbap-kwmeng,
        lsmeng TYPE vbap-lsmeng,
        END OF t_vbap .
DATA : BEGIN OF it_final OCCURS 0,
      vbeln LIKE zstru_final1-vbeln,
      posnr LIKE zstru_final1-posnr,
      audat LIKE zstru_final1-audat,
      vbtyp LIKE zstru_final1-vbtyp,
      arktx LIKE zstru_final1-arktx,
      kwmeng LIKE zstru_final1-kwmeng,
      lsmeng LIKE zstru_final1-lsmeng,
      bal LIKE zstru_final1-bal,
      END OF it_final.
DATA : it_vbak TYPE TABLE OF t_vbak,
       wa_vbak TYPE t_vbak,
       it_vbap TYPE TABLE OF t_vbap,
       wa_vbap TYPE t_vbap.
DATA : it_fieldcat   TYPE  slis_t_fieldcat_alv,
       ls_fieldcat   TYPE  slis_fieldcat_alv,
       ls_repid TYPE sy-repid,
       gs_layout   TYPE lvc_s_layo,
       l_variant   TYPE  disvariant.
SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: s_vbeln FOR vbak-vbeln,
                s_audat FOR vbak-audat,
                s_vbtyp FOR vbak-vbtyp.
SELECTION-SCREEN : END OF BLOCK b1.
SELECTION-SCREEN: BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS:      rb1 TYPE c RADIOBUTTON GROUP g1,
                 rb2 TYPE c RADIOBUTTON GROUP g1.
SELECTION-SCREEN : END OF BLOCK b2.
START-OF-SELECTION.
  ls_repid = sy-repid.
  SELECT vbeln audat vbtyp FROM vbak INTO TABLE it_vbak
                                    WHERE vbeln IN s_vbeln
                                    AND   audat IN s_audat
                                    AND   vbtyp IN s_vbtyp.
  IF it_vbak[] IS NOT INITIAL.
    SELECT vbeln posnr arktx kwmeng lsmeng FROM vbap
        INTO TABLE it_vbap  FOR ALL ENTRIES IN it_vbak
                                WHERE vbeln EQ it_vbak-vbeln.
  ENDIF.
  LOOP AT it_vbap INTO wa_vbap.
    it_final-posnr = wa_vbap-posnr.
    it_final-arktx = wa_vbap-arktx.
    it_final-kwmeng = wa_vbap-kwmeng.
    it_final-lsmeng = wa_vbap-lsmeng.
    it_final-bal = wa_vbap-kwmeng - wa_vbap-lsmeng.
    READ TABLE it_vbak INTO wa_vbak
                   WITH KEY vbeln = wa_vbap-vbeln.
    IF sy-subrc IS INITIAL.
      it_final-vbeln = wa_vbak-vbeln.
      it_final-audat = wa_vbak-audat.
      it_final-vbtyp = wa_vbak-vbtyp.
    ENDIF.
    COLLECT it_final.
  ENDLOOP.
  IF rb1 = 'X'.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
      EXPORTING
        i_program_name         = ls_repid
        i_internal_tabname     = 'IT_FINAL'
        i_inclname             = ls_repid
      CHANGING
        ct_fieldcat            = it_fieldcat
      EXCEPTIONS
        inconsistent_interface = 1
        program_error          = 2
        OTHERS                 = 3.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program = ls_repid
        it_fieldcat        = it_fieldcat
      TABLES
        t_outtab           = it_final
      EXCEPTIONS
        program_error      = 1
        OTHERS             = 2.
    IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
  ELSE.
  ENDIF.
  please help me out .
thanks in advance.

hi,
Please find code :
REPORT zag_va02
       NO STANDARD PAGE HEADING LINE-SIZE 255.
       TABLES : vbak,vbap.
DATA:BEGIN OF t_vbak OCCURS 0.
        INCLUDE STRUCTURE vbak.
DATA:END OF t_vbak.
DATA:BEGIN OF t_vbkd OCCURS 0.
        INCLUDE STRUCTURE vbkd.
DATA:END OF t_vbkd.
DATA:   bdcdata LIKE bdcdata    OCCURS 0 WITH HEADER LINE.
      messages of call transaction
DATA:   messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
tYPES : BEGIN OF t_vbak,
vbeln TYPE vbak-vbeln,
audat TYPE vbak-audat,
vbtyp TYPE vbak-vbtyp,
END OF t_vbak.
TYPES : BEGIN OF t_vbap,
vbeln TYPE vbap-vbeln,
posnr TYPE vbap-posnr,
arktx TYPE vbap-arktx,
kwmeng TYPE vbap-kwmeng,
lsmeng TYPE vbap-lsmeng,
END OF t_vbap .
DATA : BEGIN OF it_final OCCURS 0,
vbeln LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
audat LIKE vbak-audat,
vbtyp LIKE vbak-vbtyp,
arktx LIKE vbap-arktx,
kwmeng LIKE vbap-kwmeng,
lsmeng LIKE vbap-lsmeng,
*bal LIKE zstru_final1-bal,
END OF it_final.
DATA : it_vbak TYPE TABLE OF t_vbak,
wa_vbak TYPE t_vbak,
it_vbap TYPE TABLE OF t_vbap,
wa_vbap TYPE t_vbap.
*DATA : it_fieldcat TYPE slis_t_fieldcat_alv,
*ls_fieldcat TYPE slis_fieldcat_alv,
*ls_repid TYPE sy-repid,
*gs_layout TYPE lvc_s_layo,
*l_variant TYPE disvariant.
SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: s_vbeln FOR vbak-vbeln,
s_audat FOR vbak-audat,
s_vbtyp FOR vbak-vbtyp.
SELECTION-SCREEN : END OF BLOCK b1.
SELECTION-SCREEN: BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS: rb1 TYPE c RADIOBUTTON GROUP g1,
rb2 TYPE c RADIOBUTTON GROUP g1.
SELECTION-SCREEN : END OF BLOCK b2.
START-OF-SELECTION.
*ls_repid = sy-repid.
SELECT vbeln audat vbtyp FROM vbak INTO TABLE it_vbak
WHERE vbeln IN s_vbeln
AND audat IN s_audat
AND vbtyp IN s_vbtyp.
IF it_vbak[] IS NOT INITIAL.
SELECT vbeln posnr arktx kwmeng lsmeng FROM vbap
INTO TABLE it_vbap FOR ALL ENTRIES IN it_vbak
WHERE vbeln EQ it_vbak-vbeln.
ENDIF.
LOOP AT it_vbap INTO wa_vbap.
it_final-posnr = wa_vbap-posnr.
it_final-arktx = wa_vbap-arktx.
it_final-kwmeng = wa_vbap-kwmeng.
it_final-lsmeng = wa_vbap-lsmeng.
*it_final-bal = wa_vbap-kwmeng - wa_vbap-lsmeng.
READ TABLE it_vbak INTO wa_vbak
WITH KEY vbeln = wa_vbap-vbeln.
IF sy-subrc IS INITIAL.
it_final-vbeln = wa_vbak-vbeln.
it_final-audat = wa_vbak-audat.
it_final-vbtyp = wa_vbak-vbtyp.
ENDIF.
COLLECT it_final.
ENDLOOP.
IF rb1 = 'X'.
loop at it_final.
PERFORM bdc_dynpro      USING 'SAPMV45A' '0102'.
  PERFORM bdc_field       USING 'BDC_CURSOR'
                                'VBAK-VBELN'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '/00'.
  PERFORM bdc_field       USING 'VBAK-VBELN'
                                it_final-vbeln.
  PERFORM bdc_dynpro      USING 'SAPMV45A' '4001'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '=SICH'.
  PERFORM bdc_field       USING 'VBKD-BSTKD'
                                'test ZDOR'.
  PERFORM bdc_field       USING 'KUAGV-KUNNR'
                                '8000000303'.
  PERFORM bdc_field       USING 'KUWEV-KUNNR'
                                '8000000303'.
  PERFORM bdc_field       USING 'RV45A-KETDAT'
                                it_final-audat.
  PERFORM bdc_field       USING 'RV45A-KPRGBZ'
                                'D'.
  PERFORM bdc_field       USING 'VBKD-PRSDT'
                                it_final-audat.
  PERFORM bdc_field       USING 'VBKD-ZTERM'
                                '0002'.
  PERFORM bdc_field       USING 'VBKD-INCO1'
                                'FOB'.
  PERFORM bdc_field       USING 'VBKD-INCO2'
                                'Mumbai'.
  PERFORM bdc_field       USING 'BDC_CURSOR'
                                'RV45A-KWMENG(01)'.
  PERFORM bdc_field       USING 'RV45A-KWMENG(01)'
                                '                  5'.
PERFORM bdc_transaction USING 'VA02'.
REFRESH MESSTAB.
    CALL TRANSACTION 'VA02' USING BDCDATA
                     MODE   'A'
                     UPDATE 'A'
                     MESSAGES INTO MESSTAB.
                     endloop.
ENDIF.
*&      Form  BDC_DYNPRO
      text
     -->PROGRAM    text
     -->DYNPRO     text
FORM bdc_dynpro USING program dynpro.
  CLEAR bdcdata.
  bdcdata-program  = program.
  bdcdata-dynpro   = dynpro.
  bdcdata-dynbegin = 'X'.
  APPEND bdcdata.
ENDFORM.                    "BDC_DYNPRO
       Insert field                                                  *
FORM bdc_field USING fnam fval.
  IF fval <> ''.
    CLEAR bdcdata.
    bdcdata-fnam = fnam.
    bdcdata-fval = fval.
    APPEND bdcdata.
  ENDIF.
ENDFORM.                    "BDC_FIELD
here you cange your Kunnr and all field in recording perform in loop according to your req.
Reward if ans .is use full
Amit.
Edited by: Amit Bansal on Jun 2, 2008 9:18 AM
Edited by: Amit Bansal on Jun 2, 2008 9:19 AM

Similar Messages

  • Report on which computers have which version of Internet Explorer?

    Hi, Does anyone know of a simple report or way of reporting on which computers have which version of Internet Explorer?
    e.g. I expect to mostly find 7, but checking also for 6 & 8).
    As its integrated into the OS this isn't as easy to determine as with other products installed. I know there are simple manual check like "Help About" and HKLM\SOFTWARE\Microsoft\Internet Explorer
    Thanks.

    Hi
    Torsten is rigth, the reigstry path does contain version information (and other usefull information). You can get the information by:
    Adding this entry to the configuration.mof file:
    #pragma deleteclass("IE", NOFAIL)
    [DYNPROPS]
    Class IE
    [key] string KeyName;
    String MkEnabled;
    String Version;
    String Build;
    String W2kVersion;
    Uint32 IntegratedBrowser;
    [DYNPROPS]
    Instance of IE
    keyname="SystemCenter.fr";
    [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|MkEnabled"),Dynamic,Provider("RegPropProv")] MkEnabled;
    [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|Version"),Dynamic,Provider("RegPropProv")] Version;
    [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|Build"),Dynamic,Provider("RegPropProv")] Build;
    [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|W2kVersion"),Dynamic,Provider("RegPropProv")] W2kVersion;
    [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|IntegratedBrowser"),Dynamic,Provider("RegPropProv")] IntegratedBrowser;
    And enter this information into the SMS_def.mof file
    #pragma namespace ("\\\\.\\root\\cimv2\\SMS")
    #pragma deleteclass("IE", NOFAIL)
    [SMS_Report(TRUE),SMS_Group_Name("IE"),SMS_Class_ID("IE|IE|1.0")]
    Class IE: SMS_Class_Template
    [SMS_Report(TRUE),key] string KeyName;
    [SMS_Report(TRUE)] String MkEnabled;
    [SMS_Report(TRUE)] String Version;
    [SMS_Report(TRUE)] String Build;
    [SMS_Report(TRUE)] String W2kVersion;
    [SMS_Report(TRUE)] Uint32 IntegratedBrowser;
    Kent Agerlund | http://scug.dk/members/Agerlund/default.aspx | The Danish community for System Center products

  • I have just run ClamXav and it has detected a trojan Bredolab-2. How do I remove this please?

    I have just run ClamXav and it has detected a Bredolab-2 trojan. How do I remove this Trojan please and is it an issue for a MAC?
    Thanks in advance.

    If you are running v10.6.7 as your profile indicates, you can update to v10.6.8 which includes malware protection.
    About the Mac OS X v10.6.8 Update
    Mac OS X 10.6.8 Update

  • We have a Dell computer with iTunes (which we have had for years) and are suddenly unable to open it.  The message: This file "iTunes Library.itl" cannot be read because it was created by a newer version of iTunes.  Help!!

    We have a Dell computer with iTunes (which we have had for years) and are suddenly unable to open it.  The message: This file "iTunes Library.itl" cannot be read because it was created by a newer version of iTunes.  Help!!

    See Empty/corrupt iTunes library after upgrade/crash.
    tt2

  • My older mac book pro and iMac are both running 10.6.8 and both have started running safari and email VERY slowly.  My new mac book pro running 10.9 is having no issues.  Is anyone else experiencing these issues?

    My older mac book pro and iMac are both running 10.6.8 and both have started running safari and email VERY slowly.  My new mac book pro running 10.9 is having no issues.  Is anyone else experiencing these issues?

    No noticeable speed differences running the four latest OSs on my machine.

  • My PowerBook G4 says that it's connected to wifi, but it still no internet connection. The connection will work for a while, and then I'll have to run diagnostics and it will work again for a few minutes and then stop working again. What's going on??

    My PowerBook G4 says that it's connected to wifi, but it still no internet connection. The connection will work for a while, and then I'll have to run diagnostics and it will work again for a few minutes and then stop working again. What's going on??

    Basic troubleshooting techniques for any problem
    Restart the computer = joy?
    Reset the router = joy?
    Restart the computer in Safe Mode = joy?
    ask yourself "What changed immediately preceding the onset of the problem?" = Anything... hardware, software, cabling, environment (interference source)
    ÇÇÇ

  • I got an ipod recently and i bought songs and apps already but i cant even get free things now without it asking for my billing details which i have already put in and i know for sure that i still have money on it

    I got an ipod recently and i bought songs and apps already but i cant even get free things now without it asking for my billing details which i have already put in and i know for sure that i still have money on it

    You need a valid payment method even for free items. If you know the payment method is valid then contact iTunes.
    Apple - Support - iTunes - Contact Us

  • RESTORING: At the moment I am downloading a movie on the itunes store my 8GB ipod touch (not my computer) (which I have already paid for) and I need to restore my ipod.  Will restoring it stop/delete my downloading movie? what else does it delete?

    RESTORING: At the moment I am downloading a movie on the itunes store my 8GB ipod touch (not my computer) (which I have already paid for) and I need to restore my ipod.  Will restoring it stop/delete my downloading movie? what else does it delete?

    Try DFU mode and then restore
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       
    When you restore via iTunes iTunes will download the firmware(ipsw) file. It could be that the microwave damaged the iPod and iTunes does not know what it is.

  • I have an IPad mini and I changed the Apple ID and the password almost one year ago and, for a while, a message asking me to sign in to iCloud pops- up constantly. My iCloud account is registered with an old email and password. I do not remember the

    I have an IPad mini and I changed the Apple ID and the password almost one year ago and, for a while, a message asking me to sign in to ICloud pops- up constantly. My ICloud account is registered with an old email address and password. I do not remember the password to my ICloud account, and ID address that my ICloud account is registered under is an old email adress which is deleted right now (the old mail account is deleted). I don’t have a rescue email adress and I don’t know the answers to the security questions, so I have no way of changing the ICloud password. A message asking me to sign in to ICloud pops up constantly, but I always just hit cancel. However, now I am unable to access Find My IPad. How do I get my ICloud account changed and registered to be under my current Apple ID (email) and password? It is possible to set the device as New Ipad?

    Welcome to the Apple community.
    If you are unable to remember your password, security questions, don’t have access to your rescue address or are unable to reset your password for whatever reason, your only option is to contact Apple ID Support, upon speaking to an operator you should explain that your problem is related to your Apple ID, this way you will not be charged for assistance, even if you don’t have an AppleCare plan.
    The operator will take you through some steps you may have already tried, however they need to be sure they have exhausted all usual approaches before trying to reset your account, so you should try to be helpful and show patience with the procedure.
    The operator will need to verify they are speaking to the account holder and may ask you some questions that only the account holder could know, and you will need to answer them if the process is to proceed.
    Once the operator has verified your identity they will send a message through to your device which contains an alpha numeric code, which you will need to read back to them.
    Once this has been completed they will send an email to your iCloud email address after a period of 24 hours, so you should check that mail is enabled in your devices iCloud settings.
    Upon receipt of the email, use the reset link provided to reset your password, after which you should be able to make the adjustments to iCloud that you wish to do.

  • I have Premier Elements 12 and recently changed my computer to an iMac. I want to re-register my software on the iMac but the Adobe system won't let me. Anyone have an answer? Cheers Brian

    I have Premier Elements 12 and recently changed my computer to an iMac. I want to re-register my software on the iMac but the Adobe system won't let me. Anyone have an answer? Cheers Brian

    Brian Chapple
    I did not see your post 4 until after I had posted just now.
    That is one of the drawbacks related to purchasing Premiere Elements as a download from Adobe...the download is specific to the Windows or Mac operating system to which it is downloaded. So all you have purchased that way are the installation files and a serial number for Premiere Elements 12 Windows. If you had purchased Premiere Elements 12 in the box packaging, that comes with a disc for Windows and a disc for Mac.
    How long ago did you purchase Premiere Elements 12 Windows? If within 30 days of purchase, you can look into a 30 day money back from Adobe. But you cannot purchase the box packaging from Adobe. It only offers the download purchase from it. You would have to buy from an authorized reseller if you wanted the boxed purchase.
    The way it is now, you will need to purchase new installation files and serial number for Premiere Elements 12 for your iMac.
    That is the situation that I believe exists. More information if needed.
    ATR

  • HT204053 I previously use an apple id , I have tried to reset and even changed the id on the settings on my phone but each time I try to update an apple apps , I keep getting the same old ID on my phone. What do I do?

    I previously use an apple id called *** @hotmail.co.uk, I have tried to reset and even changed the id on the settings on my phone but each time I try to update an apple apps , I keep getting the same old ID on my phone. What do I do?
    <Email Edited by Host>

    Is the same true for using the App Store with a desktop machine? Someone installed a program on my machine (the IT department) and I would like to install the updates but it was installed under a different Apple ID. This anyone know how to change, or work around this particular issue?
    Any thoughts or suggestions are greatly appreciated.
    Cheers

  • I have mac book pro and recently changed to Lion.  since then it will not recognise my epson r2880 printer telling me it is not connected when it plainly is with usb connection?

    I have mac book pro and recently changed to Lion.  since then it will not recognise my epson r2880 printer telling me it is not connected when it plainly is with usb connection?

    Turn off your printer.
    Go to System Preferences > Print & Scan > Printers window and delete the printer from the list, then add it back.
    Turn on your printer.
    Any difference?
    Here are some more tips from Apple Support article.

  • I have an iphone 4 and recently changed my apple id password. I went through the verification successfully. For some reason, I can't sign into the app store on my iphone using my apple id and password.

    I have an iphone 4 and recently changed my apple id password. I went through the verification successfully. For some reason, I can't sign into the app store on my iphone using my apple id and password.

    Apple doesn't monitor here. Best we can do is to push you to contact Apple directly.
    This is from the iOS Dev Center forum...
    http://devimages.apple.com/maintenance/
    We apologize for the significant inconvenience that our downtime has caused and encourage you to reach out to ourhttps://developer.apple.com/contact/ if you need any assistance.
    (Check under "Program Enrollment").
    Note that your program membership should have been automatically renewed if it lapsed during the downtime period.  If not, please be explicit about that in your support request.
    --- DrErnie

  • I have an ipod 5 and im changing my apple id. Is there any way to save all of my music and contacts?

    i have an ipod 5 and im changing my apple id. Is there any way to save all of my music and contacts?

    Why are you changing your ID?
    iTunes/app purchases are locked to the account that purchased them. For some actions like updating apps you have to sign into the account that purchased them. Just changing the ID does not not delete any media from the iPod.
    When you delete the iCloud account for the iPod should should be offered the option to leave contacts on the iPod. See:
    https://discussions.apple.com/thread/3418775?start=15&tstart=0

  • When I download itunes it won't run, i have tried running it and saving it, it doesnt show up anywhere??

    I can't figure it out, I mean I am not super computer savvy, but I have tried saving it and running it.  Neither option works, I can't even find the file after it downloads

    There is no itunes for Android

Maybe you are looking for

  • PeopleSoft Invoking BPEL process gets HTML returned and not XML

    I am executing a SyncRequestXmlDoc in PeopleCode to call a BPEL process. In an earlier demo environment this works fine and when I interrogate the log I get a correct Request and Response message : I have now installed SOA Suite and I am deploying to

  • Sound blaster audigy 2 zs platinum sound probl

    Ok So let me give you the specs on my computer first,?Windows xp home editionAbit IN9 32 MAX Mobo2 Gigs corsair xms ram2 8800ultra sli gpusLogitech?z-5300 SpeakersSound blaster audigy 2 zs platinum sound card2 Samsung 500 gig HD?I dont believe that m

  • Check Box Tree.

    Hi All,, Unfortunately, I knew that the Check box Tree was removed from the final release of Apex, but I have a problem and I do need to implement this functionality in my application. What I have tried so far is : 1- I tried to use Apex_Item.Check B

  • After first time installation, system did not restart, just hanged.

    Hello I am new to ur world of mac. I tried to install os x 10.4 on an intel pc. All went excellent. But at the end when it said to restart, it just hanged there and did not restart. I used the reset button, but it didn't boot error message was "B0 er

  • Blog and Muse stickey footer

    I have built a blog that seems to be working great with the exception of long pages (i.e.) when you get to Archive section. I am using a template built in Muse and it has a sticky footer. I am using this template for several other pages on the site a