Function module to generate Batch number
Can anyone please let me know, the function module to generate the batch numbers. if possible the procedure to generate the batch number.
Hi Venkat,
Check function module <b>VB_CREATE_BATCH</b>.
Thanks,
Vinay
Similar Messages
-
Function Module for generating Randon Numbers
Hi,
Is there any Function Module to generate Random Numbers automatically.
Say for example: The Lower Limit is 10 and the Higher imit is 30.
So is should generete the random numbers between 10 and 30. and it should store in he Data Base level.
Please help me in this ascept.
Thanks & Regards:
JSRHi,
You can use Number Range Concept.
Get new number
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = c_01
object = c_key_no
IMPORTING
number = pw_key_no
EXCEPTIONS
interval_not_found = 1
number_range_not_intern = 2
object_not_found = 3
quantity_is_0 = 4
quantity_is_not_1 = 5
interval_overflow = 6
buffer_overflow = 7
OTHERS = 8.
Thanks,
Sree. -
Any1 aware of a function module to convert a number in exponential form
any1 aware of a function module to convert a number in exponential form to normal form...
eg... a no. like 8.00000000000004E-01
8.88888888888884E-01
and
a no. like 1.50000000000000E+00
9.44444444444442E-01I think you can just move from type F to type p.
p = f .
Regards,
Rich Heilman -
Function Module to get pernr number based on first name and last name
Hi All,
What is the Function Module to get pernr number based on first name and last name.
Could you please help me.
T@R.
Vidyahi Vidya,
you can get perner from PA0002 based on firs name and last name.
use select query and get perner. -
Function Module to determine the number of pages in a pdf file
Hi All,
Is there any standard function module to determine the number of pages in a pdf file?
Thanks,
SaiHi unk2,
There's no functionality in the Acrobat.com online services to do a character count. But, you could use ExportPDF to convert your PDF file to Word format, and then do your character count in Word.
Please let us know if you need additional assistance.
Best,
Sara -
Function module for assigning BP Number to the Postion ID in org model
Hi Experts,
Is there any function module for assigning BP Number to the Postion ID in organizational model.
The requirement is:
1)There are some employees which are reporting to a Manager who has a position ID.
2) Each of these employees should be assigned to the given position ID.
This can be done by First Locate the BP Record in SAP via the Vantive Person ID and retrieve the SAP BP Number.
<b>Then assign the SAP BP Number found to the Position ID.</b>
My question is <b>Is there any function module for assigning BP Number to the Postion ID .</b>
Looking forward for reply.
Thanks & Regards,
Renju.Hi,
Org. management uses API classe objects with static methods as APIs. You may be able to achieve this using
CL_CRM_ORGMAN_SERVICES->MAPPING_ORGUNIT_TO_BP
Reward if helpful!
Regards,
Sudipta. -
IDoc outbound function module to generate Purchase order PORDCH IDoc
Hi all,
Can anyone help me with the outbound function module to generate PORDCH IDocinstead of that you can use the Below For PO's.
Message Type : ORDCHG
Process Code : ME11
Function : IDOC_OUTPUT_ORDCHG -
Function Modul for generate hashcode
Hi all
i search a function modul for generate a hashcode. Does it existing a function modul for that?
RegardsHi
Try FKK_BR_BUILD_HASH_CODE.
Pushpraj -
Is there any Function Module to create SERIAL NUMBER
Hi All,
I need to create "SERIAL NUMBER" by passing "Material & Equipment Category ('S' -Always) ".
Plz Advise me , is there any Function Module to Create "Serial Number ".
Thanks in Advance.
Vyshu.hi,
check this function module
'NUMBER_GET_NEXT
Search with NUMBER_GET_NEXT keyword
Thanks & REgards -
Function modules to generate the event required
Hi guys,
I have created a workflow but its start event is not getting triggered though condition data is correct.
I want to debug and see when the Business object's event is called.
Can you please tell me name of the Function modules to generate the event. This way i'll put a breakpoint on those and check the flow ?
Regards,
ShailiThanks Surjith
I'll check this FM.
Also I want you advice on the real issue i'm facing.
I have created a workflow giving some condition with start event as CHANGED of BUS1006. Now the work of populating the field in condition is done automatically by a BADI i've created.
The issue is that the workflow is not triggerd during automatic population of teh field but is triggered when i explicitly populate the field.
The reason might be that CHANGED event of the business object used is triggered before the SAVE BADI has populated teh field. So CHANGED event 's condition is not satisfied before the BADI has finished updating.
Is there a way tackle this. Can I somehow push back the trigger of workflow...I'm new to workflows so please don't mind if this sounds foolish
Regards,
Shaili -
Is there any function module that generates date of 30th september of next
is there any function module that generates date of 30th september of next year.?
May be u mean...20100930
You can simply
Add 10000 to this years sept 30...If you want sept 30 from today...
Data: G_DATE Type Sy-DATUM.
G_DATE = Sy-DATUM.
G_DATE+4(02) = '09'.
G_DATE+6(02) = '30'.
G_DATE0(04) = G_DATE0(04) + 1.
Santhosh -
Function module to generate a unique number in report based on descrepency
hi friends,
i have a object that..
Every discrepancy Should Have a unique number in the report, which calls based on the discrepancy (dc_qty)-(recd_qty)=shortage
the shortage value will be always positive,n not <=0..
is there any function module which should generate a unque no
based on passing MBLNR..
or any other way...
Thanks n regards
harishuse following funtion module
call function 'NUMBER_GET_NEXT'
exporting
nr_range_nr = '01'
object = 'ZBDCMSC2N'
importing
number = file_no
exceptions
interval_not_found = 1
number_range_not_intern = 2
object_not_found = 3
quantity_is_0 = 4
quantity_is_not_1 = 5
interval_overflow = 6
buffer_overflow = 7
others = 8.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
in This
Creat a number Range object(ZBDCMSC2N') using transction SNRO.
for any problem revert back.
regards
Rajesh -
Function Module to Generate Outbound IDOC for Sales Documents
Hello Experts,
Can someone please help me, I need to know which function module to use in order to generate the outbound IDOC for sales documents. Some of the fm's I have come across are the following:
IDOC_OUTPUT_ORDERS, but actually for Purchase Orders
IDOC_OUTPUT_ORDRSP, but did not generate any IDocs for my sample Sales Order.
Points will be given for any help provided.
Thanks in advance.Hi Nagaraj,
I tried using the IDOC_OUTPUT_ORDERS but I keep getting an error that the Purchase Order <xxx> does not exist, even though the document I tried is a sales order. For everyone's reference here is the code:
form process_data.
DATA v_idoc TYPE edidc-docnum.
DATA i_edidd TYPE TABLE OF edidd.
DATA wa_idoc_ctrl TYPE edidc.
LOOP AT i_nast INTO wa_nast.
CLEAR i_msgs[].
CALL FUNCTION 'WFMC_PROTOCOL_GET'
EXPORTING
cps_nast = wa_nast
tables
messages = i_msgs
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2.
LOOP AT i_msgs INTO wa_msgs WHERE arbgb EQ 'E0'.
*--- Check first if there is an IDOC
IF wa_msgs-msgv1 IS INITIAL.
CONTINUE.
ENDIF.
v_idoc = wa_msgs-msgv1.
CLEAR i_edidd[].
CLEAR wa_idoc_ctrl.
CALL FUNCTION 'IDOC_READ_COMPLETELY'
EXPORTING
document_number = v_idoc
IMPORTING
IDOC_CONTROL = wa_idoc_ctrl
* NUMBER_OF_DATA_RECORDS =
* NUMBER_OF_STATUS_RECORDS =
TABLES
* INT_EDIDS =
INT_EDIDD = i_edidd
EXCEPTIONS
* DOCUMENT_NOT_EXIST = 1
* DOCUMENT_NUMBER_INVALID = 2
OTHERS = 3.
CALL FUNCTION 'IDOC_OUTPUT_ORDERS'
EXPORTING
object = wa_nast
control_record_in = wa_idoc_ctrl
* IMPORTING
* OBJECT_TYPE =
* CONTROL_RECORD_OUT =
tables
int_edidd = i_edidd
* EXCEPTIONS
* ERROR_MESSAGE_RECEIVED = 1
* DATA_NOT_RELEVANT_FOR_SENDING = 2
* OTHERS = 3
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
COMMIT WORK.
ENDLOOP.
ENDLOOP. -
ABAP - Function module to get the number of working days between 2 days
Hi gentlemen,
I have been asked to produce a report that gives the number of working days between 2 days, based on a calendar.
I didn't find anything...
Has any of you already written a function module to get this ?
A great thanks in advance.
Jacques LagrifHi ,
you can try this ,
when you require the number of working days between D1 and D2
Total No of Days will be
D2 - D1
No of holidays between D1 and D2 , use the FM HOLIDAY_GET
Pass the From date , to date , and the factory calendar to get the of Holidays
Total no of days - Number of Holidays will your Working days
Regards,
Sathya -
Function Module to fetch Customer Number from Sales Order or Process Order
Hi Gurus,
I am looking for a Function module which gives me customer number from Sales order or Process order.
Please let me know of any FM's available.
Regards,
MadanHi,
Thanks for your response.
I am actually looking for function modules which take "Sales Order" or "Process Order" as input (import parameter) and return Customer Number as output (export parameter).
Please suggest some function modules you know any.
Many Thanks,
Madan
Maybe you are looking for
-
Approvers are not displaying after Saving the SC and re opening SRM 7.0 PCW
Hi All, We have implemented PCW SRM7.0 SC workflow, where we have implemented to ES - /SAPSRM/BD_WF_PROCESS & /SAPSRM/BD_WF_AGENTS .... When we are saving any SC and re opening it further then it is not determining any approvers. when I debugged then
-
Imac 27" - installed Snow Leopard from macbook pro - just get grey apple
I have a friends imac he bought second hand and it starts okay but the mouse moves but the click is unresponsive. I wiped it via firewire target mode and installed snow leopard.... all that happens is I get as far as the grey apple screen.... I check
-
Hi.. i am trying to use LDAP search qpac.I have the provider url and i gave the username as admin and password as password.when i drag the ldap search qpac into my workflow and refreshing for the baseDN, it is giving an error saying that "cannot inst
-
Hi,all I've found a problem arising from this sentence "call SELECTION-SCREEN 1001 STARTING AT 10 10",in the main screen. (here the type of screen 1001 is 'Modal Dialog Box') The 'close' button on the right-top correr of the screen has no effect to c
-
I have inherited a ibook G4 that will not start up. Well, it starts up kind of. I hear the sound, see the grey apple then get to a blue screen where nothing else happens. I have tried removing the battery pack and also restarting while holding ctrl,