on 2013 Dec 12 9:43 AM
Hi ,
I was using the table operation expression in BRF+. I was trying read first line of table lt_employees into a structure . The issue is with this structure.I have 2 structures zsemp and zsemp_temp. ZSEMP is created automatically when the table lt_employees is created.The system only pics this structure and not the second one altought it has the same line type as the first structure.
The other thing is that if i use read all lines expression the target data object can only be lt_employees??The system proposes only this table though there is another table of the same line type.What is the use of reading all the lines of a table into the same table again?I may use a work around using assignment expression but what if i need all the rows that satisfies a particular condition?
Any comments?
Thanks in advance,
Dushyanth
.
Request clarification before answering.
When you assign context in table operation expression, it propose 'best match' & confirmation box. You are welcome to keep the proposed result or change the result object (of same data object type) any time by selecting a small icon called graphical access.
1. So you can changing result object. Make sure its part of contexts (in Ruleset or Function).
2. Again, you can change the result object.
If source & Target table data object is same & has some conditions, then it will retains only those records which matches with conditions in the same table. Interesting, Isn't it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Thank you for the reply.Let me put up a series of pictures so that i can make sure i got you meant completely.
ZSEMP is what system proposed. Now i guess the icon after ZSEMP must be the graphical access icon that you mentioned.when i click on it , the following pops up
I have hit the search button and it showed me ZSEMP and LT_EMPLOYEES.But i cant see the structure LS_EMPLOYEES which has the exact structure as ZSEMP is.LS_EMPLOYEES is added to function context in which the expression exists.I even have a ruleset variable ls_emp_temp but it does not show up.
I agree to the fact that if source and target are same then it retains some records only based on conditions.But this is better done using delete operation.However if i can't use another table as target object then how would i assign some of the lines of one table to the other ?
Please correct me if i was wrong any where in what i showed.
Thanks in advance ,
Dushyanth
User | Count |
---|---|
73 | |
18 | |
10 | |
9 | |
7 | |
5 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.