Application Development and Automation 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: 
Read only

Save and map a date in object.

Former Member
0 Likes
749

Hi Guru,

I want to extract the value of period-paydt (pay date) and save it in a variable gw_date .

FORM add_field USING p_field p_value p_type p_required.

FIELD-SYMBOLS:<field>.

ASSIGN (p_field) TO <field>.

<field> = p_value.

PERFORM format_field USING p_field <field> p_type p_required.

ENDFORM. "add_field

PERFORM add_field USING 'gt_220emplpaydtl-paydate' st_pernr->period-paydt 'D' ''.

gw_date = period-paydat ???

IF not st_pernr.

PERFORM add_field USING 'gt_220emplpaydtl-paydate' gw_date D' ''.

ENDIF.

Thanks a lot in advance.

Soufiene

Hi Guru,

I want to extract the value of period-paydt (pay date) and save it in a variable gw_date .

FORM add_field USING p_field p_value p_type p_required.

FIELD-SYMBOLS:<field>.

ASSIGN (p_field) TO <field>.

<field> = p_value.

PERFORM format_field USING p_field <field> p_type p_required.

ENDFORM. "add_field

PERFORM add_field USING 'gt_220emplpaydtl-paydate' st_pernr->period-paydt 'D' ''.

gw_date = period-paydat ???

IF not st_pernr.

PERFORM add_field USING 'gt_220emplpaydtl-paydate' gw_date D' ''.

ENDIF.

Thanks a lot in advance.

Soufiene

4 REPLIES 4
Read only

Former Member
0 Likes
716

Hello Soufiene,

where is the problem?

Regards

David

Read only

0 Likes
716

Hello David,

This code is ok , it works now

Wrong

gw_date = period-paydt.

Good

MOVE st_pernr->period-paydt to gw_date.

Thanks

Soufiene

Read only

Clemenss
Active Contributor
0 Likes
716

using of the word 'object' will not necessarily assign this to the ABAP objects forum.

Code not formatted as code is not to be discussed.

Regards,

Clemens

Read only

Former Member
0 Likes
716

I fixed my problem .

Thank you for your help.

Soufiene