on 05-03-2010 8:37 AM
Hi All,
From which table in SRM the vendor address is comming to smartform, we are getting # 's in the smartform , so we need to correct the error.
Can any one tell us from which table the vendor information comming.
Regards
-
cb
solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you have Vendor Partner number, then goto table BUT021_FS, give the partner number then you will get the addresses related to that vendor, take that address which is marked as 'Default' and then go to table ADRC, to check the address details.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
we are able to fine the souce from where the vendor address is comming it is from ADRC table ,but out problem is as below
While creating the PO user has changed the vendor address in 'Partner Overview" and the spaces which are added in the po sceen are converting into # in the samartform
Can any one let us know why this happening.
Regards
-
cb
Note 1093851 - In PO Smart Form Preview Line break not displayed correctly
In header text and item texts of Purchase Order line breaks are not reflected in the print preview when using smart forms as the output medium. Instead # is displayed after each sentence.
Other terms
Smart Forms, Purchase Order, BBP_PO, Header Text, Item texts, smartforms, Print Preview, cl_abap_char_utilities, newline, linebreak.
Reason and Prerequisites
This problem is due to program error.
Solution
1. Implement following steps manually:
2. Run transaction 'smartforms' .
3. Open the smartform BBP_PO in change mode.
4. Expand the node 'Global Settings' from the left hand navigational panel.
5. Double Click on the node 'Global Definitions' under the main node 'Global Settings'.
6. On the right hand pane, click on the 'initialzation' tab.
7. Scroll down to the bottom of the editor once it opens up.
8. Add the following code to it.
9. *******Start of insertion
10. *-- Code for line breaks
DATA: lt_txt1 TYPE STANDARD TABLE OF string .
DATA: ls_ltxt1 TYPE string ,
ls_ltxt TYPE bbp_pds_longtext .
DATA: lt_item TYPE bbpt_pd_longtext ,
lt_header TYPE bbpt_pd_longtext .
DATA: lv_counter TYPE ec_counter .
*-- Header Text
LOOP AT gt_ltxt INTO ls_ltxt WHERE tdid EQ 'HTXT'.
DELETE gt_ltxt INDEX sy-tabix .
ls_ltxt1 = ls_ltxt-tdline.
SPLIT ls_ltxt1 AT cl_abap_char_utilities=>newline INTO TABLE lt_txt1.
LOOP AT lt_txt1 INTO ls_ltxt1 .
ls_ltxt-tdline = ls_ltxt1 .
APPEND ls_ltxt TO lt_header .
CLEAR : ls_ltxt-tdline , ls_ltxt1 .
ENDLOOP .
CLEAR lt_txt1 .
ENDLOOP .
CLEAR ls_ltxt .
LOOP AT lt_header INTO ls_ltxt .
ADD 1 TO lv_counter .
ls_ltxt-counter = lv_counter .
MODIFY lt_header FROM ls_ltxt INDEX sy-tabix .
ENDLOOP .
APPEND LINES OF lt_header TO gt_ltxt .
CLEAR : lt_txt1 , ls_ltxt .
*-- Item Text
LOOP AT gt_ltxt INTO ls_ltxt WHERE tdid EQ 'ITXT'.
DELETE gt_ltxt INDEX sy-tabix .
ls_ltxt1 = ls_ltxt-tdline.
SPLIT ls_ltxt1 AT cl_abap_char_utilities=>newline INTO TABLE lt_txt1.
LOOP AT lt_txt1 INTO ls_ltxt1 .
ls_ltxt-tdline = ls_ltxt1 .
APPEND ls_ltxt TO lt_item .
CLEAR : ls_ltxt-tdline , ls_ltxt1 .
ADD 1 TO ls_ltxt-counter .
ENDLOOP .
CLEAR lt_txt1 .
ENDLOOP .
APPEND LINES OF lt_item TO gt_ltxt .
******End of insertion
11. Check, Save and Activate the form.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.