cancel
Showing results for 
Search instead for 
Did you mean: 

Basic Start Date Updation.

Former Member
0 Kudos

Hi All,

In my script I have a field called Start date: &CAUFVD-ERDAT&. But now I want to remove that field and , I need to add to two more fields called

1. Basic start : &caufvd-GSTRP&

2. Basic Finish: &caufvd-GLTRP&.

I did this modification in the lay out already.

And now, how to make this modifications in the print program ?

I am new to scripts.

Any needful help would be awarded.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member181962
Active Contributor
0 Kudos

Hi Priya,

The changes that you need to do in the print program don't need any scripts knowledge.

See where is the structure caufv is being populated(Before the call to the fm WRITE_FORM with your text element name).

In that select statement, include your field also.

Then the values will come to the script because you have already done the changes to the layout.

Regards,

Ravi

Former Member
0 Kudos

Ravi,

I already tried this. In my select its like this.

select single erdat

into (ws_erdat)

from aufk

where aufnr = caufvd-aufnr.

What I need to use insted of "AUFK' table.

Bcoz Gstrp, and GLTRP is not available there right..

Former Member
0 Kudos

Hi Priya,

You can use the same 'AUFK' table only, but need to choose the relevant fields and then use them in the select query.

Following are the fields of table AUFK, which might be useful to you:

ERDAT Order master created on

SDATE Starting date

USER7 Date work begins

USER8 Date work ends

IDAT2 Completion date

IDAT3 Close date

For example you take SDATE and IDAT3 for Start and End, then the select query should look like:

select single SDATE IDAT3

into (ws_sdate, ws_idate)

from aufk

where aufnr = caufvd-aufnr.

Hope this helps.

Please reward if useful.

Thanks,

Srinivasa