Application Development 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: 

HR - problem when calling PFAL transaction

Former Member
0 Kudos

Hello !

I wrote this code :

SUBMIT RHALEINI "(= PFAL TRASACTION)

WITH PCHPLVAR = GS_E1PLOGI-PLVAR

WITH PCHOTYPE = GS_E1PLOGI-OTYPE

WITH PCHOBJID-LOW = GS_E1PLOGI-OBJID

WITH PCHZTR_D = 'X'

WITH PCHZTR_A = SPACE

WITH INSERT = 'X'

WITH UPDATE = SPACE

WITH RCVPRN = GC_RCVPRN

WITH MESTYP = GC_MESTYP

VIA SELECTION-SCREEN.

Unfortunately the program is being called but

In it's selection screen I get PCHZTR_A = 'X' and

not what I asked for ....

This means I can't establish reporting period to be

'Today'. When submitting the program it's always

come with reporting period = 'ALL'.

Has anyone else got this problem ?

What can I do ? Am I doing something wrong ? ...

I appreciate your help ,

Thanks, N.S.

1 ACCEPTED SOLUTION

suresh_datti
Active Contributor
0 Kudos

Hi Nitzan,

You can save all your selection screen optiions in a variant for the program RHALEINI & then use the SUBMIT statement with the USING SELECTION-SET <variant> option.

Regards,

Suresh Datti

4 REPLIES 4

suresh_datti
Active Contributor
0 Kudos

Hi Nitzan,

You can save all your selection screen optiions in a variant for the program RHALEINI & then use the SUBMIT statement with the USING SELECTION-SET <variant> option.

Regards,

Suresh Datti

0 Kudos

Hi Suresh !

Thank you for your answer.

I think your solution will work.

I have also thought about it but I didn't like it -

I do not like to depend on variants in my program ...

I always afraid someone will delete them ....

But maybe there is no other solution ...

Thanks ,

N.S.

0 Kudos

>>> always afraid someone will delete them

You can always protect the varaint using the 'Protect Variant' attribute of the variant.

Coming to the issue, the report RHALEINI is tied to the Logical database PCH wherein its SELECTION SCREEN is defined. Which is why the 'ALL' option is defaulted when you SUBMIT via SELECTION-SCREEN. I can't think of any option other than using a Varint in your scenario.

Regards,

Suresh Datti

0 Kudos

Thank you again , Suresh.

N.S.