Print should come only once per document number
Hi All,
I have done a script for the WC Document,
But now the client requires it to print it only once for a particular document number,
How can we do. Is there any such coding to restrict the print only once per document.
If anyone knows the solution please post it
hi
check the entry in nast table if you find more than 1 enrty that is repeated print .....
select objky
kschl
erdat
eruhr
vstat from nast into table gt_date
where objky eq gv_del_num. ---> document number
if sy-subrc eq 0.
sort gt_date by objky erdat descending .
describe table gt_date lines lv_n.
if lv_n gt 1.
gv_repeat = lc_x.
endif.
Similar Messages
-
Label printing should be only once for a material doc number
Hi,
we have a tcode in which if we provide a material doc no. and number of prints..but once we print the labels,
then again if we have to print for the same material doc no..it should not print..instead it should ask for permission to print that number again..is there any option available in scripts to do like this?try to maintain ztable
ztable fields document no , printed...
such that to identify the docu no has been printed previously r not...
select single printed from ztable into printed where docu no = p_document.
if printed = X
if it is printed then try to pop up a screen such thst to approve it ....
else.
print it strightly..... -
Redirected printers using Remote Desktop Easy Print driver work only once during session
Hello all
We are running Windows Server 2012 R2 Remote Desktop Services Sessions hosts with printer redirection allowed using only the Easy Print Driver, we have no other drivers installed on the servers. All client printers are redirected and can print fine, but
only once per session! We have tested with several different client printers and they all work a single time in each session. After that the user needs to log off and then back on again to be able to print once again, but only once. Needless to say, our users
are annoyed. If I look at the c:\windows\system32\spool\printers folder while jobs are printing, but failing, I can see the spool files appearing and disappearing as jobs are spooled. No errors in the event logs accompany the behaviour. Our clients are running
Windows 7, 8 and 8.1. All exhibit the same problem. The error looks a little like what is described here:
http://support.microsoft.com/kb/2925429
While similar, this problem describes a scenario where Easy Print is not used, but XPS is, and since Easy Print is based on XPS and the behaviour is very similar, I am tempted to make a connection.
I have checked all the usual stuff with permissions etc, and no manufacturer provided drivers are present. The problem appears on newly installed systems as well as one that have been running for some time. Restarting the spooler services does not resolve
the problem. Actually I do not think it is related to the spooler service or driver framework at all, but rather is an Easy Print driver issue that is occurring much later in the process, if not I would see some errors in the logs and no jobs would print at
all.
Anyone ever heard of something like this?
Thanks
MorganHi Morgan,
Based from your description, users can only print once during single RDP session, I suggest you check if this issue also happens locally.
In addition, after the first print attempt, does any other issue exist on the RDP session?
Is the server fully patched? If there are any available driver updates, please also apply them. If there are any third party software installed, try disable/uninstall them to see if the issue persists.
You can also enable print auditing to get more detailed information about this issue.
More information for you:
Auditing Printing Events
https://technet.microsoft.com/en-us/library/cc976774.aspx
Logging Spooler Events
https://technet.microsoft.com/en-us/library/cc976746.aspx
Best Regards,
Amy
Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected] -
Dunning Block per document number
Hi SAP Guru,
Need your help.
Scenario is like this:
We are running the dunning letter and it always gives us no output. Also, checked the Customer Master, under Correspondence tab and field for Dunning Block is empty while payment methods under u201CPayment Transactionsu201D tab is also empty which is I think it should be to run the dunning.
Upon further investigation, I found out that the invoices are tag as u201CDunning Blocku201D via FBL5N per document number. Can you explain how this happened? And why does per document number is tagged as u201CDunning Blocku201D despite the correct set up in Customer Master. And how can we delete the tag per document or is there any mass update for this.
Appreciate your thoughts on this.
Thanks,
JulieHi,
Thanks for the info. As I checked if dunning block has been tagged in SO via Header --> Accounting Tab, the field for Dunning block set to Freed for Dunning which I supposed should be.
Any other solution on this.
Thanks,
Julie -
How to print a paragraph only from a document or email on iMac
how can I print a paragragh only from a document or email
copy and paste the desired text into TextEdit then print it.
-
We have only GL SAP document number. how to find Vendor clearing document by these GL Document number please suggest and suggest Tcode.
Hi Mahesh,
To display a document, proceed as follows:
Tcode : FBL1N (Vendor Line Item Display)
1-Select option's.
2- List
Regard's.
Cem Ates -
Automatic print of the variant once per week
Hi All,
In Alv Report.
How to set automatic print of the variant once per week on Monday morning on the mentioned printer.
Please let me know how to do the abouve requirement.
Regards,
KumarThanks
-
Display column titles only once per page
Hello,
I am a newbie to BIP (R12.1.3). Below is how the output data shows up in my custom template:
Vendor type lookup : Expense
Vendor no: A12345 Vendor Name: Test Vendor1 Vendor Category: Expense - Construction
VENDOR SITE INVOICE# INVOICE DATE DUE DATE INVCT AMT REM AMT PAYMENT METHOD
======== ====== ========= ====== ====== ====== ============
Kannapolis A#12345 03-MAR-12 15-MAR-12 1000.00 1000.00 Check
Vendor no: B12345 Vendor Name: Test Vendor2 Vendor Category: Expense - Rents
VENDOR SITE INVOICE# INVOICE DATE DUE DATE INVCT AMT REM AMT PAYMENT METHOD
======== ====== ========= ====== ====== ====== ============
Test Site B#12345 03-MAR-12 15-MAR-12 1500.00 1500.00 EFT
The column titles repeat for each vendor since the titles are in the for-each loop under the vendor grouping. However, is there a way to restrict the titles to show up only once per page on all the pages? I tried putting the titles outside the vendor grouping but with in the vendor type lookup grouping. It is displaying the titles only on page1.
Thanks,
MonkeyHi, could you try Inserting the code <?if:position()=1?> before the header of your template and the code <?end if?> after the header of your template.
See the a sample code below:
<?if:position()=1?>
VENDOR SITE INVOICE# INVOICE DATE DUE DATE INVCT AMT REM AMT PAYMENT METHOD
<?end if?>
Thanks,
mr_bip_learner -
Popup with window.open should arise only once onclick
i want a popup that should arise only once onclick but i am getting that popup how many times i am clicking
That's a JavaScript problem. This forum is about Java. Java and JavaScript don't have anything in common apart from the first 4 letters of the name and a superficial similarity in syntax.
You'll get better help in a JavaScript forum. -
Start routine: only once per teh load but not once per data packet
Hi,
I would like to execute some code in start routine (in update rules) only once per the load but not once per the data packet.
How can I implement this.
Regards,I once had that same requirement, but in a datasource in R3. I'm not sure if the same solution would work in BW, though. I used a memory id to keep the variable value between packets:
DATA: ... n_globalvar TYPE n ...
then I added...
IMPORT n_globalvar FROM MEMORY ID 'ZMEMID01'.
...at the start of the routine to retrieve to the variable the value from the memory id.
At the end of the code, I exported the variable back to the same memory id...
EXPORT n_globalvar to MEMORY ID 'ZMEMID01'. -
Print a block of data (such as a check) only once per section? How?
I am creating a batch report for invoices where I summarize all invoiced transactions for the given period and then print a check. I am required to print no more than 20 invoice transaction records per page due to the check paper being printed on. This results in an unknown number of pages per client being invoiced during this batch process. Currently I have a check printing on each page -as a footer- but this is obviously not acceptable.
I would imagine there is some way of creating a global variable and then using an if statement that checks to see if the current section is equal to the global variable. If it doesn't, print the check, reassign the global variable to equal the current section and move on. This would limit the check print to once per section (client).
Any ideas on how I would do this? Any suggestions on other ways of doing it?
Thanks in advance for the guidance!
Message was edited by:
BReed - adjusted title for clarity...Chipili,
Here's a completely different method that you may want to consider. In all my Numbers documents that involve dates, I have (strategically located) a 2-Cell table that has a Header cell "Today" and just below it a cell with the formula: =TODAY(). It's handy on several levels. Format your today formula cell with the "1/5/2009" Date option - this format works best (and I don't know why). It doesn't matter how you have formatted the date you want to find, but what you will paste into the Find Window needs to be formatted this way.
Now, activate the FIND panel with a COMMAND-F and it will open at the bottom of your Numbers window.
Then to locate the current date you would select your special TODAY cell, COMMAND-C, click in the Find window, COMMAND-V. You will get at least one hit, the cell with the TODAY() expression. If the date appears anywhere else, you will get a line for this in your list of finds and clicking on it will take you there. Often I'm looking for a date a week or 10 days earlier than today's date. It's easy to create an expression for this: =TODAY()-7, for instance.
Hope this gives you something to think about.
Jerry -
The bidder should quote only once in LAC
Dear Experts,
We have a special requirement in LAC.
The bider should be able to quote only once in the LAC. Can there be any BADI to achieve this?
The exact details of the business requirement is as below:
We would like to have 2 document types of Auction. One is "Preliminary auction". Other is "Final Auction".
We need above correction in the document type viz "preliminary auction", the other document type "final auction" should work as it is in standard SAP.
Kindly suggest.
GHMy suggestion would be the same as Masa's. RFP is the right venue for your "preliminary" type of price quote. Except for the "Live" feature, other requirements, such as driving down price could be achieved. An example would be the following:
1. Define a custom field for RFx that essentially stores the latest bidder price quote
2. When a bidder responds, in BBP_DOC_SAVE_BADI for BUS2202 (response), update that custom field with the response item price
3. In BBP_DOC_CHANGE_BADI for BUS2202 (response), check the bid price against the preceding RFx's item custom field mentioned above and throw error message if the quoted price is higher. -
Amount comes multiple times against document number
Hi,
I have a query in my report that where the A/c Document numbers have the multiple line items, it goes in loop..means it print the value multiple times like: -
5500004344...............4500
5500004345...............5000
5500004345...............5100
5500004345...............5200
5500004346...............5100
It is taking the 5500004345 value 5100, in the 5500004346 document number.(saw in debugging time)..
But when it have the single document number, it is showing the correct value...
please check my code:----
REPORT zak_mat_pur_rudrapur_new NO STANDARD PAGE HEADING LINE-SIZE 125 .
TABLES : mseg, ekpo, mkpf, rseg, bkpf, bseg, lfa1.
TYPE-POOLS : slis.
DATA : BEGIN OF itab OCCURS 0,
belnr LIKE bkpf-belnr,
gjahr LIKE bkpf-gjahr,
budat LIKE bkpf-budat,
awkey LIKE bkpf-awkey,
belnr1(10) TYPE c, " LIKE rseg-belnr,
gjahr1 LIKE rseg-gjahr,
ebeln LIKE rseg-ebeln,
ebelp LIKE rseg-ebelp,
wrbtr LIKE rseg-wrbtr,
menge LIKE rseg-menge,
bstme LIKE rseg-bstme,
lfbnr LIKE rseg-lfbnr,
ebeln1 LIKE ekpo-ebeln,
ebelp1 LIKE ekpo-ebelp,
txz01 LIKE ekpo-txz01,
mblnr LIKE mseg-mblnr,
lifnr LIKE mseg-lifnr,
lfbnr1 LIKE mseg-lfbnr,
rate TYPE p DECIMALS 2,
name1(40) TYPE c , " like lfa1-lifnr,
dmbtr LIKE bseg-dmbtr,
dmbtr1 LIKE bseg-dmbtr,
sum TYPE p DECIMALS 2,
sum1 TYPE p DECIMALS 2,
rate1 TYPE p DECIMALS 2,
lfpos LIKE rseg-lfpos,
END OF itab.
DATA : BEGIN OF itab2 OCCURS 0,
belnr LIKE bkpf-belnr,
gjahr LIKE bkpf-gjahr,
budat LIKE bkpf-budat,
awkey LIKE bkpf-awkey,
belnr1(10) TYPE c, " LIKE rseg-belnr,
gjahr1 LIKE rseg-gjahr,
ebeln LIKE rseg-ebeln,
ebelp LIKE rseg-ebelp,
wrbtr LIKE rseg-wrbtr,
menge LIKE rseg-menge,
bstme LIKE rseg-bstme,
lfbnr LIKE rseg-lfbnr,
ebeln1 LIKE ekpo-ebeln,
ebelp1 LIKE ekpo-ebelp,
txz01 LIKE ekpo-txz01,
mblnr LIKE mseg-mblnr,
lifnr LIKE mseg-lifnr,
lfbnr1 LIKE mseg-lfbnr,
rate TYPE p DECIMALS 2,
name1(40) TYPE c , " like lfa1-lifnr,
dmbtr LIKE bseg-dmbtr,
dmbtr1 LIKE bseg-dmbtr,
sum TYPE p DECIMALS 2,
sum1 TYPE p DECIMALS 2,
rate1 TYPE p DECIMALS 2,
lfpos LIKE rseg-lfpos,
END OF itab2.
DATA : w_container TYPE scrfname VALUE 'CL_GRID',
w_cprog TYPE lvc_s_layo,
g_repid LIKE sy-repid,
w_save TYPE c,
w_exit TYPE c,
cl_grid TYPE REF TO cl_gui_alv_grid,
cl_custom_container TYPE REF TO cl_gui_custom_container,
it_fld_catalog TYPE slis_t_fieldcat_alv,
wa_fld_catalog TYPE slis_t_fieldcat_alv WITH HEADER LINE ,
layout TYPE slis_layout_alv,
col_pos LIKE sy-cucol ,
alvfc TYPE slis_t_fieldcat_alv.
SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS : belnr FOR bkpf-belnr.
*SELECT-OPTIONS : gjahr FOR bkpf-gjahr OBLIGATORY.
PARAMETERS : gjahr LIKE bkpf-gjahr OBLIGATORY.
*SELECT-OPTIONS : budat FOR bkpf-budat.
SELECTION-SCREEN : END OF BLOCK b1.
PERFORM fill_catalog1 USING:
'LIFNR' 'ITAB2' 'Vendor',
'NAME1' 'ITAB2' 'Name1',
'BELNR' 'ITAB2' 'MIRO Doc. No.' ,
'BUDAT' 'ITAB2' 'Posting Date',
'GJAHR' 'ITAB2' 'Year',
'BELNR1' 'ITAB2' 'A/c Doc. No.',
'LFBNR' 'ITAB2' 'Ref. Document(103)',
'MBLNR' 'ITAB2' 'Material Doc.(105)',
'EBELN' 'ITAB2' 'PO Number',
'EBELP' 'ITAB2' 'Line Item',
'TXZ01' 'ITAB2' 'Material Text',
'MENGE' 'ITAB2' 'Quantity',
'BSTME' 'ITAB2' 'Unit',
*'RATE' 'ITAB2' 'Rate',
'RATE1' 'ITAB2' 'RATE1',
'WRBTR' 'ITAB2' 'Amount',
'DMBTR' 'ITAB2' 'Variance A',
'DMBTR1' 'ITAB2' 'Variance B',
'SUM' 'ITAB2' 'Total Amt.',
'SUM1' 'ITAB2' 'Total Amt.1'.
SELECT belnr gjahr budat awkey INTO CORRESPONDING FIELDS OF TABLE itab FROM bkpf WHERE belnr IN belnr AND gjahr = gjahr.
IF sy-subrc <> 0.
MESSAGE 'DATA NOT FOUND.' TYPE 'I'(001).
ENDIF.
SORT itab BY belnr.
LOOP AT itab.
SPLIT itab-awkey AT space INTO: itab-belnr1 itab-gjahr1.
SELECT belnr gjahr ebeln ebelp wrbtr menge bstme lfbnr lfpos FROM rseg INTO (itab2-belnr1, itab2-gjahr1, itab2-ebeln,
itab2-ebelp, itab2-wrbtr, itab2-menge, itab2-bstme, itab2-lfbnr, itab2-lfpos) WHERE belnr = itab-belnr1 AND gjahr = itab-gjahr .
itab2-belnr = itab-belnr.
itab2-gjahr = itab-gjahr.
itab2-budat = itab-budat.
itab2-awkey = itab-awkey.
SELECT SINGLE ebeln ebelp txz01 FROM ekpo INTO (itab2-ebeln1, itab2-ebelp1, itab2-txz01) WHERE ebeln = itab2-ebeln AND ebelp = itab2-ebelp.
SELECT SINGLE mblnr lifnr FROM mseg INTO (itab2-mblnr, itab2-lifnr) WHERE lfbnr = itab2-lfbnr AND bwart EQ '105'.
SELECT SINGLE name1 FROM lfa1 INTO itab2-name1 WHERE lifnr = itab2-lifnr .
SELECT SINGLE dmbtr FROM bseg INTO itab2-dmbtr WHERE belnr = itab2-belnr AND gjahr = itab2-gjahr AND buzid = 'S' AND ebelp = itab2-ebelp.
itab2-rate = itab2-wrbtr / itab2-menge.
itab2-sum = itab2-wrbtr + itab2-dmbtr + itab2-dmbtr1.
itab2-rate1 = itab2-sum / itab2-menge.
*itab2-sum1 = itab2-wrbtr + itab2-dmbtr1.
APPEND itab2.
ENDSELECT.
ENDLOOP.
DATA : cnt TYPE i value 1.
LOOP AT itab2.
cnt = cnt + 1.
SELECT dmbtr FROM bseg INTO itab2-dmbtr1 WHERE belnr = itab2-belnr AND gjahr = itab2-gjahr AND buzid = 'T' AND mwart = 'V'.
MODIFY itab2 INDEX cnt TRANSPORTING dmbtr1.
cnt = cnt + 1.
ENDSELECT.
ENDLOOP.
layout-zebra = 'X' .
layout-colwidth_optimize(1) = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = 'ZAK_MAT_PUR_RUDRAPUR_NEW'
is_layout = layout
it_fieldcat = it_fld_catalog
i_default = 'X'
i_save = 'A'
TABLES
t_outtab = itab2
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*& Form FILL_CATALOG1
text
-->P_FIELDNAME text
-->P_REF_TABLE text
-->P_SCRTEXT text
FORM fill_catalog1 USING p_fieldname TYPE any
p_ref_table TYPE any
p_scrtext TYPE any.
CLEAR : wa_fld_catalog.
wa_fld_catalog-fieldname = p_fieldname.
wa_fld_catalog-tabname = p_ref_table.
wa_fld_catalog-seltext_s = p_scrtext.
wa_fld_catalog-seltext_m = p_scrtext.
wa_fld_catalog-seltext_l = p_scrtext.
wa_fld_catalog-do_sum = 'X'.
wa_fld_catalog-outputlen = 15.
wa_fld_catalog-no_zero = 'X'.
APPEND wa_fld_catalog TO it_fld_catalog.
ENDFORM. " fill_catalog1
please help me....Thanks for reply....
But same problem is still here...
I copied ur code:----
LOOP AT itab.
CLEAR itab2. "INSERT STATEMENT
SPLIT ITAB-AWKEY AT SPACE INTO: ITAB-BELNR1 ITAB-GJAHR1. "DELETE STATEMENT
itab-belnr1 = itab-awkey+0(10). "INSERT STATEMENT
itab-gjahr1 = itab-awkey+10(4). "INSERT STATEMENT
SELECT belnr gjahr ebeln ebelp wrbtr menge bstme lfbnr lfpos
FROM rseg INTO (itab2-belnr1, itab2-gjahr1, itab2-ebeln, itab2-ebelp, itab2-wrbtr, itab2-menge, itab2-bstme, itab2-lfbnr, itab2-lfpos)
WHERE belnr = itab-belnr1
AND gjahr = itab-gjahr .
itab2-belnr = itab-belnr.
itab2-gjahr = itab-gjahr.
itab2-budat = itab-budat.
itab2-awkey = itab-awkey.
SELECT SINGLE ebeln ebelp txz01 FROM ekpo INTO (itab2-ebeln1, itab2-ebelp1, itab2-txz01)WHERE ebeln = itab2-ebeln AND ebelp = itab2-ebelp.
SELECT SINGLE mblnr lifnr FROM mseg INTO (itab2-mblnr, itab2-lifnr)WHERE lfbnr = itab2-lfbnr AND bwart EQ '105'.
SELECT SINGLE name1 FROM lfa1 INTO itab2-name1 WHERE lifnr = itab2-lifnr .
SELECT SINGLE dmbtr FROM bseg INTO itab2-dmbtr WHERE belnr = itab2-belnr AND gjahr = itab2-gjahr AND buzid = 'S' AND ebeln = itab2-ebeln AND ebelp = itab2-ebelp.
itab2-rate = itab2-wrbtr / itab2-menge.
itab2-sum = itab2-wrbtr + itab2-dmbtr + itab2-dmbtr1.
itab2-rate1 = itab2-sum / itab2-menge.
*itab2-sum1 = itab2-wrbtr + itab2-dmbtr1.
APPEND itab2.
CLEAR itab2. "INSERT STATMENT.
ENDSELECT.
ENDLOOP.
Not working....plz suggest... -
0crm_mktattr_attr - delta only once per day possible?
Hi all,
we want to use delta functionality for 0crm_mktattr_attr. The problem is, that only once a day the delta for a business partner is beeing transfered to the bw. If you have done another change on the same business partner, no delta is being generated (neither that day nor the next day - so this change is lost). If we change another business partner, a new delta is created (if the business partner was not changed before the first delta. Is there any other setting we have to do to transfer get each change?
We're using CRM 7.01 SP07, BW 7.0. 0crm_mktattr_attr is already set to Delta-method AIE, changepointers (general) are activated and changepointers for message type RS0026 are also activated.
Regards,
FlorianHi Florian,
Any solution for this problem?
I also need to load data 0CRM_MKTATTR_ATTR and I´m not sure which change pointer I have to activate. For the INITIAL data load into SAP CRM, we deactivate the Change Pointer RS0027 as SAP oriented.
If I set it back, will this Datasource be Delta enabled?
Thanks
Fábio -
[EVL] Execute constraint check only once (per model)
Hi All,
I have been working with Epsilon for a few days now and I love the tool so far
I am currently working on a model validation but I cannot find an elegant way to perform a certain check only once for the entire model. The casus/Meta-Model is very simple. I have a Node that has 0..* references to itself. The idea is to have a very simple tree where nodes have a reference to their parent.
What I want to check is that there is one and only one root node, so only one node without a reference. This results in the following check: AT!ATNode.allInstances.select(n|n.Parents.size() == 0).size() = 1
I do not know where to perform this check however. If I perform it in the context of the node, it (correctly) returns an error, but does this for every node.
I also tried to have the entire model as 'context' or to apply the check in a pre-condition, but could not get any of these approaches to work. I also could not find a suitable guard to put on the constraint.
Can you help me find a more elegant solution?
Greetings,
DavidHi David,
Quote:an elegant way to perform a certain check only once for the entire model
May be you could model the "entire model" ... I mean, it's a kind of a good practice to create a ModelRoot class containing all your nodes. [A better name could be "Tree" or another appropriate name according to your domain]
Then your validation wizard, with the exactly same expression, could be set on this class, a.ka. the "entire model" ?
Furthermore, you could also ensure the root unicity by setting proper cardinalities in the metamodel, and avoid writing a check.
I even met a special case where I had to model explicitely the RootNode as a class => A tree contains one root node which itself contains nodes ...
Cheers,
--Eric
Maybe you are looking for
-
It has been useful in past versions of Firefox to be able to add (a) space(s) between icons on the toolbar in order to create groups of icons and/or separate icons by class or function. In Firefox 29.0, I discovered how to "grab" (click and drag) a s
-
Why_balance sheet @ profit center level
hi it is possible to get balance sheet at profit centre level through new gl. can someone tell me any other reason/need than "to measure performance of individual dept./devision" for generating balance sheet @ profit centre level thank you in advance
-
During job work order PO number consumed
I maked one jobwork order after saving that order, one number is generate.. when i am going to open again in me22n screen. system give message that number is not available. i.e. number is skiped... why it is so.. please forward some solution ...
-
Budget checking for services with "Unlilmited" indicator set
hi friends, Under normal cases, the budget checking is happening properly for the services in a project. But I have certain service activities where I require to set the "Unlimited" indicator set (in the service specification screen)and some other se
-
How do I change the computer's Admin name so that I can give it away?
How do I change the computer's Admin name so that I can give it away?