Moving data to a structure
I am working on sales order-VA01.
Once i fill the VA01 Transction all the input parameters should go to an external database system and get the freight rate back. However the external system can read data only in structure CHAR format or STRING format.
My Apporach for this was i created a structure in SE11 with all the input parameters in VA01. However when i created the structure i had to create data element and domain for some of the fields as CHAR format. So when i input all the parameters in VA01 how would the structure recognize that a particular input is for a particular fiels in sturture.
Eg - When i input the shipping date in VA01 it is in DATS format. However in the structure the field is Delivery date with CHAR format.
So the date that i enter in VA01 should get into the structure in CHAR format.
SO do i need to move all the values i input into structure from VA01.
If so how can i do this.
Any help on thsi will be highly Appericiated.
Thanks in advance.
What you can do is the following:
- create an new structure using the SE11 and combine the
fields of VBAK and VBAP that you need for the
- use the same names as VBAK/VBAP but only character
- fill the structure using the MOVE-CORRESPONDING command
This command transports the values to name identical
fields and it should do a type conversion.
Just check it out...
Some points would be nice if that helped a bit