cancel
Showing results for 
Search instead for 
Did you mean: 

adding parameter/hidden info in PO forms..

Former Member
0 Kudos

Hi,

I have my PO generated via a SAP script. I would like that PO to have some additional info such as {vendorname='XXX XXX',&,fax_num=644543535}. This additional info must not be visible in the printed PO but must exist just in the document as hidden value.

This document will be parsed by another source and the additional info will be extracted.

How do I add this additional info in my PO ??

thanks

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

Try the 'hidden' character format.

Rob

former_member188685
Active Contributor
0 Kudos

Is that Interface will Read PO?

Then you need not to print them at all, if that is the case you need not to worry about Hidden the values.

what if it read script document....?

regards

vijay

Former Member
0 Kudos

I don't know what you meant by script document Vijay. If the script is not printed, and there is no print file, then where is the script document? What is it?

Srinivas

Former Member
0 Kudos

I am sorry, I am little behind in typing this, I already got my answer from Rad's explanation. Now it is clear. Ignore my question Vijay.

Srinivas

former_member188685
Active Contributor
0 Kudos

HI srinivas,

Sorry if i am wrong, what i understood is Cypress will take input of script output and then it will process....

if i am wrong ,please correct me..

regards

vijay

Former Member
0 Kudos

Hi Rad Sha,

I don't think it is possible for it to be on the print file, yet not printed. Can you find out how the print information is passed to Cypress? Is it configured like any other printer in SAP?

Srinivas

Former Member
0 Kudos

Yes Srinivas, thats the second thing to be attended to. I need to check how print info is passed to Cypress !!

will take some time. so thought of asking your suggestions on step 1, i.e. sending additional print info in PO doc !!

will surely get back to you all once I get more info on this and if there are any issues !!

thanks to one and all for your time and effort..

former_member188685
Active Contributor
0 Kudos

If that Cypress Can scan the Barcodes your problem will be solved..

vijay

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

This sounds really simular to our faxing solution, Rightfax. We generate the output in sapscript to a specific output device which is tied to the Rightfax Server. We pass the fax number to the rightfax solution by using a page in front of the actual document. It looks kind of like this.




