2009 Mar 04 5:05 AM
Hi all.
my requirement is i have obj key with length 70
obj_key is combination of 4 fields with lengths as follows BUKRS-4
BELNR-10
GJAHR-4
BUZEI -3
how to fetch these field values exactly from objkey into different variables as i dont know where exactly these fields occur in the length 70.
you have to check the value of one OBJKey and take the offsets as the lenght of the fields correspondingly whether they are from right -> left or left -> right in the OBJKEY value.
2009 Mar 04 5:07 AM
you have to check the value of one OBJKey and take the offsets as the lenght of the fields correspondingly whether they are from right -> left or left -> right in the OBJKEY value.
2009 Mar 04 5:23 AM
but i dont have any sample value of obj_key.
plz provide OBJ_KEY sample values if you are have in any server in the table FDM_DCOBJ
2009 Mar 04 5:09 AM
Hi,
You need to find the occurrence and
Check this Code..
Bukrs = obj_key(4).
belnr = obj_key+5(10).
GJHAR = obj_key+15(4).
BUZEI = obj_key+19(3).
2009 Mar 04 5:11 AM
Use Offset like
year = sy-datum+0(4)
Month = sy-datum+5(2)
day = sy-datum+7(2)
Regards
Shashi
2009 Mar 04 5:29 AM
Hi,
Sample objkeys will be like this....
300001000007552008001
300001000007772008001
300001000007712008001
300001000007312008001
Hope its helps
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |