Print Message Attachment

axay72

Active Member
Hi
Do anyone can recommend me what should I coding to retrieve the Print Message Attachment from Item branch plant and print on the report?


Appreciate your attention and kind to help me.

Thanks
 
Tony,

I had a look at R43500, Print PO.
In section "On line Number" (Level Break Footer) here's the
code you get to retrieve the attachments:

F4017 Check If Notes Print On Report
If VA sec_PrintMessage_Y_N is equal to "1"
Media Objects(GT4016B, <Get Text>, RV Item Notes, VA
rpt_F4311ShortItem, VA rpt_szLanguagePreference_LNGP)
End If
//
F4017 Check If Notes Print On Report
If VA sec_PrintMessage_Y_N is equal to "1"
Media Objects(GT4016A, <Get Text>, RV F4311 Print
Message, VA rpt_F4311_PrintMessage, VA
rpt_szLanguagePreference_LNGP)
End If
//
If PO PrintPurchaseOrderNote is equal to "1"
Media Objects(GT4311, <Get Text>, RV Generic Text, VA
rpt_F4311_OrderNumber, VA rpt_F4311_OrderCompany, VA
rpt_F4311_OrderType, VA rpt_F4311_OrderSuffix, VA
rpt_F4311_LineNumber)
End If
//

Hope this helps

Cheers

Philippe



One World B7333 SP16 AS400
 
Thanks.

It is great system function which help me to retrieve the attachment remark.

Too bad I have encountered another problem, I try to pool the attachment remark to flat file. But I do get the attachment remark on the flat file, problem is somewhat the message will extend to next row end with double quot - "". The variable length used to get the text is 100.

Do you have idea?
 
Tony,

I am afraid I do not understand your problem now.
Is it that you retrieved the Media Object in a Variable
(100 Char) and wrote it in a Flat file ?
What do you do with the Flat File ? can't you suppress the
doule quote when you process it?

Cheers

Philippe



One World B7333 SP16 AS400
 
Back
Top