on 08-17-2016 9:08 AM
Hello Expert team,
We have an export structure (BRF to SAP) bind to a DDIC structure. This structure has a field, which has the domain DATUM (8 char string). In BRF+, it appears as timepoint, which is (I suppose) a BRF defined structure.
As we are trying to use in our code the original DDIC structure, the BRF+ program call won't run (dump) as data type incosistency. This is obvious, as the BRF+ is trying to fill a 8 char string with a structure.
Could you please advice, how could we solve this issue easily? We would like to prefer to keep the DDIC data bind. Is there a way to export this "brf internal timepoint" format as a 8 char string to the DATUM domain?
Thanks for your advice in advance!
nwould it be possible to paste your code here, I can then propose a more appropriate solutuion.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Imre,
To convert from the BRFplus to the DDIC structure, you would need to write a conversion routine to read the BRF+ ts_range-r_low_value / ts_range-r_high_value and move them to your structure.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Imre,
Like Carsten said if you were to use the code template you would see that a BRF+ structure is created with components as shown below:- la_IV_DATUM-type = [INSERT CONTEXT VALUE HERE OR DELETE THE LINE].
la_IV_DATUM-date = [INSERT CONTEXT VALUE HERE OR DELETE THE LINE DEPENDING ON YOUR TIMEPOINT TYPE].
la_IV_DATUM-time = [INSERT CONTEXT VALUE HERE OR DELETE THE LINE DEPENDING ON YOUR TIMEPOINT TYPE].
la_IV_DATUM-timestamp = [INSERT CONTEXT VALUE HERE OR DELETE THE LINE DEPENDING ON YOUR TIMEPOINT TYPE].
GET REFERENCE OF la_IV_DATUM INTO lr_data.
ls_name_value-value = lr_data.
INSERT ls_name_value INTO TABLE lt_name_value.
So you can directly assign your ddic bound variable to the DATE component of this structure.
Also the generated class contains methods for data conversion which you could use before making the BRF+ process call.
Regards,
Shweta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.