on 02-23-2007 9:37 AM
hi,
while modifying sapscript MEDRUCK i want to add email id of the contact person in the form that is in the vendor adress
how can i do this
regards,
siri.
Message was edited by:
sireesha yalamanchili
Message was edited by:
sireesha yalamanchili
Hi
U need to read the table ADR6 to find out the mail address.
Max
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thank you,
could you please explain me how to modify this medruck form then
by adding the emailid
and i need to add add client logo also
and how to configure the form to bring the changes into effect
please explain if i need to do something with NACE tcode
regards,
siri.
Message was edited by:
sireesha yalamanchili
Hi
These should be the steps to be done:
- Create a new form ZMEDRUCK as copy of MEDRUCK
- Change the window where the e-mail id has to be placed in this way:
---> Routine to search the mail id (without to change the main program)
/: PERFORM SEARCH_MAIL IN PROGRAM Z<PROGRAM>
/: USING &LFA1-ADRNR&
/: CHANGING &ADR6-SMTP_ADDR&
---> Print mail id
&ADR6-SMTP_ADDR&
- Create the program Z<PROGRAM> and insert the routine SEARCH_MAIL:
FORM SEARCH_MAIL TABLES IN_TAB TRUCTURE ITCSY
OUT_TAB STRUCTURE ITCSY.
READ TABLE IN_TAB WITH KEY NAME = 'LFA1-ADRNR'.
IF SY-SUBRC = 0.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = IN_TAB-VALUE
IMPORTING
OUTPUT = _ADRNR.
SELECT * FROM ADR6 WHERE ADDRNUMBER = _ADRN.
EXIT.
ENDSELECT.
READ TABLE OUT_TAB WITH KEY NAME = 'ADR6-SMTP_ADDR'.
IF SY-SUBRC = 0.
OUT_TAB-VALUE = ADR6-SMTP_ADDR.
MODIFY OUT_TAB INDEX SY-TABIX.
ENDIF.
ENDIF.
ENDFORM.
- Create a new window where it places the logo.
- Replace the new form ZMEDURCK instead of MEDRUCK by NACE trx
Max
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.