Function module to find list of workflows for a document
Hi
Is there any standard function module where I can get list of active workflows for a document ?
example : for business object FIPP I have a document number, fiscal yr and co code. I need to get like of workflow instances for it.
what we do in SWI6 or in display transaction - services for objects - workflow overview.
I need find function module as I need to call it in a user exit.
thanks
bhakti.
Hi,
Concatenate the fields in the following order:
1. SourceCompanyCode
2. DocumentNo
3. FiscalYear
Use
CATID = 'BO'
TYPEID = 'FIPP'
INSTID = Concatenated value
in SWW_WI2OBJ to find TOP_WI_ID. Use this TOP_WI_ID as an input Parameter TOP_WI_ID of table SWWWIHEAD.
This will give you all workitems for your Document.
Regards
Gautam
Edited by: gautam maini on Jul 7, 2011 2:23 PM
Similar Messages
-
Function module to get list from CDHDR for MATERIAL
Hello,
I am searching for the function to get a list of CDHDR-entries for a material in transaction MM03.
My debugging was not successful. So I hope someone here has the answer.
What is the name of the function that SAP uses in TA MM02/MM03 to get the list of CDHDR-entries for a material number and from where (include) is it called?
I found already the function to get the related CDPOS entries, starting from the list with CDHDR entries in the transaction.
This is CHANGEDOCUMENT_READ_POSITIONS.
But here I am definitely too late, because I am searching for the reasn why one of my changes entered in CDHDR is not selected!
Thank you in advance for the answer!
Best regards
DirkHello Suhas,
yeah, I used MM04 from your answer and found the same!
Thank you! This will help me!
It is PERFORM relevanz_pruefen
called after the FM which kills some of my entries.
Now I can find a solution for my issue!
Best regards
Dirk -
Function module to find the attachment list for an accounting document?
Is there a function module to find the attachment list for an accounting document? Or which table stores such references?
I know I can find this info from the transaction FB03, but is there a function module to find the attachments for an accounting document? So far I only found the attachments are stored in the table SOOD, and archived documents in table TOA03, but I can't find the table that stores the links between the accounting document and its attachments?
<b><REMOVED BY MODERATOR></b>
Thanks,
Ning
Message was edited by:
Alvaro Tejada GalindoHi,
i_object1-typeid = 'YARSATTA'. "<<< Give your Object id name
i_object1-catid = 'BO'.
i_object1-instid = i_yarsitem-docno. "<<<< Document Number
call method cl_gos_attachment_query=>count_for_object
exporting
is_object = i_object1
ip_arl = space
receiving
rt_stat = i_stat1.
read table i_stat1 into wa_stat1 index 1.
if sy-subrc eq c_0.
move wa_stat1-counter to v_attno1.
endif.
For link you need to check for table SRGBTBREL
and also please check class CL_GOS*
a® -
Table Name or Function Module to find out all the Screens & Subscreens for
Hello Experts,
Table Name or Function Module to find out all the Screens & Subscreens for all T-Codes
Helpful Answer will b rewarded
Arif ShaikHi Balaji,
But TSTC only Gives the Program Name , T-Code and Screen but not all the Subscreen details
Any other which U know -
Function module to find total for delivey for delivery no.
is there any function module to find total price for delivery no.
If you want to add tax, ... conditions, you could try to read conditions (good luck).
here it's a sample code for sales order (the table are different, but the function the same)
DATA : is_vbak TYPE vbak ,
is_vbap TYPE vbap .
* Check if the sales order exist.
SELECT SINGLE *
INTO is_vbak
FROM vbak
WHERE vbeln EQ vbeln.
IF sy-subrc NE space.
RAISE sales_order_unknown.
ENDIF.
* Check if the sales order item exist.
SELECT SINGLE *
INTO is_vbap
FROM vbap
WHERE vbeln EQ vbeln
AND posnr EQ posnr.
IF sy-subrc NE space.
RAISE sales_order_item_unknown.
ENDIF.
* Set data.
MOVE : is_vbak-mandt TO isg_komk-mandt ,
is_vbak-kalsm TO isg_komk-kalsm ,
is_vbak-fkara TO isg_komk-fkart ,
'V' TO isg_komk-kappl ,
is_vbak-waerk TO isg_komk-waerk ,
is_vbak-knumv TO isg_komk-knumv ,
is_vbak-vbtyp TO isg_komk-vbtyp ,
is_vbak-bukrs_vf TO isg_komk-bukrs ,
is_vbak-vbeln TO isg_komk-belnr ,
is_vbap-posnr TO isg_komp-kposn .
MOVE-CORRESPONDING : is_vbak TO isg_komk ,
is_vbap TO isg_komp.
* Get the KOMV table.
CALL FUNCTION 'RV_PRICE_PRINT_ITEM'
EXPORTING
comm_head_i = isg_komk
comm_item_i = isg_komp
TABLES
tkomv = itg_komv
tkomvd = itg_komvd.
* Get the 'Marge'.
CALL FUNCTION 'PRICING_BUILD_XKOMV'
EXPORTING
i_komk = isg_komk
i_komp = isg_komp
calculation_type = 'E'
TABLES
tkomv = itg_komv
e_xkomv = itg_komv2
EXCEPTIONS
OTHERS = 2. -
Function Module to find out detail of open period of Finance (FI)
Hi All,
I have a query that I want to know the existing function module to find out
FI period detail thatis detail of opened period in FI.
Regards,
RishiHi Rishi
Go to transaction SE37 and you can see the list of FM.
Thanks
Ashok
Assign points for useful answer -
Function Module to find out the release value in contract
Dear All,
I have to upload the contract with new accoutn assignment without changing the existing contract. For that i have to download all the existing contract data with value.
In that case i have some issues regarding the value.
For example : In the system old contract is created with value 1000 and the released value as 500.
In that case i have to uload the new contract with all the details of existing contract with value of 500 (1000-500=500).
How can i get the value (500) and from which table.Is there any functional module to find out the release value in contract.
Thanks and regads,
PM
Edited by: PM on Jan 21, 2010 8:40 AM
Edited by: PM on Jan 22, 2010 9:48 AMHi
You need to link the table VBFA and VBAK.
For a contract you can check all the subsequent document (which you can filter whether you want to see Order / delivery / Billing) in VBFA and then from there pick the subsequent document no. and then from VBAK you can pick the Net value of these subsequent documents, and so you will have both the values (value of Contract and value in subsequent document) and you can determine the balance value.
Regards
Amitesh Anand -
Function Module to find date by passign the Planning Calendar
Hi All,
Can you tell me is there any function Module to find date by passign the Planning Calendar?
The requirement is i have a planning calender assigned to the Material in the MRP2 view.
Example: Material XXXXXX is assigned a Planning Calendar Z01.
Z01 is defined such that Delivery is on Monday only. This calendar says that the material is received from the Vendor only on Mondays.
So whenever i punch a Sales Order for Material XXXXXX, a PR is automatically geenrated when saving the sales order and the calculation of Delivery dates is also happening at this level.
Basing on this PR a PO is raised to a Vendor for procuring the Material XXXXXX, now my problem is for example the PO is raised today (30.04.2008), but the Materail XXXXXX is available only on next monday in my plant (05.05.2008) basing on my Planning Calendar assigned in the Materail Master, so i have to inform this dealy to my customer at the time of punching the sales order.
So is there any function Module to find date by passign the Planning Calendar?
Thanks for your valuable inputs.
Regards,
SudarshanHi Jorge,
Thanks for your reply.
I am unable to open the Function module which you have mentioned below.
I am working on 4.6 c version of SAP.
Any ways i have found one function module which is useful to my requirement as stated below:
DATE_GET_PERIOD
Thanks and Regards,
Sudarshan -
Function Module to find the Difference between two times.
Hi All,
Wud you plz let me know the Function Module to find the Difference between two times.
Input Time1( Hours:Minutes) Time2 ( Hours:Minutes)
Need Output in Hours:Minutes only . ( No seconds Needed )
Ex :
Input :
06:00 to 18:00 Output : 12:00
and 20:00 to 06:00 Output: 10:00 with +ve sign only. No -ve sign.
Thanks,
N.L.Narayanacheck this .
data : p_timel like sy-uzeit,
p_timeh like sy-uzeit,
diff like sy-uzeit,
di(8) type c .
p_timel = '200000'.
p_timeh = '060000'.
diff = p_timeh - p_timel.
concatenate diff+0(2) ':' diff+2(2) into di.
write:/ di.
also check for this.
p_timel = '060000'.
p_timeh = '180000'.
see if this can be implemented in ur code .
or else u can try with Fm L_TO_TIME_DIFF passing startdate enddate starttime endtime with UOM as MIN
hope this helps regards,
vijay -
Function module to find both sold and ship to party
Is there any function module to find both sold-to-party and ship-to-party based on the sales Area.
That is if i give sales org , distribution channel , division as input . I must get Sold-to-party and Ship-to-party as output.
Regards,
S.VelsankarHi,
You can find sold to and ship to party customer from KNVP Table as below:-
SELECT KUNNR
FROM KNVP
INTO w_sold_to_party
WHERE VKORG = YOUR SALES ORG
AND VTWEG = dist channel
AND SPART = division
AND PARVW = 'SP'. "Sold to party depneds of how its configured in your system
Check TPAR table for description Sold to part and pass the PARVW value.
Similarly for ship to party
SELECT KUNNR
FROM KNVP
INTO w_sold_to_party
WHERE VKORG = YOUR SALES ORG
AND VTWEG = dist channel
AND SPART = division
AND PARVW = 'SH'. "Sold to party depneds of how its configured in your system
Regards,
Subhashini -
QM : is there any function module to find inspection lot characterstics
Hi All,
is there any function module to find all characterstics for an inspection lot.
i need exact data which qe51n transaction is fetching .
thanks in adv ,
VarmaHi uvs,
1. we can use the fm BAPI_INSPOPER_GETCHAR.
regards,
amit m. -
Function module to find out DATA BASE size, free space, used size
Is there any function module to find out DATA BASE , free space, used size
FM that gives all the details of the Date base
what data base, what is the size, free space, used space etc...
instead of writing case by case for each data base. based on CASE SY-DBSYS.Hi,
Check this FM:
DB02_ORA_SELECT_DBA_SEGMENT
alternatively u can check the tcode: DB02
thanks|
Mahesh -
Function module to find wheather a user is heading any Org unit
Function module to find wheather a user is heading any Org unit
Hi Experts,
I need to know if a user(SY-UNAME) is heading any Org unit(Check box marked for Head of own organisational unit in TCODE PPOMA_CRM for position in Basic Data). Is there any FM for this? I am trying to use FM RH_STRUC_GET but not able to find.
Any help would be highly appreciated.Method get_assignments_of_user of class cl_crm_ppm_um_toolkit solved this problem.
-
Function module to find the path of application server
Hi can any one say me what is the function module to find the path of the application server
Hi ,
What i understand from ur question is that u need path for application server from the presentation layer i.e user screen.
u can achive the path this way
parameter: file type filename-fileintern.
when user presses F4 here, it will show the directories and path in the AL11.
I didnt find any FM which will get the path of Al11.
revrt back if any issues,
Regards,
Naveen -
Function Module to find the day
Hi,
I have a date S_DATE with me.
I need to find the day of that date.
I hope there is a function module for this.
Please reply me if you know the name of the Function Module to find the date.
Thanks in advance.Hi Rajesh,
Thanks for the reply. Your answer solved my problem.
Maybe you are looking for
-
Error message: QuickTime couldn't parse it: -43
Hello, I recently borrowed a friends video camera to record a few 3-minute clips. In order to import the clips from the camera into my computer, I had to use software called "ImageMixer 3 for Panasonic". It would not allow me to import directly into
-
Updated an app & lost a lot of work
I just updated an app that I used to make flashcards. It had close to 400 cards in it an the update wiped them out. I have to believe that they are in there somewhere. Can someone tell me if there is a finder type app on the ipad, or some other wa
-
How can I install internet download manager as an extension on my Firefox 5?
I can't install IDM 5.19 on my Firefox5
-
Warum funktioniert die Wiedergabe in Premiere CS6 nicht in 5.1
Hallo, ich habe Premiere CS6 und möchte gerne die Videoclips in 5.1 Ton wiedergeben. In den Voreinstellungen (Audioausgabe zuordnen) werden nur zwei Lautsprecher angezeigt. An den WIN7 64-bit Rechner ist ein Soundsystem mit 5.1 angeschlossen. Dieses
-
Qosmio G30: How can I install only Ulead Dvd movie factory from Recovery image
Hi everybody I have question about Ulead dvd movie factory. First, I bought my G30 with XP when it was the moment of the offer "vista for a few euros". So, I installed Vista with the official CD from Toshiba. But there was no longer Ulead Dvd movie F