Application Development 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: 

Query on smartform - RFQ

Former Member
0 Kudos

Hi

In RFQ smart forms ,

1. ph no and fax no of user is taken from user profile or HR master data ?

2. Both ph no and fax nos are joined i.e no space is coming (xxxxxxxxxxxxxxxx),but in user profile SU01D space is maintained.

3.

Following logic is used to obatin the tel number and fax number:

User ID of the user is xxxxxx

From table USR21, the personnel number xxxxx, and address number xxxx is obtained.

Using this the tel number is obatined from table ADR2 and fax number is obtained from ADR3. The program gets the long numbers which include the country code + number. The fields are adr2-telnr_long and adr3-faxnr_long.These fields are maintained incorrectly. the fields that appear in User master is adr2-tel_number and adr3-fax_number which is stored correctly without country code.

Once the user master is corrected, the values will be correctly populated in the RFQ output.

-


Could you please some one advice on this,where form ph and fax no picked usually and how to given space for ph and fax no i.e (xx x xxxx xxxx) we need to change in script for this ?

Many Thanks

2 REPLIES 2

Former Member
0 Kudos

Hi Dhina.

where form ph and fax no picked usually ?

Actualy it depends on bussiness requirment such as get from vendor or customer address.

it is better if you ask functional consultant what actualy they want and on which master.

and how to given space for ph and fax no i.e (xx x xxxx xxxx) we need to change in script for this ?

Define data type as a text i.e

DATA: v_ph_fax_no TYPE CHAR50.

CONCATENATE ph_no fax_no INTO v_ph_fax_no SEPARATED BY space.

then print v_ph_fax_no out instead.

Hope it helps.

Sayan

Former Member
0 Kudos

Hi,

In script, call a PERFORM with using parameter as adr2-phn_num, adr3-fax_num and another 2 more changing parameters, then write the code in program to concatenate or split.

Eg: In script:

PERFORM name IN prog_name USING &adr2-phn_num&

USING &adr3-fax_num&

CHANGING &v_phn_num&

CHANGING &v_fax_num&.

ENDPERFORM.

In Program (prog_name):

FORM name USING input LIKE itcpo

CHANGING output LIKE itcpo.

data : lv_phn_no TYPE XXXX.

read table input with key name = 'ADR2-PHN_NUM'.

lv_phn_no = input-value.

here do ur coding with lv_phn_no.

after u get the req value pass that value to output table and modify the table.

do the same for fax number also.

ENDFORM.

by doing like above, u ill get the req values in changing parameters of the perform

Hope it helps!!

let me know if still it is not clear!!

Regards,

Pavan