Using VOFM Transaction can we generate an IDOC automatically
Hi
I have a requriement that when ever we change the sales order Rejection Status Field (ABSTA). An IDOC needs to be generated and the status should be sent to third party.
Once the IDOC is generated we use XI to transfer the message to third party.
My query here is can we configure in transaction VOFM by a condition(if field ABSTA = X) such that an IDOC is generated automatically.
or do we have to use change pointers to trace the change and manually create ZIDOC.
I have gone through the VOFM transaction and assume that IDOC is created automatically.
Can any one please help.
Thanks in advance.
Regards,
LRK.
Hi Ravi,
As far as I know, The VOFM is used to configure the setting like when and where certain operation should take place.
Even thoug you set the field ABSTA = X in VOFM still you need to have the ZIDOC that creates the IDOC and get the return status.
I feel, you can have a driver program that will be triggered after the transaction completion, in which you can create the IDOC and post it.
With Regards,
Aditya.
Similar Messages
-
Need Code to generate Inbound Idocs
Hi friends
i have a flat file consists of delivery confirmation data
by using this i need to generate inbound idocs
i filled all the segments in idoc type /afs/delvry03 and message type whscon
can any one have the code to generate inbound idocs
please remember that here i am not using XI
thanks
AnilHi this is for Stand alone Programs, I hope it is useful to you.
Program Flow
The program logic contains the following blocks:
1. Provide a selection screen to allow a user to specify the various objects for which IDocs are to be generated.
2. Determine the key of the application document from the object specified in step 1.
3. Select application data from the database using the object key identified in step 2.
4. Populate control record information.
5. Populate an internal table of type EDIDD with data records for the various segments.
6. Call the ALE service layer (MASTER_IDOC_DISTRIBUTE) to create the IDocs in the database.
7. Commit work.
The program in Listing 32-2 generates the monthly report IDoc ZMREPT01, which illustrates a stand-alone outbound process.
Listing 32-2
REPORT ZARNEDI1 MESSAGE-ID ZE.
Parameters
object key (Social security number for the employee)
PARAMETERS: P_SSN LIKE ZEMPDETAIL-SSN.
message type
PARAMETERS: P_MESTYP LIKE EDMSG-MSGTYP OBLIGATORY.
destination system
PARAMETERS: P_LOGSYS LIKE TBDLST-LOGSYS.
Constants
DATA:
segment names
C_HEADER_SEGMENT LIKE EDIDD-SEGNAM VALUE 'Z1EMHDR',
C_WEEKLY_DETAILS_SEGMENT LIKE EDIDD-SEGNAM VALUE 'Z1WKDET',
C_CLIENT_DETAILS_SEGMENT LIKE EDIDD-SEGNAM VALUE 'Z1CLDET',
C_SUMMARY_SEGMENT LIKE EDIDD-SEGNAM VALUE 'Z1SUMRY',
idoc type
C_MONTHLY_REPORT_IDOC_TYPE LIKE EDIDC-IDOCTP VALUE 'ZMREPT01'.
Data declarations
idoc control record
data: control_record_out like edidc.
employee header data
DATA: FS_EMPHDR_DATA LIKE Z1EMHDR.
employee weekly details data
DATA: FS_WEEKDET_DATA LIKE Z1WKDET.
client details data
DATA: FS_CLIENTDET_DATA LIKE Z1CLDET.
employee monthly summary data
DATA: FS_SUMMARY_DATA LIKE Z1SUMRY.
total hours and amount for the summary segment
DATA: TOTAL_HRS_MONTH TYPE I,
TOTAL_AMT_MONTH TYPE I.
Database Tables
Application data tables
TABLES: ZEMPDETAIL, ZEMPWKDET.
Internal tables
DATA:
weekly details - appplication data
IT_WKDET LIKE ZEMPWKDET OCCURS 0 WITH HEADER LINE,
data records
INT_EDIDD LIKE EDIDD OCCURS 0 WITH HEADER LINE,
communication idocs geneerated
IT_COMM_IDOCS LIKE EDIDC OCCURS 0 WITH HEADER LINE.
Program logic
********************Select Application Data***************************
SELECT SINGLE * FROM ZEMPDETAIL WHERE SSN = P_SSN.
IF SY-SUBRC NE 0.
MESSAGE E001 WITH P_SSN.
EXIT.
ENDIF.
SELECT * FROM ZEMPWKDET INTO TABLE IT_WKDET WHERE SSN = P_SSN.
IF SY-SUBRC NE 0.
MESSAGE E002 WITH P_SSN.
EXIT.
ENDIF.
********************Build Control Record******************************
Fill control record information
CONTROL_RECORD_OUT-MESTYP = P_MESTYP.
control_record_out-idoctp = c_monthly_report_idoc_type.
control_record_out-rcvprt = 'LS'.
control_record_out-rcvprn = p_logsys.
********************Build Data Records********************************
*--Employee header--
fill the employee header information
FS_EMPHDR_DATA-LNAME = ZEMPDETAIL-LNAME.
FS_EMPHDR_DATA-FNAME = ZEMPDETAIL-FNAME.
FS_EMPHDR_DATA-SSN = ZEMPDETAIL-SSN.
FS_EMPHDR_DATA-DOB = ZEMPDETAIL-DOB.
fill the administrative section of the data record
INT_EDIDD-SEGNAM = C_HEADER_SEGMENT.
INT_EDIDD-SDATA = FS_EMPHDR_DATA.
append the employee header data record to the IDoc data
APPEND INT_EDIDD.
*--Employee weekly details--
LOOP AT IT_WKDET.
fill the weekly details for each week
FS_WEEKDET_DATA-WEEKNO = IT_WKDET-WEEKNO.
FS_WEEKDET_DATA-TOTHOURS = IT_WKDET-TOTHOURS.
FS_WEEKDET_DATA-HRLYRATE = IT_WKDET-HRLYRATE.
add administrative information to the data record
INT_EDIDD-SEGNAM = C_WEEKLY_DETAILS_SEGMENT.
INT_EDIDD-SDATA = FS_WEEKDET_DATA.
append the data for the week to the IDoc data
APPEND INT_EDIDD.
Client details of each week
FS_CLIENTDET_DATA-CLSITE = IT_WKDET-CLSITE.
FS_CLIENTDET_DATA-WORKDESC = IT_WKDET-WORKDESC.
add administrative information to the data record
INT_EDIDD-SEGNAM = C_CLIENT_DETAILS_SEGMENT.
INT_EDIDD-SDATA = FS_CLIENTDET_DATA.
append the client details for the week to the IDoc data
APPEND INT_EDIDD.
ENDLOOP.
*--Employee monthly summary--
compute total hours and amount for the month
LOOP AT IT_WKDET.
TOTAL_HRS_MONTH = TOTAL_HRS_MONTH + IT_WKDET-TOTHOURS.
TOTAL_AMT_MONTH = TOTAL_AMT_MONTH + ( IT_WKDET-TOTHOURS *
IT_WKDET-HRLYRATE ).
ENDLOOP.
fill the summary information
FS_SUMMARY_DATA-TOTHRS = TOTAL_HRS_MONTH.
FS_SUMMARY_DATA-TOTAMT = TOTAL_AMT_MONTH.
condense the summary record fields to remove spaces
CONDENSE FS_SUMMARY_DATA-TOTHRS.
CONDENSE FS_SUMMARY_DATA-TOTAMT.
add administrative information to the data record
INT_EDIDD-SEGNAM = C_SUMMARY_SEGMENT.
INT_EDIDD-SDATA = FS_SUMMARY_DATA.
append summary data to the IDoc data
APPEND INT_EDIDD.
*************Pass control to the ALE layer****************************
CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
EXPORTING
master_idoc_control = control_record_out
TABLES
COMMUNICATION_IDOC_CONTROL = IT_COMM_IDOCS
MASTER_IDOC_DATA = INT_EDIDD
EXCEPTIONS
ERROR_IN_IDOC_CONTROL = 1
ERROR_WRITING_IDOC_STATUS = 2
ERROR_IN_IDOC_DATA = 3
SENDING_LOGICAL_SYSTEM_UNKNOWN = 4
OTHERS = 5.
IF SY-SUBRC NE 0.
MESSAGE E003 WITH P_SSN.
ELSE.
LOOP AT IT_COMM_IDOCS.
WRITE: / 'IDoc generated', IT_COMM_IDOCS-DOCNUM.
ENDLOOP.
COMMIT WORK.
ENDIF. -
Can workflow instances be cleared automatically ?
Hi..
I am running a regression test on a WLI 7.0 sp2 environment using BPM
workflows. I need to run a test of around 1000 iterations min. but at around
500+ iterations, the WLI Instance table is full giving the error of 'Max
extents reached'
At this point, my testing needs to be stopped to remove the completed
workflow instances manually using BPM studio. Is there any way using which I
can remove the completed instances automatically from the WLI workflow
instance table ?
Thanks in advance
Mandar-> click '''Firefox''' button and click '''Options''' (or Tools Menu -> Options)
* '''Privacy''' panel -> '''History''' section -> ''under'' '''Firefox will:''' ''select'' '''"Use Custom Settings for History"''' -> REMOVE Checkmark from '''Permanent Private Browsing mode'''
* place Checkmark on '''Clear History when Firefox Closes''' -> click '''Settings''' button ->place Checkmarks on items you don't want Firefox to remember when you close Firefox -> click OK
* click OK on Options window
Check and tell if its working. -
Need help using transaction IORD to generate PM order IORDERS01
We are trying to generate PM order idocs IORDERS01 using transaction IORD. We have created the ALE distribution model.
Whether we enter an individual order number or a date range for a list of orders, no IDocs are being generated.
If we select a daterange, we get the following results:
Send order
Selected from Order selection: 17,259
Rejected (status selection): 16,694
Rejected (no operation selected): 565
IDoc(s) created: 0
Are no IDocs being generated because they are rejected through the "status selection" and "no operation selected"? Why are they rejected?
What criteria do we need to enter in the input selection to generate the IDOcs?
Any help to understand how this transaction works and how we can generate the IORDER IDocs for PM order is appreciated.
Thanks,
JayI want to join the OS_LOCN_CURR_STK table with the
OT_PO_ITEM table , such that all items in
OS_LOCN_CURR_STK are displayed.
If you want all items in OS_LOCN_CURR_STK to be returned, use an OUTER JOIN on the columns joining the 2 tables. -
IDOC should be created when PO RELEASED Using ME29N Transaction?
Hi,
Can anyone suggest me how to create ACCESS SEQUENCE,PROCESS ROUTINES,CONDITION RECORD and all steps in NACE Transaction.
our requirement is that the IDOC Should get Created Only after Purchase Order is Released using ME29N transaction.
Can anyone tell how to create IDOC and Send that IDOC to Receipient system for a Purchase Order that is already Released using ME29N transactionthank u
-
Can we generate a transport request in SCAT transaction?
Hi Everyone,
Is it possible to generate a transport request in SCAT transaction.
I am using a test case to update some tables. Can I generate a transport request so that I can move the changes to the table (like table maitainance) across systems?
Thanks in advance.Hi,
Please check this link which has very good article for beginner.
http://www.thespot4sap.com/Articles/CATT.asp
For more information, please check this links.
http://help.sap.com/saphelp_47x200/helpdata/en/ae/410b37233f7c6fe10000009b38f936/content.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCATTOL/BCCATTOL.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCATTOL/CACATTOL.pdf
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/u/37984. [original link is broken] [original link is broken]
Hope this will help to start with.
Regards,
Raj. -
What is vofm transaction for which purpose it is used
hi gurus
can anyone suggest me
what is vofm transaction for which purpose it is used
in smartforms
thanks®ards
kals.Hi ,
VOFM is the transaction where you can maintain Requirement routines, which are assigned through cusomization.
To create a routine you need access key & routine no. starts with "9".for ex. 901,902 etc.
one important thing to note that even if you have some syntax errors inside your routine, it will get activated without errors. So, you need to do Main Program check before activation.
Refer to SAP Note no : 327220,381348,156230.
what is VOFM transaction..
Regards,
Raj. -
Can we make use of Transaction code FKMT for vendor line items
Hi
Please advise me whether we can make use of Transaction code FKMT (Account assignment model) for vendor line items as follows:
For Example:
Expenditure Account Dr. Rs.1000
To Vendor A Rs.100
To Vendor B Rs.100
To Vendor C Rs.100
To Vendor D Rs.700
Also please advise me what to give parameters
Thanks and Best Regards
Shekhar
Edited by: Shekhar Yecham on Sep 19, 2008 7:05 AM
Edited by: Shekhar Yecham on Sep 19, 2008 7:10 AMDear Kulakarni,
I found few of my fields in 0FI_AP_4.I did n't find few fields can i enhance the Datasourse.
What is the respective Cube for that Datasourse.
I check 0AP_30,but in Business Content that cube is not available.
Could you please give me guidance.
Thanks in Advance,
Srinivasan. -
Can i using Adobe Reader plugin to generate signature in Reader X?
I noticed that user can add annotation in Reader X, so i want to know if i can add signature or custom annotation in Reader X by my plug in?
Thanks in advance.If the PDF is Reader Extended, yes.
From: Adobe Forums <[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
Date: Thu, 3 Nov 2011 05:48:36 -0700
To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
Subject: Can i using Adobe Reader plugin to generate signature in Reader X?
Can i using Adobe Reader plugin to generate signature in Reader X?
created by ChromeUser<http://forums.adobe.com/people/ChromeUser> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4005332#4005332 -
How we can use call transaction xd03 in alv report
hey guys i want now that how we can use call transaction xd03 in alv report by using various tables in report or coding.
can you tell me about that by the way of coding so that it can be easy for me to understand and help ful to make report by using alv report with many tables. so please send me .
Moderator message: it seems to be XD03 day today, please search for available information/documentation/previous discussions.
Edited by: Thomas Zloch on Nov 25, 2011 1:24 PMWhere?
Max -
I am using an NI PCI 6024 E board device for an analog output application. Can I generate two independent waveforms, one on each analog output channel? In attach I send a example of my vi to control one chanel, but i need to control both but with diferent waveforms.
Is the vi correctly programed to this propose?Yes you should be able to do that. look at the signal generation examples shipped with LabView
You can create a 2 D array, with each row representing a wave form per channel. The number of points of the wave form (per row of the 2 D array) represent the number of points in the output buffer
The wave forms can have different amplitudes/shapes, and therefore they are independent in this sense.
However, you need to set the update rate,which is the same for both channels. The update rate together with number of points per buffer determines the frequency of the wave forms. This means the two wave forms will have the same frequency.
To have different frequencies, you need to have say, on wave form with one cycle per buffer, and the other waveform have 2 cycles
per buffer. in a case like that the frequency of the second channels is twice that of the first channel, and so on
The two wave forms are then not truly independent, they may have different amplitudtes/shapes, but related in frequency. -
How can I generate tones with usb 6008 using analog out?... tia sal2
Greetings All
I've been looking at the example Sim Phone.vi that comes with labview and would like to generate similar tones out of our usb 6008 device. I can get a very faint sound out of our usb 6008 using the example Gen Multi Volt Updates-SW Timed.vi Does anyone know the best way to alter Sim Phone.vi to have the sound come out of the Analog output of our usb 6008 device. ( I have a small speaker connected to the Analog out on our USB 6008)
PS: we are using labview 7.1
Does anyone know the Analog output frequency range of the usb-6008? Is this possible?
TIA
Attachments:
Gen Mult Volt Updates-SW Timed.vi 78 KBHi sal2,
As stated earlier you could most certainly use the USB device to generate sound, but that would be at a max update rate of 150 Hz. While according to Nyquist theorem you could get frequency information for signals below 75 Hz, you may notice that the quality of the data in that spectrum to be very low due to having so few samples.
While technically possible to produce you really should look for a device with a faster Analog Output update rate. I would look for a device that supports Analog Output at least 10x the maximum frequency that you want the user to hear. Some great, yet lower cost products, would be the M-Series line of products. They would give you the performance that is really needed in the type of application that you are talking about.
If you still want to use the USB Device, then you would need to use code similar to that found in the example Gen Mult Volt Updates-SW Timed (Found here: C:\Program Files\National Instruments\LabVIEW 7.1\examples\daqmxbase\Dynamic\ao).
Best of luck getting your system together,
Otis
Training and Certification
Product Support Engineer
National Instruments -
Can we use Call transaction and session method in same program ?
Hi experts,
Is it suggested to use call Transaction and session method in the same Program ?
i have a doubt , why cant we use multiple call transactions in same program instead of session method if we have multiple transaction updations ?Hi Dengyong Zhang,
we can use the call transation and session method in same program.
However for better performance it's benificial to use call trasaction method of BDC. but if u want to upload very large amount of data then Session method is more preferable to use.
Session method is one of the method of BDC.
U can also use BAPI to upload the data in SAP but it's a different concept than BDC. Performance wise BAPI is more advantageous than BDC. -
Can u use autonomus transaction in trigger
hi friends,
Can you use autonomous in a trigger?
if yes ...then can you pass commit ...statement inside the autonomous transaction ?
if yes then what are the limitations of this scenario.
regards
rajyes, you can use autonomous transaction in triggers.
I don't understand your 2nd question, but maybe this article from Tom Kyte can clarify things
http://asktom.oracle.com/~tkyte/autonomous/index.html
If not, just come back and explain a little bit more what you are trying to achieve -
Can i generate certificates using java api
can i generate certificates signed by my private key using java API.
I found cetificatFactory must generate a certificate from a file,
but how can i generate this file?
Thanksvisit :
http://java.sun.com/j2se/1.3/docs/tooldocs/win32/jarsigner.html
http://java.sun.com/j2se/1.3/docs/tooldocs/win32/keytool.html
u can create ur own certificate
Edward
Maybe you are looking for
-
Needless to say I'm beyond embarrassed. I teach computer science (Middle School, private school) and have forever warned my kids to be very careful what they download; but are always "safer" with Mac OSX. Alas, maybe not. I was trying to download Goo
-
I get this message when trying to install itunes, I have tried just about everything but nothing works. I have wiped ALL traces of itunes and started again...no luck...iI tried a 32bit instead of a 64 which is what my pc is rated for...no luck...it w
-
Dear Consultants, Where we will select customer specific Schema in off cycle work bench (PUOC_40), for regular payroll run we are using custom schema (COSM), but in Off cycle work bench am not able to select the Schema, can any one help on this pleas
-
I am trying to update my apps, but an old, deactivated iTunes account comes up. My iCloud is set to my new account. Why is this happening?
-
Citadel database to store constants?
can i use citadel database to store constants? normally use citadel to store trends of any variable (and work fine), but if i need store a constant value, for example the result of a test (user name, erorr, etc...). i can do it using memory tags,