Smartforms and output control
I have a requirement in the output of a sales order using smartforms to print only some of the materials from the sales order.
eg. I want to print only the materials that have a specific material group (MATKL).
Can you help me what I should do either in the program used or in the smartform
ur sales orders must be coming in some internal table
so *loop at * that internal table with a where condition which satisfies ur conditions inside
assign these specific values to another internal table of same type but having records that u require then pass these to ur smartform fm like this.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting formname = lf_formname
variant = ' '
direct_call = ' '
importing fm_name = lf_fm_name
exceptions no_form = 1
no_function_module = 2
others = 3.
call function lf_fm_name
exporting
archive_index = toa_dara
archive_parameters = arc_params
control_parameters = ls_control_param "Smart Forms: Control structure
mail_recipient = ls_recipient
mail_sender = ls_sender "Structure for Object ID
output_options = ls_composer_param "SAP Smart Forms: Smart Composer (transfer) options
user_settings = ' '
is_dlv_delnote = sales_itab "sales order Data: Transfer-Structure for Smartform
is_nast = nast "Nast
exceptions formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5.
Similar Messages
-
PO Version and output control - EC scenario
Hi
I need a help/suggession in below issue.
System: SRM 4.0, SP14. Ext Classic scenario
Issue: When closing the open POs in the system i.e checking flag "Confirmation not expected" and "invoice not expected" system creating a change version and the new output is being sent to vendor.
Requirement: These changes are essentailly to close the open PO logically and it should not be creating a new version and sent to vendor. but the change history to be recorded for business analysis.
For the above requirement, I was thinking to use the BADI BBP_VERSION_CONTROL to control the version creation by passing the above two fields as parameters.. i.e for these two fields if at all any change then version should not be created and sent to vendor
When I try to de bug the standard PO change process, system had never called the above said BADI in change process. System only calling the above badi only in creation process. Which sounds odd for me because the purpose of version control is to track the changes but the controlling BADI never gets called while change process.
Can anybody help me or suggest me any other way of controling the output and version?
Thanks
KiranHi Kiran,
You referred the right BADI BBP_VERSION_CONTROL to control / over write standard version control settings.
I believe the BADI documentation shows clearly that - this BADI is called every time the document is saved.
When you look at Method documentation, it clearly says that you can use BBP_PO_GETDETAIL function module to get the latest details of P.O change version using change version GUID.
In that you can check for details whether the 'No further confirmations expected' and 'No further Invocies expected' check boxes were checked or not so that the version creation can be restricted.
If the BADI implementation is active then definitely system will stop when an external debugger is set up.
Please check this with the help of your ABAP guy and let us know in case of any further clarifications.
Regards,
Teja -
Message determination and output control
Hi! We want to set up message determination procedure per company code. We have several companies and one purch.org, so if only one of the companies e.g. want to output a PO to a Vendor through EDI, this is will apply to all company codes... any suggestions, BADIs, enhancements available? brgs ziggy
Hi,
Define a new PO output condition table which include the company code.
Cheers ! -
Output control and message types
Hi guys,
my problem is this:I have created a new message type for output control for Purchase Order but when I create a new PO and click on 'messages' I expect that the new message type appear as a DEFAULT for example other messages like NEU,etc....
Customizing is OK--> I have parametrized the tr.NACE in all points and also Message Determination Schemas...What can I do?Is there a way to set message types as a DEFAULT for Output control in Purchase Order?
Thanks in advance,10 points for a resolutive answer...
Bye
MaximilianHI
I assume that you have created a new message type by cpoying a standard.
Basic:
You need to maintain access sequence, form routine, forms.. for this output types (which should not be a problem if you are copying from std.)
Important:
You also need to maintain the Fine- tuned control for message type, for the new output type.
You need to add your new output type in the output determination schema.
then the thing should work. try!
MRao. -
Standard script and code for output control ticket in IW32
Hi,
I am working on a output control ticket which gets printed using transaction IW32.
I have to create Z driver program and z form and attach it to shop paper.
I just wanted to make sure that RIPRCT00 and PM_COMMON are the standard program and form for this output control ticket.
Because even though if I keep a break point in the program RIPRCT00 to see the data its fetching, when I do the print preview after going in IW32 I don't go inside the standard program RIPRCT00.
So I am wondering if RIPRCT00 and PM_COMMON are the standard prohgram and form attcahed with output control ticket ?You must enter something in the form. The reason for this is because in the program when it is going to execute the print of the papers, it is call the subroutine(form) of the print program. It gets these values from your configuration in SPRO. It is doing something like this.
perform print_paper in program zriprct00.
Of course, "print_paper" and "zriprct00" are variables retrieved from the configuration.
So, in summary, In SPRO, configure the output type to use the PRINT_PAPER form of program "ZRIPRCT00" and the sapscript form ZPM_COMMON.
If you are developing a completely new "Z" print program, you must have an entry point in which the program is executed. You will have to have a subroutine(form) very simular to PRINT_PAPER, or you can just copy and paste that code into your new program.
Make sense?
Regards,
Rich Heilman -
Output Control and Copy Control
I have the following problem.
My client has a copy control for transfering data from a quotation to a different type of quotation. The quotation (old one) has a sold-to-party and a ship-to-party. These two partners are copied to the new quotation. If for any reason the ship - to - party is changed, then while printing an output for the quotation, the old ship - to - part is being printed.
What should I do?Hi Stilianos,
Please go to NACE t-code and check your output condition records regarding of your access sequence and output type. condition record may effect your ship-to like your problem.
Moreover, check your routines maintained properly your copy control partner item routine and copying requirement to your copy control item level from SD>Sales and distribution>Sales>Maintain Copy Control for Sales Documents > Copying control: Sales doc to sales doc.
I hope these will be helpful for your issue. Additionally, please share with us the progress about it.
Regards,
Sinan -
Output control and outbound parameters
Can you please help me locate the output control and outbound parameters...
thank you in advance...Hi Pabito,
I am assuming that you need to send an outgoing EDI - Mail or fax to a specific partner. This process is possbile if you could set up the output control for sales documents.
spro->sales & distribution -> BF -> Output control-> output determination -> maintain output determination for sales documents -> Assign output types to partner function.
Make sure that an output determination procedure is assigned to the sales dco type.
Also Maintain condition records for the output type and the transmission medium(EDI) using the trx NACE.
I hope this is what you are looking for, i also have a faint notion that you might be lookin how to setup an edi connection with the partner.!!!
If my notion is right do ping back to know more abt that,If you find this piece of information do take some time to award points to mee
- Girish -
Sales and distribution output control Help
Dear gurus..
I have made my customized Output type from
IMG -> SD -> BASIC FUNCTION -> OUTPUT CONTROL -> OUTPUT DETERMINATION -> OUTPUT DETERMINATION USING THE CONDITION TECHNIQUE -> MAINTAIN OUTPUT DETERMINATION FOR SALES DOCUMENTS -> MAINTAIN OUTPUT TYPES.
I have attached my program and form to the following parameters..
But when i go to VA42 and enter details for the header ouput area i cant find my customized output type
please help
Regards
Saad.NisarSaad,
It seems you didnt proper configured Output procedure.
Please follow this step and check
--> Go to transaction NACE to add your own output types.
--> Goto transaction NACE and select the application type and Click on Output types button.
--> Click on Change button and Select Processing routines and click on NewEntries button.
--> Give the output type and Give your program and FORM routine and save it
Check also u must have to put your new outut types into the procedure.
Hope it will help.
Thanks,
Raja -
Standard smartform for application V5-Groups. and Output type LL00.
Hi,
I want the name of standard smartform for application V5-Groups. and Output type LL00.
I need to print Ship to party address of Multiple Deliveries.
Can anyone tell me the standard form name and Print program name.
Regards,
RajenderHi Lavanya,
SD_LOADING_LIST is a script.
Can you please provide me with a standard smartform as we need to develop this in smartform only.
Thanks,
Rajender. -
How to control (the input and output) EXE file after I call it using exec?
Hi,
I knew that I can use runtime.exec() to call one EXE file, and this works. But this EXE has two characteristics:
1. After this exe starts, it asks user to input number such as 1 or 2 onto computer screen, then press return. Then the exe will start the calculation.
2. after it starts calculation, it prints 3 columns of numbers onto the screen.
My two questions are:
1. How to use java to input the number such as 1 or 2 automatically? this EXE can not work like this in DOS command line:
C:> file.exe parameter
The parameter is the number such as 1 or 2 that I wanna input.
2. how to redirect the 3 columns of numbers from computer screen to txt file?
My colleague can solve these two questions using Mathematica. So I know that definitely there is at least one solution for it. I just can not do it using Java. This wierd exe file bothered me a lot and I really wish that I can get help from someone in java community.
Thank you!
TonyWhen you call Runtime.exec, you get a Process object. (I presume something similar happens when you use ProcessBuilder.) Process has methods with names getOutput, getInput, and getError. These correspond to the standard input, standard output, and standard error streams of the spawned process.
You can read and write to the process on the streams corresponding to input and output that the process writes to the console.
[add]
In fact, you should be grabbing and reading the output/error streams anyway, because of the points raised by the Traps article. Google "Java Runtime exec traps" and you'll probably get a link to this JavaWorld article, which describes common Runtime.exec problems and how to solve them.
Edited by: paulcw on Jun 15, 2010 4:09 PM -
Consequences of adding and smartform to output type in nace
Dear experts,
I have one doubt . I want to link one smart form to output type EF ie purchase order. When I am saving it system is asking for customizing requests. I am doing this in development system to check the functionality of one smartform. Because we dont have any IDES System to test. Well I want to what are the consequences of adding an smartform to output type in nace. Whether it wil reflect in quality system without transporting the request. After testing can i remove that smartform which is attached to output type EF. Please confirm.No replies .
-
Attaching smartform and print prog to invoice
hi
ive developed a smartform and a print program.
da program has a selection screen dat asks user for doc number(vbeln).
it den displays data in da smartform.
now ive to attach it to va02.
wen i attach it using v/40 output type(RD000) program name : zinvoice and pdf/smartform: zinv .and try to get print preview using vf03 da preview doesnt appear.also wen i click on print it shows message "output cannot be issued".
can ny1 suggest wat da problem is and how to resolve it...
points 'll b rewarded.
rgdsfirst call the function module name using ssf_function module _name
and then inluce ur fm.
as below.
Reading the NAST and DOC structures
CALL FUNCTION 'ME_READ_PO_FOR_PRINTING'
EXPORTING
ix_nast = nast
ix_screen = ent_screen
IMPORTING
ex_retco = ent_retco
ex_nast = l_nast
doc = l_doc
CHANGING
cx_druvo = l_druvo
cx_from_memory = l_from_memory.
CHECK ent_retco EQ 0.
SmartForm from customizing table TNAPR
gv_formname = tnapr-sform.
Calling the layout set
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = gv_formname
IMPORTING
fm_name = gv_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc <> 0.
PERFORM protocol_update.
ENDIF.
For Print output:
IF nast-nacha = '1'. " Print output
ls_control_param-preview = 'X'.
ls_control_param-no_dialog = 'X'.
ENDIF.
For fax output.
IF nast-nacha = '2'. " Fax
Create the Recipient Object
CALL FUNCTION 'CREATE_RECIPIENT_OBJ_PPF'
EXPORTING
ip_country = gv_land1
ip_faxno = gv_telfx
ip_type_id = lv_fax_tp
IMPORTING
ep_recipient_id = ls_recipient_id
EXCEPTIONS
invalid_recipient = 1
OTHERS = 2.
IF sy-subrc NE 0.
IF write_out = 'X'.
FORMAT COLOR 6.
WRITE AT /5 text-004.
ENDIF.
RAISE other.
ENDIF.
Create The Sender Object
CALL FUNCTION 'CREATE_SENDER_OBJECT_PPF'
EXPORTING
ip_sender = sy-uname
IMPORTING
ep_sender_id = ls_sender_id
EXCEPTIONS
invalid_sender = 1
OTHERS = 2.
IF sy-subrc NE 0.
IF write_out = 'X'.
FORMAT COLOR 6.
WRITE AT /5 text-003.
ENDIF.
RAISE other.
ENDIF.
Output options
ls_output_options-tdteleland = gv_land1.
ls_output_options-tdtelenum = gv_telfx.
ls_output_options-tdfaxuser = sy-uname.
Control parameters
ls_control_param-device = lc_fax.
ls_control_param-no_dialog = 'X'.
ls_control_param-langu = nast-tdspras.
ENDIF.
IF gv_fm_name IS NOT INITIAL.
Below function module is used to show the Smart form
CALL FUNCTION gv_fm_name
EXPORTING
is_nast = l_nast
doc = l_doc
control_parameters = ls_control_param
output_options = ls_output_options
user_settings = ' '
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc <> 0.
Error handling
cf_retcode = sy-subrc.
PERFORM protocol_update.
ELSE.
ENDIF.
ENDIF. -
Attaching smartforms and print prog to invoice
hi
ive developed a smartform and a print program.
da program has a selection screen dat asks user for doc number(vbeln).
it den displays data in da smartform.
now ive to attach it to va02.
wen i attach it using v/40 output type(RD000) program name : zinvoice and pdf/smartform: zinv .and try to get print preview using vf03 da preview doesnt appear.also wen i click on print it shows message "output cannot be issued".
can ny1 suggest wat da problem is and how to resolve it...
points 'll b rewarded...
rgds
Message was edited by:
abapuser1.
How did u assigned the output type in NACE.
2.
did u go through the form routines of data/transfer copy controls in VOFM .
if its VA02 and VF02 then VTFA has to be used for the same in setting the output type .
if option 2 is not ur case then check with ur functional consultant as to which requirement this output is configured in the nace and in procedures.
o/p cannot be issued is not able to pick the output type for the form and the print program.
This output type has to be configured in NACE first of all.
Then to test the invoice enable this output type for that vbeln number in GOTo-_header->output -> and enable the output type.
regards,
vijay -
My Bluetooth USB wireless transmitter for my portable BT speakers has quit working. Preferences says, "The selected device has no output controls", it used to work just fine. The internal and a pair of wired external speakers work fine. Can anybody help?
Just tested something and it worked.
If I put the headphones all the way in, the mac recognizes it as a digital output.
But if i don't put it all the way in, it recognizes it as headphones and works perfectly.
It's probably this crappy headphones.
If anyone has the same problem, try this out. -
How do I create an xControl with multiple inputs and outputs?
Hello,
i am trying to write a new Xcontrol Element. In the data model I can create data types using the cluster to create compound types, eg an int and an int array. But how do I create an xcontrol which has multiple data inputs and outputs?
Kind RegardsLimping_Twerp wrote:
Alright: I see: An xcontrol is either an input OR an output. How do I achieve an output? Secondly: So you are saying the only Elements that can have multiple inputs and outputs are VIs?
Can you take a few steps back and explain what you are actually trying to do. SubVIs and Xcontrols have nothing in common and it is not clear why you even try to compare them side by side (e.g. in terms of the number of connectors).
Your questions about input or output tell us that you seems to have some misconceptions about xcontrols. Xcontrols are like regular controls, except they have some built-in intelligence that you can program. Most front panel object can be either controls or indicators and the same is true for Xcontrol. You create an Xcontrol, and after placing it on the front panel you can decide if it should be a control (where the code reads the value) or an indicator (were the code writes values to it). When you define the xcontrol facade, you also need to program how the visuals change if it is changed from control to indicator or vice versa.
As a first step, you should opend the example finder and look at some xcontrol examples.
Again, what are you actually trying to do?
LabVIEW Champion . Do more with less code and in less time .
Maybe you are looking for
-
Mac wont connect to tv :(
Hi, I am trying to connect my mac mini to my lg tv, its an lg22ls4d. i know the tv can be used as a monitor and that it works because i connected my dell laptop to it. does any one know why its not working?? thanks!
-
I don't know what I did. I started messing around with After Effects and accidentally opened up Adobe Media Encoder Queue. After that, that's when I noticed the problem. I can still import the video frames into layers but I can't open it up directly.
-
I pod not recognised when used with usb cable
I have recentley bought a new computer, which has no firewire port ( which i had used to connect my ipod classic 40gbto my old computer without any issues. However I have purchased a usb connection cable to use with the new computer and neither windo
-
-50 error when downloading songs
I've been searching for an answer. I get the message"-50 unexpected error" when my songs that I recently bought attempt to download to my library. This happens once in awhile but has been rather frequent recently. How do you fix this problem
-
Help Having a problem with my directed graph, and its been frying my head. from the test that I've ran ita ppears to be working sort of the problem that I'm having is once I've created a node, I then attach an edge to that node, however where there a