Age: 175 Joined: 04 Oct 2007 Posts: 1218 Location: Санкт-Петербург
Posted: Sat Nov 29, 2008 4:46 pm Post subject: Saving the selection variant
Saving the selection variant during the program (saving the settings)
Selection table as a variant:
So after example in a report for mass updates an extensive selection was made to be narrowing before or after this selection process as a variant be stored for later restore them.
Code:
*Variante
DATA:
seltab TYPE TABLE OF rsparams WITH HEADER LINE,
g_repid LIKE sy-repid.
d_text TYPE TABLE OF varit WITH HEADER LINE,
d_varid LIKE varid,
d_variant LIKE rsvar-variant. " 14 Char
*---------------------------------------------------------------------*
* Form selektionstabelle_sichern
*---------------------------------------------------------------------*
FORM selektionstabelle_sichern.
* Variantennamen bilden
CONCATENATE 'ZU'
sy-datum+2(6) sy-uzeit INTO d_variant. " max 14
* Variantentabelle füllen
MOVE:
g_repid TO d_varid-report,
d_variant TO d_varid-variant,
'F' TO d_varid-transport,
'A' TO d_varid-environmnt,
'X' TO d_varid-protected,
'1' TO d_varid-version,
sy-uname TO d_varid-ename,
sy-datum TO d_varid-edat,
sy-uzeit TO d_varid-etime,
sy-langu TO d_varid-mlangu.
* '20' to d_varid-xflag1,
* '00' to d_varid-xflag2.
*Beschreibungstext füllen
MOVE: sy-langu TO d_text-langu,
g_repid TO d_text-report,
d_variant TO d_text-variant.
CONCATENATE sy-uname sy-datum sy-uzeit
INTO d_text-vtext SEPARATED BY space.
APPEND d_text.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.