Can we change the value of a variable in the driver program from sapscript?

Hello Experts,
I am currently developing a form wherein I need to change the value of a variable defined in the standard
driver program through the sapscript form. Unfortunately, I cannot customize this standard program since this is used by many other
subsidiaries. So, is there anyway that I can change a variable defined in the driver program via sapscript?
I tried to use a PERFORM to change its value but it is not working.
I hope you can help me guys. Thank you and take care!

SAP SCRIPT:
/: PERFORM GET_ATTNDEE_INFO IN PROGRAM ZHR_TRNG
/: USING &PPVAR-EOBJD&
/: CHANGING &ATTND&
/: ENDPERFORM
Executable Prog.:
REPORT ZHR_TRNG.
FORM GET_ATTNDEE_INFO TABLES IN_PAR STRUCTURE ITCSY
OUT_PAR STRUCTURE ITCSY.
DATA : LOC_CODE(8),
WF_NAME LIKE PA0001-ENAME, "----Location Code
WF_SOBID LIKE HRP1001-SOBID. "----Business Event Code
DATA: BEGIN OF ITAB_ECODE OCCURS 0,
ECODE(8),
END OF ITAB_ECODE.
DATA: NAME1 TYPE STRING.
READ TABLE IN_PAR INDEX 1.
LOC_CODE = IN_PAR-VALUE.
SELECT SOBID FROM HRP1001 INTO WF_SOBID
WHERE OBJID = LOC_CODE AND OTYPE ='E' AND PLVAR = '01' AND SCLAS = 'P'.
APPEND WF_SOBID TO ITAB_ECODE .
ENDSELECT.
IF SY-SUBRC = 0.
LOOP AT ITAB_ECODE.
SELECT SINGLE ENAME FROM PA0001 INTO WF_NAME
WHERE PERNR = ITAB_ECODE-ECODE ." AND ENDDA >= '31.12.9999' .
CONCATENATE 'Mr ' WF_NAME ',' NAME1 INTO NAME1.
IF SY-SUBRC = 0 .
OUT_PAR-NAME = 'ATTND'.
OUT_PAR-VALUE = NAME1.
APPEND OUT_PAR.
ENDIF.
ENDLOOP.
ENDIF.
ENDFORM. "GET_USR_INFO

