New Smart form for Tax calculation
Dear Consultants,
I am new for ABAP module, I want to create one smart form, for tax calculation. As per the attachment Most of the fields are standard, only the value I want to pick from Different Infotypes and RT table. please suggest how to create smart form.
Thanks & Regards,
Naresh
Hi,
create a executable program, pass the all values to Internal table.
create the structure as same as internal table.(eg: ztable).
create table type for this structure(eg: ytable)
T-code: Smartforms.
click the Form Interface tab, click table . click table
in that declare the variable (itab like ytable).
click the form Painter,
desgin the output structure.
Select "Fieldlist on/FF''.
drag and drop the fields
Right click on the main window create a Window -> right click on create window -> click table.ble
add vertical lines to the table.
Right click on the mainwindow->flowlogic->loop. enter the itab name.
activate the smartforms. execute.
copy the generated number.
goto to abap editor program.
Delcare:
DATA : FM_NAME TYPE RS38L_FNAM.
CONSTANTS C_FORMNAME TYPE TDSFNAME VALUE 'ZSMARTFORM4'. (smartforms name)
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = c_formname
* VARIANT = ' '
* DIRECT_CALL = ' '
IMPORTING
FM_NAME = fm_name
* EXCEPTIONS
goto to pattern paste the number and execute.
comment the number and add fm_name.
execute.
Regards,
Venkat.
Similar Messages
-
New smart form picking enjoy purchase order /SAPDII/SPP_ORDER
Hi Experts,
Ours is a new implementation project.
Requirement is to design a new smart form for purchase order.
The print program for the purchase order is loaded.
When I go for print preview the print program is calling the enjoy PO and not my form.
I checked in the transaction NACE
PRINT PROGRAM : Z_SMBZA_ZA_FM06P
FORM ROUTINE :ENTRY_NEU
FORM : -
PDF/SMARTFORM : Z_MMPO_ZA
My print program has 2 includes
INCLUDE Z_SMBA0_AA_FM06TOP.
INCLUDE Z_SMBA0_AA_FM06PE02.
Every thing is working fine except with the following piece of code
IF NOT tnapr-sform IS INITIAL.
lf_formname = tnapr-sform.
ELSE.
MESSAGE e001(ssfcomposer).
ENDIF.
Here I am getting tnapr-form as /SAPDII/SPP_ORDER and not Z_MMPO_ZA
If I change the field to Z_MMPO_ZA in debugging it works fine and I am getting the output of my form.
In the table TNAPR the field SFORM shows Z_MMPO_ZA
In the table NAST the field PFLD3 shows /SAPDII/SPP_ORDER
Can some one help me how to make the program by default read my form and not /SAPDII/SPP_ORDER
Thanks
JoshiHi,
IF NOT tnapr-sform IS INITIAL.
lf_formname = tnapr-sform.
ELSE.
MESSAGE e001(ssfcomposer).
ENDIF.
In debugging check what is value in TNAPR-KSCHL and confirm whether this is the desired output for PO printing.
Also check in PO Header --> Messages, what is the output type configured there. If it is not the desired output type, try adding your desired output type there and chek the print preview.
Also confirm the NACE settings are correct for your Output Type used wihile taking the PO printout.
Thanks & Regards,
Harish -
Hii Experts,
I am developing a smart form for purchase order. I am customizing the existing PO smart form according to the clients requirements. The customer needs fields Discount percentage, Excise duty and VAT/CST%... all these fields when i explored in transaction me23n come from a structure so the values come only at run time.. can anyone tell me the exact table and fields from where these comes so that i can retrieve it from there and display it in my smart form. The fields i need are discount percentage, excise duty and VAT/CST%. its urgent.REPORT ZMR_PURCHASE_ORDER.
types: BEGIN OF ty_lfa1,
LIFNR TYPE lfa1-LIFNR,
MCOD1 TYPE lfa1-MCOD1,
STRAS TYPE lfa1-STRAS,
MCOD3 TYPE lfa1-mcod3,
END OF ty_lfa1.
TYPES: BEGIN OF ty_ekpo,
ebeln TYPE ekpo-ebeln,
ebelp TYPE ekpo-ebelp,
txz01 TYPE ekpo-txz01,
menge TYPE ekpo-menge,
peinh TYPE ekpo-peinh,
brtwr TYPE ekpo-brtwr,
END OF ty_ekpo.
TYPES: BEGIN OF ty_ekko,
ebeln TYPE ekko-ebeln, "purchase doc
LIFNR TYPE ekko-LIFNR, "vendor
MCOD1 TYPE lfa1-MCOD1, "vendor name
STRAS TYPE lfa1-STRAS, "vendor add
MCOD3 TYPE lfa1-MCOD3, "vendor city
bedat TYPE ekko-bedat, "doc date
unsez TYPE ekko-unsez, "contact person
verkf TYPE ekko-verkf, "attn
telf1 TYPE ekko-telf1, "tele
ihrez TYPE ekko-ihrez, "ref
KNUMV TYPE ekko-KNUMV, "doc condition
ebelp TYPE ekpo-ebelp, "item
txz01 TYPE ekpo-txz01, "message desc
menge TYPE ekpo-menge, "qty
peinh TYPE ekpo-peinh, "rate
brtwr TYPE ekpo-brtwr, "gross
END OF ty_ekko.
TYPES: BEGIN OF ty_t685t,
kschl TYPE t685t-KSCHL,
vtext TYPE t685t-vtext,
END OF ty_t685t.
TYPES: BEGIN OF ty_line_item,
KNUMV TYPE konv-KNUMV, "condition number
STUNR TYPE konv-STUNR, "step
kposn TYPE konv-kposn, "item
KSCHL TYPE konv-KSCHL, "condition type
vtext TYPE t685t-vtext, "condition name
KAWRT TYPE konv-KAWRT, "base amt
KRECH TYPE konv-KSCHL, "calculation type
qty(13) TYPE n, "qty
kbetr TYPE konv-kbetr, "condition rate
kwert TYPE konv-kwert, "condition value
END OF ty_line_item.
data: wa_ekko TYPE zms_ekko,
wa_item TYPE zms_konv,
wa_lfa1 TYPE ty_lfa1,
wa_t685t TYPE ty_t685t,
wa_ekpo TYPE ty_ekpo.
data: it_ekko TYPE TABLE OF zms_ekko,
it_item TYPE TABLE OF zms_konv,
it_lfa1 type TABLE OF ty_lfa1,
it_t685t TYPE TABLE OF ty_t685t,
it_ekpo TYPE TABLE OF ty_ekpo.
SELECTION-SCREEN : BEGIN OF BLOCK ss_block WITH FRAME TITLE text-001.
PARAMETERS: pa_ver(2) TYPE c DEFAULT '0'.
SELECT-OPTIONS: pa_pord FOR wa_ekko-ebeln,
pa_date for wa_ekko-bedat.
SELECTION-SCREEN : END OF BLOCK ss_block.
SELECT EBELN LIFNR bedat unsez verkf telf1 ihrez knumv from ekko
into CORRESPONDING FIELDS OF TABLE it_ekko.
if pa_pord is not INITIAL.
DELETE it_ekko WHERE ebeln not in pa_pord.
endif.
if pa_date is not INITIAL.
DELETE it_ekko WHERE bedat not IN pa_date.
endif.
if it_ekko is not INITIAL.
SELECT lifnr MCOD1 STRAS MCOD3 from lfa1
INTO CORRESPONDING FIELDS OF TABLE it_lfa1
FOR ALL ENTRIES IN it_ekko
WHERE LIFNR = it_ekko-LIFNR.
SELECT ebeln ebelp txz01 menge peinh brtwr from ekpo
INTO CORRESPONDING FIELDS OF TABLE it_ekpo
FOR ALL ENTRIES IN it_ekko
WHERE EBELN = it_ekko-ebeln.
loop at it_ekko into wa_ekko.
READ TABLE it_lfa1 into wa_lfa1 WITH KEY lifnr = wa_ekko-LIFNR.
wa_ekko-MCOD1 = wa_lfa1-MCOD1.
wa_ekko-stras = wa_lfa1-stras.
wa_ekko-MCOD3 = wa_lfa1-MCOD3.
MODIFY it_ekko FROM wa_ekko TRANSPORTING MCOD1 STRAS MCOD3 WHERE ebeln = wa_ekko-ebeln.
ENDLOOP.
SELECT KNUMV STUNR KPOSN KSCHL KRECH kbetr kwert KAWRT from konv
into CORRESPONDING FIELDS OF TABLE it_item
FOR ALL ENTRIES IN it_ekko
WHERE KNUMV = it_ekko-KNUMV.
SELECT kschl vtext from t685t
INTO CORRESPONDING FIELDS OF TABLE it_t685t
FOR ALL ENTRIES IN it_item
WHERE spras = 'EN' and KSCHL = it_item-KSCHL.
LOOP AT it_item into wa_item.
READ TABLE it_t685t into wa_t685t with key KSCHL = wa_item-KSCHL.
wa_item-vtext = wa_t685t-vtext.
if wa_item-kschl = 'ZBP1'.
wa_item-qty = wa_item-KAWRT / wa_item-kbetr.
endif.
if wa_item-KRECH = 'A'.
wa_item-kbetr = wa_item-kbetr / 10.
endif.
if wa_item-kschl = 'NAVS'.
wa_item-vtext = 'Sales Tax'.
endif.
MODIFY it_item from wa_item TRANSPORTING vtext kbetr kschl qty
WHERE stunr = wa_item-STUNR and
kposn = wa_item-kposn.
ENDLOOP.
DELETE it_item WHERE kposn = '000000'.
DELETE it_item WHERE kschl <> 'ZBP1' and kschl <> 'ZD01' and kschl <> 'ZE01'
and kschl <> 'NAVS' and kschl <> 'ZSRV'.
sort it_item by kposn STUNR.
CALL FUNCTION '/1BCDWB/SF00000025'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
it_ekko = it_ekko
it_item = it_item
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endif. -
Creation of Smart Forms for PDF
Hi All,
I am new to SFP. So, please tell me how to create Smart Forms for PDF.
I already have an SAP standard form of Customer Invoice in this format (SFP) and I need to change the layout and add some additional fields in it as well.
Please guide me through the process. Earliest reponse will be highly appreciated.
Regards,
ShabbarHi,
I take that you meant PDF Forms in SAP.
Refer the following help links.
http://help.sap.com/saphelp_nw04s/helpdata/en/dc/f1783fe3263042e10000000a114084/content.htm
This PDF link (Has got many Pdf files)
https://www.sdn.sap.com/irj/sdn/interactiveforms?rid=/webcontent/uuid/d1088b7e-0c01-0010-c78e-984c0537e3ec [original link is broken]
Also check this Tech-ed 06 session at Amsterdam.
http://www.sapteched.com/emea/edu_sessions/session.htm?sid=317
Check this download from SDN.
https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/2dd3dbcd-0401-0010-55b8-b10808ff688e
Is this you are looking for?
Feel free to revert back.
--Ragu -
Create a new condition type for tax... and assign in the Tax determniation
Hi,
I need to add custom condition tax type, i tried creating the condition in OBQ1 and add that condtion in FI pricing OBQ3, now I want to confirm what is basic conept means whenever we create on condtion in OQB1 and add in OBQ3.
i need to add that in Sales order and need to maunally populate that in the sales order.
could anybody suggest to create a new condition type for tax.(full process).
Thanks
shankarHi,
Goto the T.Code "V/06".Create one new "Z" condition type.
Maintain the Condition Class as "D(Taxes)".
Calculation type as "A(percentage)".
Cond. Category as "D(Tax)".
Select the tick mark for "Group Condition" if it is applicable for you.
In the next step assign this condition type to your pricing procedure by using the T.Code "V/08".
Also maintain access sequence by using the T.Code "V/07" and assign it to your Condition type.
Now this condition type will appeared in your sales order after maintain teh condition records.
Regards,
Krishna. -
Hi Technical geeks,
I am right now doing an analysis on Payment advice Print Program. Other than Program RFFOEDI1 isn't there any way by which we can print the form for payment advice. Can't we directly print from F110 transaction.
I need to use Smart forms for printing my Payment Advice. I find only standard SAP Script available for this purpose. this is quite urgent.
Thanks in advance
RamachandranHi, thank you. I'll test.
You mean, comment these loop:
* FORM AVIS *
* Druck Avis *
* Gerufen von END-OF-SELECTION (RFFOxxxz) *
* keine USING-Parameter *
FORM AVIS.
* Abarbeiten der extrahierten Daten *
IF FLG_SORT NE 2.
SORT BY AVIS.
FLG_SORT = 2.
ENDIF.
LOOP. -----------------------------------------------------> THESE LOOP !!!!!!!!!!!!!!!!!!!!!!!!!!!!!
*-- Neuer zahlender Buchungskreis --------------------------------------
AT NEW REGUH-ZBUKR.
PERFORM BUCHUNGSKREIS_DATEN_LESEN.
ENDAT.
*-- Neuer Zahlweg ------------------------------------------------------
AT NEW REGUH-RZAWE.
then, the "reguh" table, have only the records that I want ( type pay = N) or I have to filter in the smartform?
Thanks you very much.
Marc
PD: is there a easy way to debbug it? I have to execute always F110??? -
How to Generate a complex smart form for the Sales Order different pages h
How to Generate a complex smart form for the Sales Order different pages has different page Layouts explain me?
in print program in interface when calling the form there should be some option to tell it to make a NEW spool everytime.
I have it in mind for sap-script it is ITCPO-TDNEWID. Dont have it in mind for SAMRTFORMS but still it should work somehow similar. -
How to use smart form for production orders
Hello Experts,
I have a couple of questions about printing out production orders from SAP, from OPK8.
My ABAPer has developed a smart form and I am trying to use the same for the list LG01, i.e. the object list.
Since, there was no place to assign a smart form directly, so the ABAPer has copied the existing print program , defined for my ref. order type and LG01 and assigned the new smart form inside the program. This new program has now been assigned against my ref. ord type, LG01 and all the plants, as seen in screenshot below.
Now, what is happening is that when I give print for my order, a pop-up screen asks for the printer. I give LOCL , check 'print now' and then click on the print preview.
I can see the new form that has been developed and it is alright.
Then, when I click on the back arrow, once again the print pop-up screen appears. Now, when I enter LOCL, print now and click the print preview, then I see another form open up before me. I am assuming that this is some form which was pre-configured in the system, under the section 'Forms', for the same object list LG01.
Do I have to assign the new smart form under the section "Forms' also, for the ref order type and LG01? or the change in the section 'print programs' is enough for the new form to kick in? Please guide me. I tried to but it gave the error that the form is not created in English. Also , my form is a smart form, not a SAPScript or PDF form, so I wonder if that will help at all.
Requirement :- I need to suppress this second form somehow but do not know how to do it. I want that only one form, i.e. my smart form should be printed out when someone gives print from the order.
Let me know if something is not clear.
Regards
P.RHi P,
Go a few steps down and remove flags on the documents you don't want to print:
this are just suggestions, they can be changed in your production order, in CO02, menu Order->Settings->List Control.
regards,
Edgar -
Smart Form for cutomised Inovice, Functional spec
Dear all,
I need to give Functional specification for developing a smart form for Invoice. Tables are not as evident as we have in case of R/3. please give me general tips to give spec to abap consultant to fetch various fields.
where used list of tables for a particular field is also not helping much. I need
1) Bill to address
2) sold to address
3)condition data
4) terms of payment
5) reference date stuff
Please suggest me a general way or logic bassed on which i can ask my abap consultant to develop the smartform and driver prog as well.
Thnaks in advance,
Regards,
Kiran CHi
yes usually customers ask to adopt the same layout as they are already using. Usually I draw the layout on visio and assign a number for each field. In the spec I put the layout picture and and mention for which field where data will come from.
For example:
A. PO header:
Field number | Description | Source
1 | PO number | EKKO-EBELN
2 | Vendor code | EKKO-LIFNR
3 | Vendor name | LFA1-NAME1 * rule 1
C. Rules:
1 - select NAME1 from table LFA1 where LFA1-LIFNR = EKKO-LIFNR
Hope this helps.
Regards
Eduardo Chagas -
How to user Smart form for the BID in SRM 4.0
Hello,
We have SRM 4.0 and we need to send the BID information to the vendor. This is because we have vendors that are not able to get in to our system and we have to send them a print out of the bid information so that they give us back the information. Then our users will insert it in the system.
It could be as an attach to the email or it could be printable in the program SPPS - Selecting and Processing Outputs.
SAP says that there is a smart form BBP_BIDINV_BID and BBP_BID_NOTIFICATION but I am not managing to make them work.
I found some messages to help solving specific problems so I assume it is possible to do this...
Is there someone that can help me?
Thanks very much.
My best regards,
Catarina CamposHi
<u><b>Here is the standard solution to use your own forms:-></b></u>
<u>- copy the smartform BBP_BIDINV_BID to ZBBP_BIDINV_BID (transaction SMARTFORMS) and apply your changes
- use BADI to call your custom form ZBBP_BIDINV_BID</u>
<b>For PDF output form change use BADI BBP_OUTPUT_CHANGE_SF.</b>
<b>For email notification change use BADI BBP_CHANGE_SF_BID instead.</b>
<u>You will find all relevant documentation in SPRO --> Supplier Relationship Management --></u>
SRM Server --> Business Add-Ins (BAdIs) --> Document Output -->
- Change Forms for Document Output
- Change Smart Form for E-Mails Relating to Bids
<u><b>Please go through the links below for more details -></b></u>
Re: how to use cutom smartform instead standard?
Re: Email message customization ?
Re: Bid Invitation Email Subject
Re: Email notification to bidder should reflect start/end date and time
Re: RFQ Smartform in SRM
Re: Standard Text
Do let me know.
Regards
- Atul -
Base amount for tax calculation in billing document
Dear Experts,
Can you help me in this scenario
when i create a billing document
Selling Price :74,766.36
Output Tax: 5233.65
Final Amount: 80,000.01
the total should be 80,000 in this case as per customer PO.
the actual difference is coming from Tax rounding off done by SAP.Initially we added DIFF condition to adjust the Tax amount.
But it is affecting the Output VAT report, where it shows 0.01 values. business does not want that, so we added DIFF condition to Selling Price.
Net 74,766.35 THB
Tax 5,233.65
This is how it post to accounting
01 8000485 Custome. 80,000.00
50 2100100 Revenue Gds - Dom 74,766.36-
50 2623600 Output Tax 5,233.65-
40 2100100 Revenue Gds - Dom 0.01
But the base amount for tax calculation is not chaning even after adding DIFF condition.
Tax amount Base amnt Tx Tax ra
5,233.65- 74,766.36- O7 7.000
Output Tax rate 7%
Is it possible to change the base amount for tax calculation to include DIFF value?
Can you please advise? If i maintain Tax condition at header level, does this solve it.
Regards
PradeepHi,
Please check your condition type settings for Rounding Rule
may be it is marked as commercial
mark as B and check it might work -
Smart form for cutting list---Urgent
Hi Experts,
I have to create a smart form for cutting list in PP module.
Selection criteria are:
1.) select all orders(AFKO-AUFNR) wiht AFVU-USR00 = 'CUT' where AFVU-AUFPL = AFKO-AUFPL
2.) Group according to material no.(AFKO-PLNBEZ)
Form fields are as follows:
Name : MARC-MATGR
Cut & Process date: AFVV-FSAVD where AFVV-AUFPL=AFKO0AUFPL
Ref Packing date: AFVU-USR00= ASSY_GAL of th superior order(AFKO-MAUFNR,where AFVU- AUFPL = AFKO-AUFPL)
Order : AFKO-AUFNR
Sales Order: AFPO-KDAUF of superior order(AFKO-MAUFNR,where AFVU-AUFPL = AFKO-AUFPL)
Item Number :
Qty: AFVV-MGVRG where AFVU-USR00='CUT' & AFVU--AUFPL = AFKO-AUFPL
& co many other fields form AFKO table.
I am bit confused what will be the fields & tabels i have to declare in Form interface & Global parameters.
What will be the internal table for the table which display data.
In the main page i have to show 10 colums i dont no how to define table for those 10 columns
As per the requirement can anywone please tell me in detail to solve these problems. like which r te tables i have to use in interface parameters & which wil be in global paramenters.
Which itab i will use to create the table in main window
& how i can declare 10 columns in that table.
Regards,
Nikhi nikil.
I use to follow this procedure.
1) Based on the select criteria.fetch values in to differnet itab's from differnet tables.
2) then try to put the selected rows based on condition into a single internal table.
3)u can send that final internal table from program and u have to use that internal table in form interrface.
4)design the smartforms and call the fields accordingly from the final inetrnal table .
5)u should be good in using select query ,read table statement etc.
check this with other and take a decision.some of them use to write codes then and there before using the fields using progarm lines.
but i am comfortable in my method.
mani -
Dear All,
We have designed a smart form for printing of excise invoice. The invoice is in two pages. The second page printing is not aligned and starts immediately after the finish of the 1st page.
There is no buffer place between two pages.
How can we provide a buffer between two pages so as to print the 2nd page in alignment with the pre printed stationary and the first page?
Regards.
Milind DugadeIt very dificult to give you guidance w/o seeing your smartform config. page format. If you are using custom page format or standard page format. Have define next page properly or not. What are line count in first page etc etc.
-
Smart form for commercial invoice
hi ,
i have to develop a smart form for commercial invoice for argentina in spanish language only.
is there any standard smartform in SAP which i can use as a reference for this.
or any help regarding this you can tell.
any help is appreciated.Hello Amit,
you search RVINVOICE in sap script.
goto SMARTFORMS> Utilities>Migrate SAP Script.
and select your own lang EN and make ur Invoice...make changes as per client requirement.
and then convert to Ur required language.
regards,
Sujeet -
Smart Form for invoice list?
Hello,
Has anyone experience with Smart Forms based on a invoice list (transaction VF23). I have been testing with the Smart Form for a single invoice (LB_BIL_INVOICE and program RLB_INVOICE) but get the impression that this cannot be used for the invoice list. My environment is a SAP R/3 Enterprise.
Kind regards,
Olaf PohlmannHI,
TRY F_INTITAR_SF.
Regards,
Gayathri
Maybe you are looking for
-
How can I fix my bootcamp partition?
Hi there, I'm a relative noob when it comes to OSX so please be gentle with me. I'm running an early 2011 Macbook Pro which initially had OSX Maverick with a Windows 7 Bootcamp partition. All was working perfectly and seamlessly until I enthusiastica
-
Basler camera slow to open session
I have 5 Basler scA1390-17gm cameras that were purchased at the same time. Four of them behave nicely, but one is very slow to establish a session. I have checked the IP configuration and that all seems fine. MAC finds the camera and puts it on the l
-
Releasing the blocked invoices entered through the FB60
Hi all, The invoices that are entered through the transaction code FB60 are manually blocked for payment while entering the invoice. Is there a standard SAP transaction code to list these invoices and release similar to transaction MRBR for the invoi
-
Transparent bg w/ png and no show in browser
Hi, Trying this out. However, the PNG file does not display at all when I test in the browser, after placed on my site. I even tried to remove the instances of 'transparent' in the CSS and replaced with a regular hex code, just to see if the controls
-
How do i download my old purchases?
how do i download my old purchases? I have bought several movies and a bunch of law and orders that i never even downloaded once because i ran out of local space. how do i download what i have already purchased?