0% found this document useful (0 votes)
28 views

How To Refer To A Structure From Another Program Using Field Symbols

Uploaded by

margincall199501
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
28 views

How To Refer To A Structure From Another Program Using Field Symbols

Uploaded by

margincall199501
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 7
stv, raasaw ow ontario marcas tom he gost utr aay] SAP Cary Community ‘Ask Queston Wits 2 Bg Post Search Questions and Answers glenn May 08 2008 0723 AM How to refer toa structure from other program using field-symbols 0 280 Views o SS Feed 4 Ihave @ requirement to refer tothe variable of (subscreen) program ((SAPLCOMK)RESBD-MATNR,) and change its value when am in the main program (sapleoin ). how torefer that using Field-symbols? cegards ‘Add@Comment | Alert Moderator stv, raasaw ow ontario marcas tom he gost utr aay] SAP Cary Assigned Tags [ABAP Development ‘Similar Questions Get value from another program using assign feld symbol Former Member Nov 23.2018 RFC_READ_TABLE dump while reacing TOO6- Urgent ‘Subramony AR Subramony Ramskeehoan Nov 22,2018 Join the Conversation gap SAP Teched ‘Tune infor tech talk. Stay for inspiration. Upskil your future. ‘SAP BTP Learning Group © SAP Business Technology Platform Learning Journeys. aii Coffee Corner Be oniveren coterconerasassin coin 3 Answers. panwaresaconiuetenstNehowineleiooaticurtomaer rogram stv, raasaw ow ontario marcas tom he gost utr aay] SAP Cary Sortby: Votes | Newest | Oeost Remi Bhaskara May 05, 2008.21 08.25 aM & Hi ° Ty There are aternatives. 1) Like what you said, using Pointers FLELD-SyMBOLS: IVPE ztab_resbé, “Table type of line type 8ESBID TVPE resbé. ASSIGN ("(SAPLCOMK)RESBO[]") TO . IF fs_resbd> 15 ASSTGNED. so-> €fs_resbd> has the entire structure // Read the required field READ TABLE NITE KEY keyfleld = value ASSIGNING , AI efs_pesbd_wa> 15 ASSuGNtD -natar = newvalue. eNorF. eNOTF. 2) Using the FM : DYNP_VALUES_ READ DATA ¢ BEGIN OF dynpre_values OCCURS 0. [INCLUDE STRUCTIRE dynpread sav, taas aw ow ontario marcas tom he gost utr aay] SAP Cary DATA : END OF dynpro_values. DATA + Lfleldvalue LIKE resbd-natnr. “or dynpread-fieldvalue REFRESH aynpre_values CLEAR éynpro_values ynpro_values-féelcnane = “ScreenStruct-MATNR APPEND dynpro_values. CLEAR dympro_values. (CALL FUNCTION "DYN _WALUES_ READ" EXPORTING yname = "saPLconk éynumb = ‘SereenNo" transiate_to_vpper = °° TABLE ynpfields = dynpre_values. READ TABLE dynpro_values INDEX 2. 1 #lelévalue = dynpro_valves-Fieldvalue Cheers, Remi ‘Adda Comment | Alort Moderator | Share Former Member May 05,2008 308-42 AM a& Hi ° stv, tas aw ow ontario marcas tom he gost utr aay] SAP Cary TW Aspointed out inthe DATA FIELO-SYMBOLS: TYPE ANY. ASSIGN((SAPLCOMK)RESBDI]) TO , + For Changing the value + wLvalue contains the clue you want to change itto Case sy-subre, When 0, = value, When Endcase. Regards Rajuchitale ‘Add2Comment | Alert Mederator | Share Former Member May 05,2008 2109:37 AM A& winen tried to assign the value of it using ° TW ASSIGN ((SAPLCOMK)RESBDI]) TO snot assigned and returns sy-subreas 4 ‘Adda Comment | Alort Moderator | Share e Former Member ec 22.2010 381009 AM “Thanks everyone, your replies wore helpful Luke | Stare | Alert Moderator ‘Add a Comment ‘Show all Before answering ‘You should only submit an answer when you are proposing a solution to the poster's problem, Ifyou want the poster to clarify the question or provide more information, please leave a comment instead, equesting additional details. Whon answering, please include specifics, such as step- by-step instructions, context fer the solution, and Inks to useful resources. Also, please make sure that you answer complies with our Rules of Engagement, Rules of Engagement Know someone whe can answer? Share alink to this question. You must be Logged in to submit an answer. Please provide a distin ancwer and use comment option fr clatying purpo lanwaresanconuestenstoehowineleiooatueurtomaher grants stv, rasa ow ontario marcas tom he gost utr aay] SAP Cary Find us on Pavacy ems ot Use Legal iscosure ‘copyraht Nester Suopot

You might also like