Function module to get material serial number status
Hi Gurus,
How to get get material serial number status? Is there any function module?
TCode IQ03 to display the serial number staus, but where i can find the status (AVLB / ESTO / ECUS) of these serial number ?
Pls help.
Regards,
Sankaran
hi,
SELECT SINGLE equnr objnr FROM
equi INTO (equnr1 , objnr1)
WHERE sernr = wa_final-sernr
AND matnr = wa_final-matnr.
CALL FUNCTION 'STATUS_TEXT_EDIT'
EXPORTING
client = sy-mandt
flg_user_stat = 'X'
objnr = objnr1
spras = sy-langu
bypass_buffer = 'X'
IMPORTING
line = sttxt
EXCEPTIONS
object_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards
siva
Similar Messages
-
Function Module to get Material Document Number
Hi All,
I want to get the Material Document Number based on the Material, batch ,movement type and plant. Is there any function module to achieve this, without going to MSEG table.check this might help you..
Get Material Document Number and Material Document Year
Regards
Kumar -
Functional module for Getting Material classification data.
Please tell me Functional module for Getting Material classification data like class type , class, characteristics and characteristics values for material.
Dear,
FM:
CLAF_CLASSIFICATION_OF_OBJECTS
Table KLAH Class Header Data
- KSML Characteristics of a Class
Regards,
R.Brahmankar -
Function Module to get Active Serial Numbers of Material Stock
Hi Experts,
Do we have any function module to get all the active serial numbers of Material Stock? Or any suggestions on how to get these through SQL Queries?
Thanks a lot for your help!GET_SERNOS_OF_DOCUMENT
-
Function Module to get sales order number
Hi,
In a custom program I am giving Material number and Plant as input in VBAP to find the Sales Order number. However this step is taking long time to execute and so getting dump with time out error.
Please let me know whether there is any Function Module in which we can input Material and plant and get the Sales Order Number.
RegardsHi,
Rather than searching for a FM, you can get a small report developed to look up for VBAP for a given material, plant.
Ensure that this report is always run in background. Also consider giving other parameters for faster processing like date range etc..
Regards,
RS. -
Function module to get material characteristics and coresponding value
Hi experts,
I have got one problem...when we go to t code MM03..we select the views for a specific material for Basic Data1,Basic Data2 and Classification..in classification we get the material description and its corresponding values...
These values we receive through specific class and its corresponding object....I want some Function Module which will allow me to receive the description and corresponding value for the material which will automatically retrieve the data for that material using the class and object...
Please help me to sort this problem...
Thanks in advanceTRY these two FMs
1) CLAF_CLASSIFICATION_OF_OBJECTS and
2) Bapi_objcl_getdetails.
for first one it gets the all characteristics assigned to the class even though the values are not assigned
in second case onle the vlaues assigned characteristics will get -
Any function module to update Manufacturer serial number in tcode IE02
Hi Friends,
I need function module or bapi to update
Manufacturer serial number in tcode IE02 .
Please ........
Thank you.
Karthik.Hi,
You may use the exit
IEQM0007
or
BADI:
EQUI_SERLV_CHECK
hope this helps.
Regards,
Renjith Michael. -
Function module to get spool request number
Hi Experts,
Is there a FM which basically returns the Spool Request Number generated by a particular Program / User ?
System: 4.6C
Thanks a lot.one more is there
'RSPO_OPEN_SPOOLREQUEST'
it will give the appropriate solution to your query.
another one ,
SUBMIT (p_repid) TO SAP-SPOOL
SPOOL PARAMETERS mstr_print_parms
WITHOUT SPOOL DYNPRO
AND RETURN.
but it will create infinite loop , so use abap memory and export a flag variable with
a value to restricted the excution of the above submit only once and all the internal
table and other data which you want in your program . below is the example .
importing variable value set at first time to restrict the infinite loop .
IMPORT var FROM MEMORY ID 'abc' .
var = var + 1 .
*checking variable to restricted scecond time exction of this block of code
*IF var = 1 .
v_memid = 1 .
EXPORT var TO MEMORY ID 'abc' . (flag variable to restrict the excution only once )
EXPORT it_pernr it_pernr_quali v_memid TO MEMORY ID 'bcd'.(internal table and otherdata)
submitting the spool request
SUBMIT (p_repid) TO SAP-SPOOL
SPOOL PARAMETERS mstr_print_parms
WITHOUT SPOOL DYNPRO
AND RETURN.
ENDIF. -
BAPI or Function Module to get MSEG table data based on PO Number (EBELN)
Hi
1. Is there any BAPI / Function Module to get PO details based on Plant and PO date?
2. Is there any BAPI / Function Module to get Material document details(MSEG data) based on PO number?
Thanks
NarendraHi,
check the Bapis Givem below
BAPI_PO_GETITEMS
http://abap.wikiprog.com/wiki/BAPI_PO_GETDETAIL1
you will get the detail.
Regards -
Function module to get vendor-CNPJ by vendor number
Hello SAP Experts,
Is there any function module to get vendor CNPJ number (For Brazil) by vendor number? If not, is there any alternative to get the CNPJ by vendor number?
Thank you,
Magesh.Can you check below FM
J_1B_NFE_IN NF-e incoming
J_1BNFE_GET_CUSTOMER_FROM_CNPJ Derive vendor from CNPJ
J_1BNFE_GET_ORGDATA_FROM_CNPJ Derive company / plant from CNPJ
J_1BNFE_GET_VENDOR_FROM_CNPJ Derive vendor from CNPJ -
Function Module to get PO details based on Plant and PO date
Hi
1. Is there any Function Module to get PO details based on Plant and PO date?
2. Is there any Function Module to get Material document details based on PO number?
Thanks
Narendrahi,
check these standard reports.
ME2L - By vendor
ME2M - By material
MSRV3 - By service
ME2K - By account assignment
ME2C - By material group
ME2B - By tracking number
ME2N - By PO number
ME2W - By supplying plant
also chck this func module.
REPL_LIST_PURCHASE_ORDER_READ
reward if hlpful. -
Function module to get the sequence numbers based on PERNR & payroll period
Hi,
Right now i am using the function module 'CU_READ_RGDIR' to get the sequence number based on the PERNR. Once i get the data i am filtering based on payroll periods (begin date and end date). Is there any function module to get the sequence number directly based on PERNR and payroll period dates? if so could you let me know.
Thanks
SatyaI think thats the only way
CALL FUNCTION 'CU_READ_RGDIR'
EXPORTING
persnr = p0001-pernr
TABLES
in_rgdir = it_rgdir
EXCEPTIONS
no_record_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
check whether "Pay date for payroll result" with in Start Date and
End date, and "Reason for Off-Cycle Payroll" is initial
LOOP AT it_rgdir WHERE paydt >= v_begda
AND paydt <= v_endda AND
void IS INITIAL
AND ocrsn IS INITIAL
AND srtza = 'A'.
v_seqnr = it_rgdir-seqnr.
ENDLOOP.
Hope this helps.
Thanks
Kiran -
Get inbound delivery number by using material serial number
is anyfuction module to get inbound delivery number by using material serial number?
input---material serial number.
output--inbound delivery number.Hi,
BAPI_OUTB_DELIVERY_CHANGE
BAPI_GOODSMVT_CREATE
it's ok with the Function module
CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
EXPORTING
VBKOK_WA = LWA_VBKOK
SYNCHRON = ' '
NO_MESSAGES_UPDATE = ' '
COMMIT = 'X'
DELIVERY = P_ITEM-VBELN
IT_SERNR_UPDATE = LT_SERIALS
IMPORTING
EF_ERROR_SERNR_UPDATE = L_SERNR_UPDATE
<b>Reward points</b>
Regards -
Function module to get the BOM details for a material-plant combination
hi
Is there any function module to get the BOM details such as
BOM Usage -STLAN
Alternative BOM -STLAL
Items -POSNR
Required Quantity-EMENG
Resulting Quantity-MENGE
Unit of measure -BMEIN
Base unit of measure-MEINS
for a given material-plant combination
if so please suggest me some FMs.................
Awaiting for ur reply..............try the below fm it may be useful for you
DATA : BEGIN OF I_BOM OCCURS 0.
INCLUDE STRUCTURE STPOX.
DATA : END OF I_BOM.
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
CAPID = 'PP01'
DATUV = SY-DATUM
MEHRS = 'X'
MTNRV = P_MATNR
WERKS = P_WERKS
TABLES
STB = I_BOM
EXCEPTIONS
ALT_NOT_FOUND = 1
CALL_INVALID = 2
MATERIAL_NOT_FOUND = 3
MISSING_AUTHORIZATION = 4
NO_BOM_FOUND = 5
NO_PLANT_DATA = 6
NO_SUITABLE_BOM_FOUND = 7
CONVERSION_ERROR = 8
OTHERS = 9.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
just befor use it check your application area.for my case it is PP01. you can find it in CS12 when you are exploding the bom the value you are giving in BOM application that is the value for CAPID.
Just go to se37 and checkout the fm it has lot of options here I am using the minimum things.
regards
shiba dutta -
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
Maybe you are looking for
-
Skype Name Changed (Yes! my Skype name. Not my Dis...
So i attempted to sign in with my original, as i believe, Skype name and password. They were both accurate. (Trust me. The ink was not smudged.) Sign in failed. Repeatedly. i asked for a reset of the password. Followed the procedure and reset my pass
-
Dear all, i have two sales order. One of this has the header field ZUONR not blank. I can't create one invoice for the two sales order beacuse the system split. i changed the customizing copy control at header level by VTFF, setting 'Reference number
-
Email notification sending to "w"?
Running the 10.5.1 update fixed the problem I was having with notification emails not being sent, but now what happens is that Mail immediately pops up a message saying it can't send the message. When I checked, it was trying to send it to the proper
-
Unauthorised use of this FTP server ( 530)
Hello, By accessing the Apex the following message is displayed: "220 - serv-tst Unauthorised use of this FTP server is prohibited and may be subject to civil and criminal prosecution. 220 serv-tst FTP Server (Oracle XML DB / Oracle Database) ready.
-
getting this error when I use an old software program in xp mode " GENERAL PROTECTION FAULT IN MODULE. WIN87EM.DLL at 0001:02C9" The program works just fine on my windows xp machine. Please help