Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

convert char 10 to char 20

Former Member
0 Kudos

hi all ,

I am having a doubt regarding the awkey type char 20 and vbeln type char10  How to compare the awkey  = vbeln (leads to the mismatch datatype )

With thanks,

Maha.

5 REPLIES 5

former_member620069
Participant
0 Kudos

Hi,

Use CONVERSION_EXIT_ALPHA_OUTPUT,..FM pass your 20 char awkey .

Regards,

Srini.

Former Member
0 Kudos

Hii Mahalakshmi

just deifne both varibale to same data type in your internal table

you must be suing it for all entries in table statement.

Regards

Gaurav

VenkatRamesh_V
Active Contributor
0 Kudos

Hi Mahalakshmi,

Try.

awkey+0(10).

Regards,

Venkat.

raymond_giuseppi
Active Contributor
0 Kudos

First look for AWTYP, then look in table TTYP for this value, you will usually get the name of the FM that SAP uses to access original document from FI, sometimes you will also get a structure to be used to map fields.

for example VBRK, FM is AC_DOCUMENT_SENDER_VBRK, in  the source you will find no conversion,no structure, so just use a basic MOVE. Of course try to not use some FOR ALL ENTRIES as its syntax rules won't accept the comparison, if you feel compel to use a FOR ALL ENTRIES you must define a second field with same length as required, and use MOVE statements to fill it...

Regards,

Raymond

Former Member
0 Kudos

Recently I come up with this command:

UNPACK lv_variable1 TO lv_variable2.


You can unpack value of vbeln to variable that is type of awkey and than compare them.


Br,

Mario