cancel
Showing results for 
Search instead for 
Did you mean: 

SAP query and abap query

MaDo
Explorer
0 Kudos

I want write a code that can give me this result.

As an example. i have selection field Z1 I will but in it the date I want search about it.

But I have another extras field I want it give me the billing qty based on last six month before the date I wrote in Z1

fkdat = ast six month before the date I wrote in Z1<br>
Sandra_Rossi
Active Contributor
0 Kudos

Don't you want to use a selection screen variant to calculate automatically today - 180 days?

By selecting the variant it would propose 14.11.2021 to 13.05.2022

Accepted Solutions (0)

Answers (1)

Answers (1)

dhanudjro
Participant
0 Kudos

If you want six months back date.

CALL FUNCTION 'CCM_GO_BACK_MONTHS'
EXPORTING
currdate = Z1<br>
backmonths = '006'
IMPORTING

newdate = fkdat.

MaDo
Explorer
0 Kudos

How can I use it in an INFOSET?

Sandra_Rossi
Active Contributor
0 Kudos

Don't use function modules which are not released by SAP, you could be surprised by the logic implemented by SAP, and they could be removed by SAP in upcoming release.