Question:
Hi.
What is a context in ABAP?
I can create it in transaction se33, but I don't know what can I do with.
Where and when do I have to use it? Or maybe is it useless?
Can anyone tell me something about context?
BM.
Answer:
Hi.
What is a context in ABAP?
I can create it in transaction se33, but I don't know what can I do with.
Where and when do I have to use it? Or maybe is it useless?
Can anyone tell me something about context?
Read the F1 help. It won't help ( I looked, and it is one of the worst examples of help I've ever seen. Including linux man pages), but somebody will tell you to anyway.
Whatever it does, I've managed without it so far.
Answer:
Read the F1 help. It won't help ( I looked, and it is one of the worst examples of help I've ever seen. Including linux man pages), but somebody will tell you to anyway.
Whatever it does, I've managed without it so far.
One of the best replies I've seen this year, well done Sark...
_________________
The Doc
Magna Grand Docot of the Tuly Idiot Order
2007 Basic Rules
Answer:
Hi.
The help for this is indeed cr*p but I can quote from my ABAP reference manual:
“To avoid unnecessary data selection , SAP uses the concept of the data context. A context is a buffer created on the application server whose contents are available to all applications and users working on that server. In the context, records from one or more tables that logically belong together are saved. When a record is accessed for the first time it is read from the database and stored in the context. If another application wants to read the same record then that record does not have to be extracted from the database again – it is made available straight from the context”.
So that’s cleared that up then! If you want to use it, commands would include CONTEXTS, SUPPLY and DEMAND. In summary it could be used to access SAP tables which have a core function (e.g. calendars, currencies) in a more efficient manner. But I haven’t needed to use it in my 7 months ABAPing. No doubt the gurus can add more ….
Regards.
Answer:
Well, I've been coding ABAP for 13 years, and I've never used contexts...
But looking at New ABAPer's reply, I'd say that EXPORT TO MEMORY and IMPORT FROM MEMORY would do a similar job... (which is what I use)
And here's the latest occurrence:
FORM build_availability_flag_lookup.
IMPORT tab_avail TO tab_avail FROM MEMORY ID 'ZAO_METRIC_REPORT02'.
IF tab_avail[] IS INITIAL.
SUBMIT zao_so_sapown WITH p_year = p_year
WITH p_month = p_month
WITH p_metric = 'X'
EXPORTING LIST TO MEMORY
AND RETURN.
IMPORT tab_avail TO tab_avail FROM MEMORY ID 'ZAO_METRIC_REPORT02'.
ENDIF.
SORT tab_avail.
ENDFORM. " build_availability_flag_lookup
_________________
The Doc
Magna Grand Docot of the Tuly Idiot Order
2007 Basic Rules
Answer:
In my work with ABAP I've never used context to...
and that is why I've been curious.
Thank you for all your answers.
Regards
BM.