2008 Jul 10 5:39 AM
Hi
I have used unpack keyword to convert number to char.
But sometimes the input is character.
So when it executes unpack stmt, it gives me a dump error
Bcox vendor is alpha numeric.
How to check for that
But if i give vendor code as 25, it should take as '0000000025'
if i give vendor as 'A001', it should not consider this stmt
UNPACK it_gatehdr-lifnr TO w_lifnr1.
waht is the solution for this..
Cheers
Christina
2008 Jul 10 5:42 AM
if i give vendor as 'A001', it should not consider this stmt
UNPACK it_gatehdr-lifnr TO w_lifnr1.
if not vendor CA sy-abcde.
UNPACK it_gatehdr-lifnr TO w_lifnr1.
else..
som thing else...
endif.
if i give vendor as 'A001', it should not consider this stmt
UNPACK it_gatehdr-lifnr TO w_lifnr1.
if not vendor CA sy-abcde.
UNPACK it_gatehdr-lifnr TO w_lifnr1.
else..
som thing else...
endif.
2008 Jul 10 5:42 AM
if i give vendor as 'A001', it should not consider this stmt
UNPACK it_gatehdr-lifnr TO w_lifnr1.
if not vendor CA sy-abcde.
UNPACK it_gatehdr-lifnr TO w_lifnr1.
else..
som thing else...
endif.
2008 Jul 10 5:58 AM
Hi,
use this..
IF it_gatehdr-lifnr GT 0.
UNPACK it_gatehdr-lifnr TO w_lifnr1.
ENDIF. With Rgds,
S.Bharani
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |