Age: 46 Joined: 05 Nov 2007 Posts: 725 Location: КраснАдар
Posted: Fri Dec 28, 2007 1:29 pm Post subject:
Недавно подымалась тема Передача range как параметра в Perform - она очень "созвучна" с Вашей проблемой.
В общем виде z-таблица должна иметь структуру:
SIGN TYPE SIGN
OPTION TYPE OPTION
LOW и HIGH - типизированы как нужный Вам параметр.
Age: 190 Joined: 04 Oct 2007 Posts: 1218 Location: Санкт-Петербург
Posted: Fri Dec 28, 2007 1:40 pm Post subject:
Можно использовать структуру RSSELECT и EXPORT/IMPORT to memory, если программы запущены в пределах одной сессии.
При асинхронном вызове IMPORT obj1 ... objn FROM DATABASE
Code:
TABLES mara.
SELECT-OPTIONS : so_matnr FOR mara-matnr.
DATA: lt_rs TYPE TABLE OF rsselect WITH HEADER LINE.
lt_rs-FIELDNM = 'MARA-MATNR'.
LOOP AT so_matnr.
MOVE-CORRESPONDING so_matnr TO lt_rs.
APPEND lt_rs.
ENDLOOP.
EXPORT lt_rs TO MEMORY ID 'ZRS'.
free lt_rs.
* second program.
IMPORT lt_rs FROM MEMORY ID 'ZRS'.
RANGES: r_matnr FOR mara-matnr.
LOOP AT lt_rs WHERE FIELDNM = 'MARA-MATNR'.
MOVE-CORRESPONDING lt_rs TO r_matnr.
APPEND r_matnr.
ENDLOOP.
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.