on 11-20-2014 7:05 AM
Dear Folks,
I have multiple fields for that i have to pass date and time which should be write in Include.
Please guide me how to do it in ABAP way. or any sample code.
- Regards,
Amol
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Srinivasn,
I have checked some forums.
http://scn.sap.com/thread/3508902
In above forum where they are geeting field symbol <wa_s_lfa1>.
I mean how can find BSEG structure to pass value?
Hi Amol,
zh_date = sy-datum wont work.
There is one way of achieving your requirement-
I will explain with an example here-
I have 2 tables for eg-
ZTEST1 ( with two fields mandt and matnr only in ECC)
ZTEST2 (with two fields mandt and matnr only in ECC)
step 1 Using LTRS - table settings I extend table ztest1 with two additional fields ZHDATE and ZHTIME.
step 2 Using LTRS - rule assignment and add logic in rule assignment as below rule -" event related"
and called an include specifically for ZTEST1 table
which has code-
if <WA_S_ZTEST1>-MATNR NE SPACE.(WA_S --indicates source fields)
<WA_R_ZTEST1>-ZHDATE = SY-DATUM.(WA_R --indicates result set fields)
<WA_R_ZTEST1>-ZHTIME = SY-UZEIT.
ELSE.
SKIP_RECORD.
ENDIF
I perform the same set of steps again for table ZTEST2 with a new include and same logic, just replaced ZTEST1 with ZTEST2.
You cannot have a common include for two tables if you are going for event related rule type.
Hope this helps you.
Regards,
Saritha K
.
Hi Amol,
Can you please explain your requirement with some example here?
Above statement is not very clear.
Regards,
Saritha K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.