Similar Messages

  • How can I change the itunes store from Swiss to the Italian one on my ipad2 with new software ios6? Thanks

    How can I change the itunes store from Swiss to the Italian one on my ipad2 with new software ios6? Thanks

    See More Like This to the right of this post!

  • Can i change the file extension from .html to .cfm in Muse?

    Can I change the file extension from .html to .cfm in Muse?  Then I could use my old file names.

    Muse only supports .html as a page extension at this time.
    Thanks,
    Vinayak

  • How can I change the desktop language from english into german??

    how can I change the desktop language from english into german??

    See:
    *http://www.mozilla.com/en-US/firefox/all-beta.html

  • How can I change the photo pixal from 1000 to 500?

    how can I change the photo pixal from 1000 to 500?

    File -> Export
    In the resulting dialogue use the Size option to set the maxium dimension to 500 pixles.
    This User Tip
    https://discussions.apple.com/docs/DOC-4921
    has details of the options in the Export dialogue.

  • Can i change the back Color from the IPhone 5c

    Can i Chang the back Color from the i-Phone 5c .Now i Heven Pink and i want Blue Shoud i go to a Apple störe to do that and how much does it cost!!!

    Apple does not do this at all.
    Not sure if anyone does this.  if they do, it will void the warranty

  • How can I change the shipping time from 1-2 weeks to 2 days

    How can I change the shipping time from 1-2 weeks to 2 days. Thank you in advance.

    Right you are, R_Kelly. Thanks, that did the trick. Ukgaurav also pointed out some choices in the Displays and Cursors Preferences with which I fine-tuned the tool cursor appearance.

  • Can we change the Work Repository  from Development to Execution?

    hi,
    Can we change the Work Repository from Development to Execution? if yes then how can we change it?
    Regards,

    AMSI wrote:
    hi,
    Can we change the Work Repository from Development to Execution?No .
    if yes then how can we change it?
    Regards,

  • How can I -change the currency symbol from Pounds to Euros in a spreadsheet?

    How can I change the currency symbol from Pounds to Euros in a spreadsheet?

    Assuming davyfromGib is asking about AppleWorks rather than Pages . . .
    If running AW under OS X, System Preferences settings allow you to use the euro rather than pound sign in AW's currency-formatted cells:
    System Preferences > Language & Text > Formats > Currency (set to Euro)
    AW respects this setting in choosing how to display currency format.
    But do note that if you later change the System Preferences back to pounds, the currency-formatted cells in the AW spreadsheet will also change to pounds.

  • Hey i have a iphone 4s 64gb but and using the internet share .. how can i change the nat type from strict to open please help me :)

    hey i have a iphone 4s 64gb but and using the internet share .. how can i change the nat type from strict to open please help me

    You will have to configure that with your router. Type your router's IP address in the search/domain bar and allow port forwarding.
    What is requiring you to have an open NAT? That issue is usually for gaming consoles, etc.

  • How can we disable the 'Improvement Program' from all the apps in TCS5?

    How can we disable the 'Improvement Program' from all the apps in TCS5, so that the end users are not able to see the option in the help menu?
    We have tried changing the value of bUsageMeasurement (HKLM\SOFTWARE\Policies\Adobe\(product name)\(version)\FeatureLockdown) to zero, but it did not help.

    You’re probably going to have to contact Support on that one.

  • Change values of driver program from sapscript form...

    Hello Experts,
    Can we change the values in driver program from the sapscript program during runtime? Because it always
    generates 2 pages well in fact the main window only has 1 line of content! I also cannot change the driver program
    since it is a standard and they won't let me. Hope you can help me guys.
    Thank you and take care!

    Hi,
    I don't think you need to make any changes in the Driver Program,just check in your Script
    1. are you triggering a NEW-PAGE any where ,where its not needed,
    2. check in the Standard Attributes of the page have you configured any other page there in NNEXT PAGE.
    Regards,
    Neha

  • Change sapscript without changing the driver program

    Hi! Abapers
    is there any way out to modify sapscript for the transaction code ME22N without changing the driver program.
    thankx
    Amit
    TCL

    Hi,
    Yes you can change the form to your needs and use the text elements available in print program and if any thing which you are needed is not available write performs in your script itself and try to fetch your data. configure your new form in nace transaction.
    Thats it..
    Reward if find useful

  • How can I change the media info from Concert Film to Music Video in ITunes 11.01.12

    I purchased a concert film a while back from the ITunes store, and in previous versions of ITunes, I had been able to change the media info from concert film to music video so I could watch it in my library (and any devices) without losing any of my library when I synced my devices (could only have either music, movies or tv shows on device - stupid I know), now with the new version, that option is greyed out, so I can't change anything, is there any way around it?
    Thanks so much!

    When you say "remove his account", do you mean remove his Apple ID as well as all his stuff (music, movies, and whatever else is housed in iTunes)?  If so, delete all his stuff (music, etc.), have him deauthorize the computer (Store > Deauthorize This Computer), and sign out of his account (Store > Sign Out) and then sign in to yours.
    If all you want to do is remove his Apple ID and not fuss with his stuff, then things get more complicated, because you do not own his stuff.

  • How can I change the default program for the external applications editor?

    I have read the on line directions for this and it reads "select a file type in the left pane."   I do not see where this is in the left pane.  All I see in the left pane is "Browser start pages" and a "How do I " Pane.  Nothing with file types.

    Hello,
    Welcome to Adobe Forums.
    In order to change the default program for the external applications editor. Please follow the steps as mentioned below.
    Click on Edit menu then choose preferences.
    Once the preferences dialog box open.
    click on file editors.
    On the Left pane you will find all the file types which you want to edit .
    On the right hand side you will find the editors for that specific file type.
    If you want to add any other application you need to click on + symbol at the top of right pane.
    Select the path of that application which you want to apply.
    clcik on open.
    If you want to make it primay you can click make primary option available at the right hand top. For more detials please check the screenshot below.
    Regards,
    Rajeev

Maybe you are looking for

  • How can I Integrate FCKEditor 2.6 in APEX???

    Hello! I want integrate FCKEditor 2.6 in Apex and i need your help. Now I use the standard html editor of Apex but i don't like the code generated for the editor... For example, I write a text and this is the code generated for the size: size="7" <=

  • Transport Request got failed due to Source system does not Exist

    Dear All, I Have collected All data soruces which are related to R3 data sources and Flat File data sources... After import the transport request it got failed due to Flata file source system does not exist in BI quality system. But all data sources

  • TA25252 ram increase on powermac g3

    is there anyway of increasing the ram on a blue and white power mac g3 to (for example) 8 gb because i really like the look of the g3s case and i want to make it a faster mac!

  • App updates in iOS 7

    Did I understand that the apps we're suppose to update themselves rather than going to the App Store and clicking on update all?

  • Envelope formats

    Some how I have lost my special envelope formats in Address Book on my iMac that is running 10.4.11. I still have the formats on my MacBook that is running 10.5.4. Is there any way I can get them back on the iMac. Thanks