Skip to Content

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

PR Smartform for getting Approver name

Hi Abap Expects,

i am new to abap, i have developed Smartform for PR print out.

In that i need to print level of Approver Name with Approval Date, Actually i am getting all the Approver Name correctly.

but the problem is, i need to print name and date like this

Approver1    Kavitha   date

Approver2    Gokul   

Approver3    Seetha  

but now i am getting, name like below

Approver1    Kavitha   date

Approver2        

Approver3       

Approver1    Gokul   date

Approver2      

Approver3     

Approver1    Seetha  date

Approver2       

Approver3      

And i have declared internal in Loop.

can any one Please help me to slove this Issue

Thanks

S.Kavitha

Former Member
replied

I dont know how are you deciding approver 1, 2 ,3,4 ,and 5. If It is sure that you will get 5 records in table , then store value in variable by reading internal Table like

read gt_final2 into gw_final2 index 1.

if sy-subrc  = 0.

gv_approver1 = gw_final2-name_text.

endif.

read gt_final2 into gw_final2 index 2.

if sy-subrc  = 0.

gv_approver2 = gw_final2-name_text.

endif.

like this you will get data in 5 variable for 5 read statement.

Take one template and write value in front of  aprrover text.

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