Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problem while creating HR report with PNP LDB

Hi Experts,

I am working on HR Report using LDB PNP.

In HR REPORT CATEGORY,i have mentioned "___00003" in Master Data radio button.

Now i can create my own selection screen.In my Selection-Screen i am using pushbutton.

Code is:

SELECTION-SCREEN:

PUSHBUTTON 5(15) but1 USER-COMMAND cli1,

PUSHBUTTON 30(15) but2 USER-COMMAND cli2.

INITIALIZATION.

but1 = 'PDF FORMAT'.

but2 = 'FILE FORMAT'.

AT SELECTION-SCREEN.

CASE sscrfields.

WHEN 'CLI1'.

PERFORM PDF.

WHEN 'CLI2'.

PERFORM FILE.

ENDCASE.

While executing i have clicked on 2nd pusbutton.

It is going to CASE and also i am getting value of sscrfields = CLI2 .

also sy-subrc = 0.

but after that it is not going to WHEN condition.

Can anybody plz help me out in this.

Regards,

Ankur

Not what you were looking for? View more on this topic or Ask a question