Output control in VOFM
Hi All,
I have written a routine in output control of VOFM to check the sales order type before generating the invoice.
I am not able to find the sales order number which is generated currently before creating the invoice.
I have given the Query as below....
select single vbelv from vbfa into w_vbelv
where vbeln = komkbv3-vbeln.
But komkbv3 is giving the invoice number which is going to genearte after requirement program.
I have to get sales order number there.
Could you plz anybody help me on this...
Regards,
Sekhar D
You don't have to hit standard tables to find the sales order type, try to find it out from global variables in the debugger, it might be available somewhere in the program.
Its not possible to get the document number which is being processed currently, because number will be assigned once all check and validations are over.
Regards
Karthik D
Similar Messages
-
VOFM formula on output control based on item category(PSTYV)
Hi Gurus,
I created an Output Control requirement in VOFM.
In the requirement ABAP codes, may I know how can I access the list of item lines category (looking for vbap-pstyv in particular) while I am creating the sales order in VA01, because the sales order is not saved yet, so I cannot get from table VBAP ?
Any way to find the variables available ?
Thanks in advance.
Best Regards,
Vasumathi
Edited by: komma vasumathi on Jun 22, 2009 3:26 PMHi there,
When the sales order is created, all data is stored in the internal tables 1st in USEREXIT_SAVE_DOCUMENT_PREPARE, MV45AV0V_VBAP-PSTYV_VALUES
in MV45AFZZ.
So you can refer the fields from there. Item catg is stored in XVBAP table.
But 1 doubt. Why do you want to trigger the O/p before the order is saved? Usually any O/p is triggered after saving the doc.
Once the document is saved, data is stored in data base tables & you can refer from them.
Regards,
Sivanand -
VOFM output control routine for VT01N
I need to know what the temporary strucutre or internal table is that SAP uses for deliveries. The values eventually get stroed in table VTTP. But when using VT01N they are not there of course until it is actually saved to the DB. The output control routine that was created gets invoked or called before it is saved so I have to read from the temp or internal table SAP uses to load these values for the deliveries. Does anyone know what this table might be? I am allowing or preventing output based on some detail concerning the delieveries but none of it is stored until it is saved so I need this temp table to get to the values.
Look in INCLUDE VTTPDATA.
This is where the internal tables are defined for VT01N.
* INCLUDE VTTPDATA *
TABLES: VTTP, *VTTP,
VTTPD, *VTTPD,
VTTPVB, *VTTPVB.
DATA: BEGIN OF COMMON PART VTTPCOM.
* shipment items
* Data base contents
DATA: BEGIN OF DBVTTP OCCURS 0.
INCLUDE STRUCTURE VTTP.
DATA: END OF DBVTTP.
* New table contents
DATA: BEGIN OF XVTTP OCCURS 0. "Sortiert nach:
INCLUDE STRUCTURE VTTPVB. " MANDT TKNUM TPNUM VBELN
DATA: END OF XVTTP.
* Old table contents
DATA: BEGIN OF YVTTP OCCURS 0. "Sortiert nach:
INCLUDE STRUCTURE VTTPVB. " MANDT TKNUM TPNUM
DATA: END OF YVTTP.
* Temporary table contents
DATA: BEGIN OF LVTTP OCCURS 0.
INCLUDE STRUCTURE VTTPVB.
DATA: END OF LVTTP.
* Definition of keys
DATA: BEGIN OF VTTP_KEY,
MANDT LIKE VTTP-MANDT,
TKNUM LIKE VTTP-TKNUM,
TPNUM LIKE VTTP-TPNUM,
END OF VTTP_KEY.
* Internal table for screen processing
DATA: BEGIN OF IVTTP OCCURS 0, "Sortierkriterium wechselt !
TKNUM LIKE VTTP-TKNUM,
TPRFO LIKE VTTP-TPRFO,
TPNUM LIKE VTTP-TPNUM,
VBELN LIKE VTTP-VBELN,
VSTEL LIKE VTRLK-VSTEL,
WERKS LIKE VTTPVB-WERKS,
LAND1 LIKE VTRLK-LAND1,
PSTLZ LIKE VTRLK-PSTLZ,
KUNNR LIKE VTRLK-KUNNR,
LIFNR LIKE VTTPVB-LIFNR,
CONADDR LIKE V56IDLNT-CONADDR,
TABIX LIKE SY-TABIX,
XTRLK LIKE SY-TABIX,
BTGWC LIKE VTRLK-BTGEW,
GSGWC LIKE VTRLK-BRGEW,
VOLMC LIKE VTRLK-VOLUM,
* fields below will be updated during tree processing
BTGWD LIKE V56IQUA-BTGWD,
GSGWD LIKE V56IQUA-GSGWD,
VOLMD LIKE V56IQUA-VOLMD,
DTMEG LIKE TVTK-DTMEG,
DTMEV LIKE TVTK-DTMEV,
TKNEW LIKE VTTP-TKNUM,
SELKZ LIKE RV56A-SELTSTP,
END OF IVTTP.
* deliveries in process
DATA: BEGIN OF XTRLK OCCURS 0. "delivery headers
INCLUDE STRUCTURE VTRLK. "Sortiert nach MANDT VBELN
DATA: END OF XTRLK.
DATA: BEGIN OF XTRLP OCCURS 0. "delivery items
INCLUDE STRUCTURE VTRLP. "Sortiert nach VBELN POSNR
DATA: END OF XTRLP.
DATA: END OF COMMON PART.
If you put a breakpoint in you VOFM routine, you should be able to examine which of these has the data that you need.
If you need more info, such as header data etc
Look at these others:
* Internal tables for shipment data base
SET EXTENDED CHECK OFF.
INCLUDE vttkdata. "shipment header
INCLUDE vttpdata. "shipment item
INCLUDE vttsdata. "shipment segment
INCLUDE vbpadata. "partner
INCLUDE vtfadata. "flow
INCLUDE sadrdata. "address
This is from the top include MV56ATOP for the program run by VT01N, SAPMV56A.
You can access all of this through SE84, Information System.
Good luck
Brian -
VOFM(Requirements Output Control)
Hi all,
We have custom output type configured which has to be displayed alone when a invoice is created for particular customer....All this part is done...but now i need to create a form routine and a requirement which wud be assigned to this output type which would display only this output type(Zxyz) say and should'nt display other standard output types like RD01 and other output types in the invoice outptut messages.....
How to create a routine is my first question for output control.
How to right a code in the routine which wud have only ZXYZ output type in the output message for particular Invoices.....Hi,
Create a routine and assign the VOFM routine to all the other output types in the procedure except for the new one..
You can create the routine in the transaction VOFM..
In the VOFM routine have this logic.
If KOMKBV3-kunag = 'my specific customer'.
sy-subrc = 4.
ELSE.
sy-subrc = 0.
ENDIF.
Hope this helps..
Thanks
Naren -
Output Control Routine for Order Confirmation
Hi,
I have a problem in sending out order confirmation when the customer have a credit block, no order confirmation is being sent.
Checked on transaction NACE, the routine for Order Confirmation (Routine 2), returns a sy-subrc =4
when the credit block is set. What is the best way to correct this?
Thanks,
CatherineCreate the new routine in VOFM->Requirement->Output Control. Make the required changes in routine source text and assign it to output procedure (NACE).
Thank You,
Ganesh -
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. -
Hi,
I am trying to create an ORDERS05 IDoc when a PO is created and sent to a folder via EDI processing.
Here are the steps I followed...
1. Created RFC Destination for EDI Subsystem (TCP/IP connection)
2. Created File port and included the RFC Destination in the Outbound trigger tab.
3. Created partner profile (Vendor)
a. Outbound parameters - message type ORDERS,
i. Outbound Options - receiver port - file port created in step 2
basic type - ORDERS05
ii. Message Control - Application - EF
Message Type - NEU
Process Code - ME10
4. Create PO (ME21)
when I look under Menu Header -> Messages it goes to a printer instead of the File Port I created.
Am I missing a step? Please let me know.
Thanks,
SnehaThanks Kalpanashri,
I followed what you said and this is what I received...
<i>Maintain outgoing EDI-connection data for partner 1002514
Message no. VN032
Diagnosis
The system could not locate the EDI partner agreements (outbound) for partner 1002514.
System response
You cannot use transmission medium 'EDI' with this partner.
Procedure
Maintain the EDI partner agreements for partner 1002514. Make sure to create entries for output control as well as for outbound parameters.</i> -
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 -
Message Determination & Output Control
Hi all,
What Message Determination & Output Control?
Why we use them , also what are the configuration steps in same?
Please guide me alon with transaction codes involved in it?
Thanks in Advance.
KomalHi Komal,
The message determination Process is the process in which you select how you want your output.
You go to T code "NACE" and can see which Application area is activated for which type. Eg. for PO gernally it is NEU. So you can select from here that which procedure and further which sap script or smart form as well as print driver or program is attached to that and can do amendements if desired.
Also you can maintain what are the out put detrmination method attached to that like print, email, EDI , fax etc.
Cheers!!
Biren Agnihotri -
Output Control - Message for Orders
Hi all,
i have in my system a message ZDWO ( Distribution ALE-Partner function CO-Sending immediatly-Condition ORDER TYPE) for sales orders. It works for all kind of orders except for one that hasn't automatic sending (but this type is in the list of conditions).
What can be the reason for this? depending on the partner? or on the type of sales order? or else?
Any ideas?
Thanks in advance.Hi,
You need to maintain condition records (transaction NACR) for application V1 (Sales). Once you added the missing order type condition, the system will propose the output control in VA02 for the corresponding sales order(s).
Regards,
Ferry Lianto -
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 -
Output control list BBP_PPF
Hiya.
Can please somebody explain when our Buyers click on the the Output Control Purchase Order transaction in enterprise portal, they do not see the modern web style version but are seeing the traditionil dynpro version that is the SAP R3 stye?
warmest regards, Pooja.Keren,
sorry I misunderstood your requirement.
The ways of controlling user screens is one of 3.
1. Screen Variants - you say you have already tried this
2. Use a BADI to hide fields or control user defined fields, if one is available?
3. Modify the template - extreme solution that will create future issues during upgrade but sometimes is the only way.
As I am a functional person you would need to contact your ABAP/technical support for the details.
Hope this helps
Allen. -
Function to send fax the attachment of the pur. order when i output control
Hi friends,
when i output control purchase order -
user want to send also the attachment documents when i click on output push button.
is anyone know how can i do that?
wich function can send the attachmant to fax?(it could be image, document,excel...etc).
thanks in advanced,
Michal.Hi,
Which FAX server software do you use?
PO output with attachment is standard function in SRM.
SRM -> PO with attachment via SMTP -> FAX server (attachment conversion) -> FAX protocol -> Vendor
Regards,
Masa -
BBP_PPF - Output Control Purchase Order
Dear Experts,
We use SRM Server 5.50
Is anyone knows how can we control the UI of transaction 'Output Control Purchase Order' (BBP_PPF)?
Thanks & Regards,
KerenKeren,
sorry I misunderstood your requirement.
The ways of controlling user screens is one of 3.
1. Screen Variants - you say you have already tried this
2. Use a BADI to hide fields or control user defined fields, if one is available?
3. Modify the template - extreme solution that will create future issues during upgrade but sometimes is the only way.
As I am a functional person you would need to contact your ABAP/technical support for the details.
Hope this helps
Allen.
Maybe you are looking for
-
How to refresh report data from bex query (BW) with parameters
Hello, i hope someone can help me with my problem. I developed an desktop application, which loads (actual state) a report from the local file system. After setting the parameters, the report should be saved as a pdf file. Loading the report into the
-
Hyperion 9.3.1 Installation Issue
Hi Admins, I have successfully installed and configured system 9.3.1. Everything seems to be good but with some issues. 1. I am not able to access planning through Workspace. 2. How can I create Planning application through performance management arc
-
anyone here who can help me?
-
How to detect mobile phone number???
Hi, Is there a way to get phone number somehow? well what i m trying to do is, connect a web site from mobile and fill some fields (may be send picture to this page). While connected to this page, i want to detect and keep this mobile's number. Any s
-
How to use Power BI designer preview to access a postgresql database
We have a postgresql 9.1 database which we want to connect to Power BI Designer Preview. I've setup the machine according to the instructions given in support.office.com I am getting a error displaying: DataSource.Error: PostgreSQL: Failed to establi