{{comment # &formdata-VBELN&}}       
{{FAX &formDATA-FAX_NUMBER&}}        
{{CONTACT &formDATA-NAME1&}}         
{{COMPANY &formDATA-NAME1&}}         
{{csi &SY-UNAME&}}                   
{{OWNER &SY-UNAME&}}                 
{{rti &SY-UNAME&}}                   
{{email &formDATA-EMAIL&}}           
{{winsecid &SY-UNAME&}}              
{{BILLING &formdata-VBELN&}}         


Of course the values are being passed instead of the variable fields, but this is what RightFax is looking for in order to send the document. It then strips off this first page as it is not really part of the document to be sent to the vendor.

Is this what you are talking about? In our case, it is handled for us automatically by the RightFax software.

Regards,

Rich Heilman

Former Member
0 Kudos

That sounds wonderful Rich. We had even this as one of our solutions !!

If you already have got this working then we too can think of adopting the same method !!

So u mean to say, as the first page of my PO document, I can add these additional info such as vendor name and fax number and send it !!

Actually this sounds much simpler than trying to add some invisble values in the actual PO document !!

Will surely explore if this will really work for us !!

thanks a ton

Former Member
0 Kudos

Hi Rad Sha,

Also look at the configuration of the output type for the PO. In there, there is a section "Replacement of text symbols" under the 'General Data' tab of the output type. Here you can write a subroutine that fills in some parameters which you will then use in the "Mail Title and Texts". See the help of those fields, you might find it helpful. Here is the documentation for the "Replacement of text fields".

+

Program for creating or changing an output text

Use

In order to analyse parameters in titles of e-mails or faxes, you have to store a special program and a form routine in the field FORM routine. System fields like SY-UNAME or SY-DATUM are are excluded from this: They will be automatically analysed by the system.

Example

On New Year's Day 2000, you send the purchase order 4711 by fax. The title of the corresponding output type is "Purchase order no. VBAK-VBELN on SY-DATUM" (put a "&" before and after the fields). In the outbound message you therefore have the output "Purchase order no. 4711 on 01/01/2000". The field VBAK-VBELN has been filled with global data by a form routine.+

Here is the documentation for "Mail title and texts"

+Short description of contents

A description (maximum of 50 lines long) of a document, folder, distribution list or link.

Use

When faxing or printing, you can use parameters in the title, which are then evaluated when the document is sent. As a result, the sent documents can be identified more easily, for example, if you have specified the document number as a parameter.

If you send faxes via SAPconnect, the title appears in your outbox. If you print the message, the title appears in the spool list.

Dependencies

Parameters have to be evaluated by a special program with form routine (Exception: System fields, such as SY-UNAME or SY-DATE). You specify the program and form routine in the correponding fields in the tab page áGeneral data.+

Using this you can send in a description that can be processed by Cypress and may be later strip off the name and fax number portions of it.

The configuration path is


SAP Customizing Implementation Guide
-->Materials Management
   -->Purchasing
      -->Messages
         -->Message Types
            -->Define Message Types for Purchase Order

Srinivas

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Yep, on all of our forms that get faxed out, we have a "fax page" which is called up first. It only has the stuff that I mentioned early, nothing else. The RightFax solution recognizes this code, and takes it does whatever it does with it, it then gets rid of that page and includes all the rest of the pages. We have this working for PO, Sales Order Acknoledgments, Open Order Reports, Custom Quotes, Scheduling Aggreements, everything that we fax.

Please consider rewarding points for any helpful answers/tips that you might receive. Thanks.

Regards,

Rich Heilman

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

I this problem solved? If so, please make sure to mark as solved. Thanks.

Regards,

Rich Heilman

Former Member
0 Kudos

> Hi,

>

> I have my PO generated via a SAP script. I would like

> that PO to have some additional info such as

> {vendorname='XXX XXX',&,fax_num=644543535}. This

> additional info must not be visible in the printed PO

> but must exist just in the document as hidden value.

>

> This document will be parsed by another source and

> the additional info will be extracted.

How will this "another source" parse the document? Why can't it simply use the same logic as used by your PO program to fetch these fields?

> How do I add this additional info in my PO ??

>

> thanks

I think you want to know if you can add these additional fields to the PO itself. You don't need to because they exist on the vendor master record already, so why don't you just query your PO table(EKKO) to get the vendor number and then go to LFA1 to get the name(NAME1) and the fax number(TELFX). Why do you want to duplicate the information again on the PO?

Srinivas

former_member188685
Active Contributor
0 Kudos

I mean No body can see the Values assigned to those barcodes.

reagrds

vijay

former_member188685
Active Contributor
0 Kudos

Use Barcodes To those fields, and no body can see, and parse them and get the values...

this is one of the way..

regards

vijay

Former Member
0 Kudos

Hi Rad,

If you comment those lines in the Script code,it will not be printed in the PO.I guess this is what you are looking at.

former_member188685
Active Contributor
0 Kudos

Can you explain clearly...

Print should not contain any info, But it should be visible in display..is that you are trying to say..

Former Member
0 Kudos

The additional info need not be available in display or print !!

But, this PO form must carry the additional data by some means...

Idea is to interface SAP with Cypress where in Cypress will take care of printing/faxing..

former_member188685
Active Contributor
0 Kudos

How you will read the invisible fields..

Former Member
0 Kudos

Hi Rad,

The data will be there in the form even if you comment the code or when the respective table is populated.It depends on whether you want the code on the form or not.You can comments those lines in the form.

Former Member
0 Kudos

So Cypress has some way of calling SAP and reading the PO data from the tables and then print it based on some layout in Cypress, correct? So as I said, just include the logic to extract these additional fields from the existing tables instead of trying to store them on the PO itself.

Srinivas

Former Member
0 Kudos

I think we can ignore the Sapscript part of it here. Rad Sha, please confirm if Cypress reads the PO tables and prints the PO, or it does something else(what)?

Srinivas

Former Member
0 Kudos

My apologies to confuse you all !! Let me try explaining it better !!

Cypress will just receive a PO document !! It will not do anything with SAP tables !! From SAP, we can send the output to printer or FAX directly and if these devices are grouped in Cypress print architecture then Cypress will manage the printing/faxing.

Hence, in the normal process, when a PO is created using ME21N transaction, the PO is generated and sent for printing. So Cypress receives it and sends to printer.

Similarly we want Cypress to send the PO as fax to the vendors !! To do so, it has to know that "this PO document is for XXX vendor ".. We want the PO document to carry this info !!

So, when cypress receives the PO document, it will parse it and extract the additional info and match with its address book and send the fax...cypress related activities will be carried out by some kind of scripting which is beyond the scope of this discussion.

Hence, my requirement is to just pass on those additional values in my PO document !!

On analysis I found that we have a ZMEDRUCK program that performs a PO print. So I thought there will be some way to add some hidden fields in this form !!

Hope I am clear. If you have any other solution in mind, feel free to pen it down.

thanks

former_member188685
Active Contributor
0 Kudos

Then No way you can hide, Using Barcodes you can pass the info. I think cypress will understand barcodes..

please correct me if i am wrong..

regards

vijay

Former Member
0 Kudos

Thanks a lot to all of you.

I will try the two methods suggested, i.e., adding as commented lines (Phani Kiran) and using barcodes (Vijay babu).

Will give you an update once done.

once again, a big thanks..

Former Member
0 Kudos

Hi,

Have you tried with place holders( "Replacement of text symbols" --in config)in PO texts at header/Item.

Ex: &EKPO-EBELN&

You can define your data as Include text.

Message was edited by: Lanka Murthy

Message was edited by: Lanka Murthy