Printing problem for line items in a smartform
Hi
I am developing a smartform for inbound delivery, i have to print each line item in each page and each line item should be printed according to count of pallets.
lets say if my first line item has 5 pallets, it should print 5 time on smartform. and second line item should print on second page , and this logic should continue for all line items.
can some one help me out ?
item No Material No Descripition Putaway Bin SUT Vendor Batch LE QTY COA Base UOM
this how my line item should like, i am able to print only single line item for each item no.
if i have 5 pallets for single line item, i want the same line item to be printed 5 times and this is what i am looking at
Similar Messages
-
Reg: Printing multiple lines of line item in a smartform?
Hi Experts,
I have a query regarding printing multliple line items in a smartform. In this form i dont have control on the font size because the client is using some generic type format to print the data in EPSON LQ 590.
Here this generic type drivers, it has his own default font.
If i print using the normal EPSON LQ 590 drivers, alignment is perfectly fine. But in generic case its totally different.
My query is in my item row there are 7 columns. If one of the column exceeds the space which i have assigned for that particular cell, it should go to next line automatically. How should i do this?
Then there should be a line space between 2 rows of data. How should i do this?
Please help me on this.
Another query is date is getting displayed as 19.07.2009, due to the space problem in that particular cell i need to display as 19.07.09. Please tell me how should i do this also?
Waiting for the reply.
Thanks and Regards,
Abdur RafiqueUse smartstyles for the same to mke sure it goes into next line. Also you can set space between 2 lrows to one line.
For the date issue..use the following piece of code...
DATA: w_date TYPE sy-datum,
w_char TYPE char8.
CONCATENATE w_date+6(2) w_date+4(2) w_date+2(2) INTO w_char SEPERATE BY '.'. -
Problem in bdc for table control for line items
Hi experts,
I am runnig a bdc for ME52.
i am just entering PR number, in the second screen i have got all the line items. I need to select these line item 10 and double click or hit enter, it takes me to screen 3, there im just checking a checkbox and saving.
Again i need to select the line item 20 and double click or hit enter. again the same process.
Again repeat for all the line items.
But my problem is it is updating everytime for only line item 10. for line item 20 and others it say "no chnge in the data".
I am pasting my code here. please check and revert me back .plz.
DATA: w_output LIKE LINE OF i_output.
REFRESH I_ITAB[].
SELECT * FROM EBAN
INTO TABLE i_itab
WHERE banfn in s_banfn AND
bsart in s_bsart AND
bstyp in s_bstyp AND
matnr in s_matnr AND
werks in s_werks AND
lfdat in s_lfdat AND
pstyp in s_pstyp AND
knttp in s_knttp AND
estkz in s_estkz AND
loekz eq ' '.
IF sy-subrc = 0.
CLEAR: w_itab,
i_poitab[].
SORT i_itab by banfn.
LOOP AT i_itab INTO w_itab where menge GT eban-bsmng.
IF p_close = 'X' AND p_rep = 'X'.
IF w_itab-ebakz = 'X'.
w_itab-ebakz = ' '.
APPEND w_itab to i_poitab.
ENDIF.
ELSEIF p_open = 'X' AND p_rep = 'X'.
IF w_itab-ebakz = ' '.
w_itab-ebakz = 'X'.
APPEND w_itab to i_poitab.
ENDIF.
ELSEIF p_close = 'X' AND p_repw = 'X'.
IF w_itab-ebakz = ' '.
APPEND w_itab to i_poitab.
ENDIF.
ELSEIF p_open = 'X' AND p_repw = 'X'.
IF w_itab-ebakz = 'X'.
APPEND w_itab to i_poitab.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
LOOP AT i_poitab into w_output.
APPEND w_output to i_output.
PERFORM CALL_BDC.
endloop.
IF p_rep = 'X'.
PERFORM CALL_BDC.
ENDIF.
ENDFORM. " GET_DATA
*& Form CALL_BDC
text
--> p1 text
<-- p2 text
FORM CALL_BDC.
DATA: seltab(5) TYPE N,
seltab1(2) TYPE N,
tempvar(30) TYPE N,
cnt TYPE N.
LOOP AT i_output.
clear: seltab,
seltab1.
seltab = i_output-bnfpo.
seltab1 = seltab+2(2).
perform bdc_dynpro using 'SAPMM06B' '0105'.
perform bdc_field using 'BDC_CURSOR'
'EBAN-BANFN'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'EBAN-BANFN'
i_output-banfn.
perform bdc_dynpro using 'SAPMM06B' '0106'.
clear tempvar.
*cnt = 1.
concatenate 'EBAN-BNFPO(' seltab1 ')' into tempvar.
perform bdc_field using 'BDC_CURSOR'
'EBAN-BNFPO(seltab1)'.
tempvar.
perform bdc_field using 'BDC_OKCODE'
'=DETA'.
perform bdc_field using 'RM06B-BNFPO'
i_output-bnfpo.
perform bdc_field using 'RM06B-TCSELFLAG(seltab1)'
'X'.
perform bdc_dynpro using 'SAPMM06B' '0102'.
perform bdc_field using 'BDC_CURSOR'
'EBAN-EBAKZ'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.
perform bdc_field using 'EBAN-EBAKZ'
i_output-ebakz.
CALL TRANSACTION 'ME52' USING bdc_data MODE 'A'
MESSAGES INTO i_bdcmsg.
COMMIT WORK AND WAIT.
ENDLOOP.
ENDFORM. " CALL_BDC
*& Form bdc_dynpro
text
-->P_0686 text
-->P_0687 text
FORM bdc_dynpro USING program dynpro.
CLEAR bdc_data.
bdc_data-program = program.
bdc_data-dynpro = dynpro.
bdc_data-dynbegin = 'X'.
APPEND bdc_data.
CLEAR bdc_data.
ENDFORM.
thanks,
NLooks like table control logic is wrong -- do compare with below program...
only table contril area
REPORT ZPadmam
NO STANDARD PAGE HEADING LINE-SIZE 255.
DATA : BEGIN OF itab OCCURS 0,
i1 TYPE i,
lifnr LIKE rf02k-lifnr,
bukrs LIKE rf02k-bukrs,
ekorg LIKE rf02k-ekorg,
ktokk LIKE rf02k-ktokk,
anred LIKE lfa1-anred,
name1 LIKE lfa1-name1,
sortl LIKE lfa1-sortl,
land1 LIKE lfa1-land1,
akont LIKE lfb1-akont,
fdgrv LIKE lfb1-fdgrv,
waers LIKE lfm1-waers,
END OF itab.
DATA : BEGIN OF jtab OCCURS 0,
j1 TYPE i,
banks LIKE lfbk-banks,
bankl LIKE lfbk-bankl,
bankn LIKE lfbk-bankn,
END OF jtab.
DATA : cnt(4) TYPE n.
DATA : fdt(20) TYPE c.
DATA : c TYPE i.
INCLUDE bdcrecx1.
START-OF-SELECTION.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
filename = 'C:\first1.txt'
filetype = 'DAT'
TABLES
data_tab = itab.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
filename = 'C:\second.txt'
filetype = 'DAT'
TABLES
data_tab = jtab.
LOOP AT itab.
PERFORM bdc_dynpro USING 'SAPMF02K' '0100'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RF02K-KTOKK'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'RF02K-LIFNR'
itab-lifnr.
PERFORM bdc_field USING 'RF02K-BUKRS'
itab-bukrs.
PERFORM bdc_field USING 'RF02K-EKORG'
itab-ekorg.
PERFORM bdc_field USING 'RF02K-KTOKK'
itab-ktokk.
PERFORM bdc_dynpro USING 'SAPMF02K' '0110'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFA1-LAND1'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'LFA1-ANRED'
itab-anred.
PERFORM bdc_field USING 'LFA1-NAME1'
itab-name1.
PERFORM bdc_field USING 'LFA1-SORTL'
itab-sortl.
PERFORM bdc_field USING 'LFA1-LAND1'
itab-land1.
PERFORM bdc_dynpro USING 'SAPMF02K' '0120'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFA1-KUNNR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFBK-BANKN(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
cnt = 0.
LOOP AT jtab WHERE j1 = itab-i1.
cnt = cnt + 1.
CONCATENATE 'LFBK-BANKS(' cnt ')' INTO fdt.
PERFORM bdc_field USING fdt jtab-banks.
CONCATENATE 'LFBK-BANKL(' cnt ')' INTO fdt.
PERFORM bdc_field USING fdt jtab-bankl.
CONCATENATE 'LFBK-BANKN(' cnt ')' INTO fdt.
PERFORM bdc_field USING fdt jtab-bankn.
IF cnt = 5.
cnt = 0.
PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFBK-BANKS(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=P+'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFBK-BANKN(02)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
ENDIF.
ENDLOOP.
PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFBK-BANKS(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0210'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFB1-FDGRV'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'LFB1-AKONT'
itab-akont.
PERFORM bdc_field USING 'LFB1-FDGRV'
itab-fdgrv.
PERFORM bdc_dynpro USING 'SAPMF02K' '0215'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFB1-ZTERM'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0220'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFB5-MAHNA'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0310'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFM1-WAERS'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'LFM1-WAERS'
itab-waers.
PERFORM bdc_dynpro USING 'SAPMF02K' '0320'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RF02K-LIFNR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
PERFORM bdc_dynpro USING 'SAPLSPO1' '0300'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=YES'.
PERFORM bdc_transaction USING 'XK01'.
ENDLOOP.
PERFORM close_group.
Thanks
Seshu -
How to print vertical lines for line items?
hi experts,
can any one tell me how to print vertical lines for line items in ascript?
ive tried using sy-vline but its printing jus one line each for each item .i want it in columns ?if there are any control commands plz let me know how to print?
thanks ®ards
narendarhi narendar,
Welcome to SDN.
u can go for box command.
Use the box command with zero width for vertical lines.
Position the line by x position and y postion.
syntax :
BOX <xpos> <ypos>
<width>
<height>
<thickness in twips> twips.
Regards,
Arun.
Reward points if useful. -
Exice invoice print with no line items
Hi
I followed standard method generating excise invice i.e created sales order the did dilvery then i did billing and then generated excise invoice by J1IIN
Now problem is my excise invoice is printing but no line item is being displayed. Only header data is being displayed.
This problem is not regular, it happens frequently i.e not every time but sometimes.
Pls let me know what can be possible problem
Thanks
AmitThis is nothing to do with no of line items and quantity. this is puerly Smartform problem
Dit with ABAPer and debug the program and find out on what condition it is failling.
as you said this happenes many times, so just collect the data for which this is failing and analyse the conditions for them -
Printing of changed line item in scheduling agreement smart form.
Hi experts,
I am facing problem in printing of changed line item in schedule agreement.
can any body tell me how to find the line item has been changed through programming?what is the procedure to fetch the data for new line item.its
very urgent for me.
Please help me in this regard.
Priti ShrivastavaHi
with the help of T180-TRTYP field you know if that doc has been changed or created.
If it is not equal to H it is changed. H means created.
pass the TCODE of Sched Agreement and check this field.
You can use the CDHDR and CDPOS table s to get the changed values of new item.
Reward points if useful
Regards
Anji
Message was edited by:
Anji Reddy Vangala -
Displaying line item details in smartform
Hi,
I need to display tax details of each line item in a smartform in the given format. Tax details should get displayed only if it present. Please tell me how to do this.
for ex:
item description qty price
10 ytfytfyf 20 30
VAT:2%
Service Tax: 3%
20 rwedw 30 10
VAT:3%
service tax:4%
Thanks.hi,
Under the loop node after displaying
item description qty price
10 ytfytfyf 20 30
create another loop node of table tax information under the main loop with condition that is having same field in common... then create text elements to display the following data
VAT:2%
Service Tax: 3%
regards
padma -
Hi,
I have customized the change rules for Line item.
Still the system not allowing to make changes to that particular field? Can any one tell me, whats the reason for the same.
Following Field is made as changeable for the line item.
BSEG-VBUND Trading partner.
The above field is available in More data Tab or additional data tab while making entry or display of document.
Thanks,
LalatenduHi,
That i know, but trading partner was not entered in the GL Master data. Infact some one wrongly entered Trading partner in Customer master and during bank posting system automatically picked Trading partner.
When thye r trying to clear open items for that GL account , because of that assignment system is not allowing to clear those line item.
If i can remove that trading partner from document, my problem will be solved.
Can any one guide me..or if u need more info please let me know.
Thanks,
Lalatendu -
Urgent:output for line item not working
hi
we are trying to get the output at item level in the sales order.we click on the line item and give a print out..but it is showing details of other line items as well. is there a ways we can get a printout for only the selected line items.
what we did.
1. maintained a output type for item category
2. assigned the output type tot he item category.
but still this is not working the way we want. do we need to use a different print program for the item level printing...
Pls reply soon we are goin live in 2 days with ur contact no....thanks...Hi,
I think this is not possible through standard, but I can suggest if you can seek help from your technical guys asking if it is possible through output routines what we maintain in the output determination procedure....
Give him the requirement and ask him if he can create a custom routine for this.....
Hope this will help you........
Regards
Bageerath -
Table for line item in F-47 Display Document - Down Payment
Hi,
Can anyone please tell me from which table can I pick the values for line items. I'm developing a report in smartforms for down payment request. For header items I found out that the values are stored in table - BKPF.
Please help..
Regards,
SriramHi,
Go to Logical database through SE36 and give KDF for vendor and DDF for customer. You will get the details of tables there.
Regards
shankar -
Customer Invoicing Printing First page line items blank
Hi Everybody,
Customer Invoicing Printing First page line items blank and it is printing it from the second page. Please help me on this.
Regards,
Md Ziauddin.item No Material No Descripition Putaway Bin SUT Vendor Batch LE QTY COA Base UOM
this how my line item should like, i am able to print only single line item for each item no.
if i have 5 pallets for single line item, i want the same line item to be printed 5 times and this is what i am looking at -
OBBH Substitutuions for line items.
HI,
We are trying to assign cost centers for GL accounts using FI susbstitution rules ( OBBH ) in exit routine ZGGBS000 ( RGGBS000 ).
The BSEG and BKPF ( line item substitution ) values are populated when the routine is triggered however we also need VBAP values too, they remain empty. Is there a way i could get the VBAP values filled too.
Thanks.Ok. Inside the exit we have BSEG and BKPF values populated and looping depending on the line items.
For Ex : for line item 1 when the control comes in the exit, VBAP values are not populted whereas the BSEG values are populated.
I needed VBAP values to cross reference the GL account. On certain material divison i needed to populate cost center.
My problem was addressed using a user-exit. -
Change the sales order reason for rejection for line item
Hi,
i want to change the sales order reason for rejection for line item.
iam using bapi_salesorder_change.but i unable to change the sales order.
if possible please provide me what are the fields necessary for changing
sales order reason for rejection for line item.
Regards,
SureshThis is the standard config to supress printing on the rejected item. Are you using standard programs or customised ?
-
Changing the default view for Line Items in an Auction.
Hello All,
We have a version 5 client who is asking for us to change the default view for line items in an auction.
Currently, if you have an auction setup, and you go to the Line Items tab, the default view is the "Basic View". The client would like to change the Default from "basic view" to "price view".
Is there a way to change this default in the system? Can this be configured using query groups? Any information would be helpful.Hi wood cloud,
This is not possible, bcz there is no VLV for that drop down and we cant set it to the price view.
Thanks,
Ankur Goyal -
No control line for line item - error while posting bd to accounting
Hi all,
Billing document showing err "no control line for line item" while posting to accounting doc.Sales document is complete no in completion logs.
Previous errr: g/l missing for line item" in order incompletion after maintaining company code for customer, then refresh the g/l missing for line item is no more logs and showing the error "no control line for line item" while posting bd to accts.
Please help
Regards
anushHello Anush,
if the company data of the payer was not created when the sales order has been created, then the system could not create the correct records in table VBREVK. Once the company data has been maintained the VBREVK records could be corrected by re-saving the sales, but only if no billing document exists.
In your case you already created the billing document.
Please try these step:
1. reverse billing document
2. run VA02 add a blank char to PO number, save
3. create new billing document
Best regards,
Ivano.
Maybe you are looking for
-
I Need Help Getting Flash to Work
I am trying to watch videos on ExpertVillage.com and can not get them to open. My Flash Player has been uninstalled and reinstalled with a new downloaded version. I can see a black box where the video should be but no download, therefore no video. Ru
-
How can I put parental controls on laptops my kids already own?
Hi all, I bought my two daughters MacBook Airs this year, and they're great of course. While setting up the MacBook Airs, the setup required user names and passwords for the accounts. So they have those. Each kid is the administrator of her compute
-
Small bash script as userspace daemon?
Hi! I have a small bash script that I want to execute every 5 minutes. It's not vital, I'll notice if it stops working soon enough, so I'd like to get it out of my sight (both how it's started and when it's running - especially I don't want cron spam
-
VBAI: how do I read a shared variable?
I am trying to make my inspection to do things that are contingent on the value of Shared Variables. It is obvious how to set the Shared variables from VBAI, but I have not figured out how to read them and then create some kind of a CASE structure us
-
Please give me your guide how I can install the purchased program
today I purchased on your company's website the acrobat program for conversion of pdf files into word or excel file. how can i find the program and how can i operate it?