Application Development and Automation 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: 
Read only

Reading text

Former Member
0 Likes
633

Hi All,

There is a requirement to create a header text at billing document/invoice level. We have created the header text. The user will enter the text when he creates the invoice using t-code VF01.

This text contains the text describing the Invoice category. Also this text should be mandatory.

At run time we also need to validate if the user has inserted valid text.

Is there any way of reading the text for an unsaved billing document so that we can check the validity of the text.

Thanks,

Jiten

5 REPLIES 5
Read only

Former Member
0 Likes
592

Did you check BAPI_BILLINGDOC_GETDETAIL?

Read only

0 Likes
592

Hi Shital,

Thanks for your reply. But the BAPI, given by you, requires Billing Document number as input.

The scenario I have described over here is when the billing document is not saved.

I want to validate the header texts before saving the billing document.

Thanks,

Jiten

Read only

Former Member
0 Likes
592

Hi,

I think its not possible to validate/check the user input in long texts as it will only be stored at the time of saving the document. If its mandatory, then the end users have to make sure they don't leave it blank. From a developers point of view you can show popup during saving asking the user confirm whether he entered the header text.

Regards

Karthik D

Read only

Former Member
0 Likes
592

The requirement has been achieved.

Read only

0 Likes
592

Hi Jiten,

It would be very helpful all other members if you could share how the requirement was met.

Thanks

-Abhijit