How to find Material Doc number.
Hi experts,
Is there a way we can identify the Material Doc number<MBLNR> from PP tables?
Given only the following table-fields:
afpo-kdauf
afpo-kdpos
afpo-aufnr
afpo-charg
I will be needing the Matdoc num so i can extract data from MSEG.
Thanks,
FAA
hi..
u have these fields in MSEG.
afpo-aufnr = mseg-aufnr
afpo-posnr = mseg-aufps
apart from above, the following is also there..
PS_PSP_PNR - WBS element
NPLNR - Network Number - same as aufnr
AUFPL - Routing number of operations in the order
regards,
Padma
Edited by: Padmashree RamMaghenthar on Oct 15, 2008 1:57 PM
Similar Messages
-
How to create material doc using bapi
hi all,
pls tell me how to create material doc using bapi ,
if i give po no , it will create material doc no .
advance thanks ,Hi venu,
Please go thru this example, it will help u.
REPORT ZBAPIMM01 LINE-SIZE 255 NO STANDARD PAGE HEADING
LINE-COUNT 065(001).
TABLES: T001L, "Storage Locations
MARA, "General Material Data
MAKT, "Material Descriptions
MBEW, "Material Valuation
MARC. "Plant Data for Material
DATA: BAPI_HEAD LIKE BAPIMATHEAD,
BAPI_MAKT LIKE BAPI_MAKT, "Material Description
BAPI_MARA1 LIKE BAPI_MARA, "Client Data
BAPI_MARAX LIKE BAPI_MARAX,
BAPI_MARC1 LIKE BAPI_MARC, "Plant View
BAPI_MARCX LIKE BAPI_MARCX,
BAPI_MBEW1 LIKE BAPI_MBEW, "Accounting View
BAPI_MBEWX LIKE BAPI_MBEWX,
BAPI_RETURN LIKE BAPIRET2.
DATA: BEGIN OF INT_MAKT OCCURS 100.
INCLUDE STRUCTURE BAPI_MAKT.
DATA: END OF INT_MAKT.
DATA: BEGIN OF INT_MAT OCCURS 100,
WERKS(4), "Plant
MTART(4), "Material type
MATNR(18), "Material number
MATKL(9) , "Material group
MBRSH(1), "Industry sector
MEINS(3), "Base unit of measure
GEWEI(3), "Weight Unit
SPART(2), "Division
EKGRP(3), "Purchasing group
VPRSV(1), "Price control indicator
STPRS(12), "Standard price
PEINH(3), "Price unit
SPRAS(2), "Language key
MAKTX(40), "Material description
END OF INT_MAT.
SELECT-OPTIONS:
PLANT FOR MARC-WERKS OBLIGATORY MEMORY ID PLT,
MATERIAL FOR MARA-MATNR MEMORY ID MAT,
MATLTYPE FOR MARA-MTART MEMORY ID MTY,
DIVISION FOR MARA-SPART MEMORY ID DIV.
PARAMETERS: F_FILE LIKE RLGRAP-FILENAME
DEFAULT 'C:\DATA\ZMATERIAL.XLS' MEMORY ID F_FILE,
GETDATA AS CHECKBOX, "Tick to download materials data to local harddisk
UPDDATA AS CHECKBOX. "Tick to update date to Materials Master
IF GETDATA = 'X'.
PERFORM DOWNLOAD_DATA.
PERFORM DOWNLOAD_FILE.
ENDIF.
IF UPDDATA = 'X'.
PERFORM UPLOAD_FILE.
PERFORM UPDATE_MM.
ENDIF.
FORM DOWNLOAD_DATA.
SELECT * FROM MARC WHERE LVORM EQ ' '
AND WERKS IN PLANT
AND MATNR IN MATERIAL.
CLEAR MARA.
SELECT SINGLE * FROM MARA WHERE MATNR = MARC-MATNR.
CHECK MATLTYPE.
CHECK DIVISION.
CLEAR MBEW.
SELECT SINGLE * FROM MBEW WHERE MATNR = MARC-MATNR
AND BWKEY = MARC-WERKS.
CLEAR MAKT.
SELECT SINGLE * FROM MAKT WHERE SPRAS = 'EN'
AND MATNR = MARC-MATNR.
WRITE:/ MARC-WERKS, "Plant
MARA-MTART, "Material type
MARA-MATNR, "Material number
MARA-MATKL, "Material group
MARA-MBRSH, "Industry sector
MARA-MEINS, "Base unit of measure
MARA-GEWEI, "Weight Unit
MARA-SPART, "Division
MARC-EKGRP, "Purchasing group
MBEW-VPRSV, "Price control indicator
MBEW-STPRS, "Standard price
MBEW-PEINH, "Price unit
MAKT-SPRAS, "Language key
MAKT-MAKTX. "Material description
INT_MAT-WERKS = MARC-WERKS. "Plant
INT_MAT-MTART = MARA-MTART. "Material type
INT_MAT-MATNR = MARA-MATNR. "Material number
INT_MAT-MATKL = MARA-MATKL. "Material group
INT_MAT-MBRSH = MARA-MBRSH. "Industry sector
INT_MAT-MEINS = MARA-MEINS. "Base unit of measure
INT_MAT-GEWEI = MARA-GEWEI. "Weight Unit
INT_MAT-SPART = MARA-SPART. "Division
INT_MAT-EKGRP = MARC-EKGRP. "Purchasing group
INT_MAT-VPRSV = MBEW-VPRSV. "Price control indicator
INT_MAT-STPRS = MBEW-STPRS. "Standard price
INT_MAT-PEINH = MBEW-PEINH. "Price unit
INT_MAT-SPRAS = MAKT-SPRAS. "Language key
INT_MAT-MAKTX = MAKT-MAKTX. "Material description
APPEND INT_MAT.
CLEAR INT_MAT.
ENDSELECT.
ENDFORM.
FORM DOWNLOAD_FILE.
call function 'WS_DOWNLOAD'
EXPORTING
FILENAME = F_FILE
FILETYPE = 'DAT'
FILETYPE = 'WK1'
tables
data_tab = INT_MAT
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10.
IF SY-SUBRC = 0.
FORMAT COLOR COL_GROUP.
WRITE:/ 'Data Download Successfully to your local harddisk'.
SKIP.
ENDIF.
ENDFORM.
FORM UPLOAD_FILE.
call function 'WS_UPLOAD'
EXPORTING
FILENAME = F_FILE
FILETYPE = 'DAT'
FILETYPE = 'WK1'
tables
data_tab = INT_MAT
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10.
IF SY-SUBRC = 0.
FORMAT COLOR COL_GROUP.
WRITE:/ 'Data Upload Successfully from your local harddisk'.
SKIP.
ENDIF.
ENDFORM.
FORM UPDATE_MM.
LOOP AT INT_MAT.
Header
BAPI_HEAD-MATERIAL = INT_MAT-MATNR.
BAPI_HEAD-IND_SECTOR = INT_MAT-MBRSH.
BAPI_HEAD-MATL_TYPE = INT_MAT-MTART.
BAPI_HEAD-BASIC_VIEW = 'X'.
BAPI_HEAD-PURCHASE_VIEW = 'X'.
BAPI_HEAD-ACCOUNT_VIEW = 'X'.
Material Description
REFRESH INT_MAKT.
INT_MAKT-LANGU = INT_MAT-SPRAS.
INT_MAKT-MATL_DESC = INT_MAT-MAKTX.
APPEND INT_MAKT.
Client Data - Basic
BAPI_MARA1-MATL_GROUP = INT_MAT-MATKL.
BAPI_MARA1-BASE_UOM = INT_MAT-MEINS.
BAPI_MARA1-UNIT_OF_WT = INT_MAT-GEWEI.
BAPI_MARA1-DIVISION = INT_MAT-SPART.
BAPI_MARAX-MATL_GROUP = 'X'.
BAPI_MARAX-BASE_UOM = 'X'.
BAPI_MARAX-UNIT_OF_WT = 'X'.
BAPI_MARAX-DIVISION = 'X'.
Plant - Purchasing
BAPI_MARC1-PLANT = INT_MAT-WERKS.
BAPI_MARC1-PUR_GROUP = INT_MAT-EKGRP.
BAPI_MARCX-PLANT = INT_MAT-WERKS.
BAPI_MARCX-PUR_GROUP = 'X'.
Accounting
BAPI_MBEW1-VAL_AREA = INT_MAT-WERKS.
BAPI_MBEW1-PRICE_CTRL = INT_MAT-VPRSV.
BAPI_MBEW1-STD_PRICE = INT_MAT-STPRS.
BAPI_MBEW1-PRICE_UNIT = INT_MAT-PEINH.
BAPI_MBEWX-VAL_AREA = INT_MAT-WERKS.
BAPI_MBEWX-PRICE_CTRL = 'X'.
BAPI_MBEWX-STD_PRICE = 'X'.
BAPI_MBEWX-PRICE_UNIT = 'X'.
WRITE:/ BAPI_HEAD, BAPI_MARC1.
call function 'BAPI_MATERIAL_SAVEDATA'
exporting
HEADDATA = BAPI_HEAD
CLIENTDATA = BAPI_MARA1
CLIENTDATAX = BAPI_MARAX
PLANTDATA = BAPI_MARC1
PLANTDATAX = BAPI_MARCX
FORECASTPARAMETERS =
FORECASTPARAMETERSX =
PLANNINGDATA =
PLANNINGDATAX =
STORAGELOCATIONDATA =
STORAGELOCATIONDATAX =
VALUATIONDATA = BAPI_MBEW1
VALUATIONDATAX = BAPI_MBEWX
WAREHOUSENUMBERDATA =
WAREHOUSENUMBERDATAX =
SALESDATA = BAPI_MVKE1
SALESDATAX = BAPI_MVKEX
STORAGETYPEDATA =
STORAGETYPEDATAX =
IMPORTING
RETURN = BAPI_RETURN
TABLES
MATERIALDESCRIPTION = INT_MAKT
UNITSOFMEASURE =
UNITSOFMEASUREX =
INTERNATIONALARTNOS =
MATERIALLONGTEXT =
TAXCLASSIFICATIONS =
RETURNMESSAGES =
PRTDATA =
PRTDATAX =
EXTENSIONIN =
EXTENSIONINX =
IF BAPI_RETURN-TYPE = 'E'.
WRITE:/ 'Error Message ', BAPI_RETURN.
ENDIF.
ENDLOOP.
ENDFORM.
*---End of Program
Reagrds,
Kumar -
How to find out spool number from a jobname.
Hi,
If I know the jobname and jobcount how to find the spool number of it. Jobname and Jobcount are in table TBTCO and spool number is in TSP01. Is there any link between these tables.
Your help will be appreciated.
Thanks & Regards,
Soumya.Hi,
Check the below link
[Re:Spool request;
Regards,
Surinder -
How to find out the Number range object for Incident number
How to find out the Number range object for Incident number ?
CCIHT_IAL-IALID
regards,
lavanyaHI, an example.
data: vl_num type i,
vl_char(6) type c,
vl_qty type INRI-QUANTITY,
vl_rc type INRI-RETURNCODE.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
NR_RANGE_NR = '01'
OBJECT = 'ZRG0000001'
QUANTITY = '1'
SUBOBJECT = ' '
TOYEAR = '0000'
IGNORE_BUFFER = ' '
IMPORTING
NUMBER = vl_num
QUANTITY = vl_qty
RETURNCODE = vl_rc
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.
vl_char = vl_num.
write vl_char.
Regard -
How to find out the number of songs in my iTunes 11 library
How to find out the number of songs in my iTunes 11 library
Welcome to the Apple Support Communities
To see the number of songs, go to View menu > Show Status Bar, so the number of songs you have will appear at the bottom of the iTunes window -
How to find out asset number in SAP
Hi,
Please let me know how to find out asset number based on the depreciation document number.
Regards,
Bhaskar SuruvuIn the FI document header text / line item text you found back the asset document number like:
AFB01200900101-0000000001
In the table ANLP you can found back the document number -0000000001
On this way you can make the link -
How to find material recieved with excise duty or without excise duty
HI
how to find material recieved with or without excise duty , and which table these data store . Because we need to develope one new report.
Regards
GaneshHI,
Check the report J1I5 , For the Material received with the Excise Details,
Table "J_1IEXCHDR" will store the Excise invoice header data.
Regards
Mascot. -
How to find ThinkPad serial number if label is worn?
QuestionI'm having some trouble with my T500 ThinkPad and want to contact service, but am not sure how I can find out the machine type and serial number to provide to support when I call because the sticker on the bottom of the laptop is faded so I don't know what the S/N is. I do have one number though: [serial removed] was what I copied down from it before it became faded. I dont know what to do now, so if you have any ideas, that'd be great.
Answer
Generally the label with type and serial information is found on the bottom of laptops and tablets and on the rear of desktop systems and on the back or along the edge of displays. As noted by the question asked above, in some cases, the label may become worn. To reduce / avoid this, the type / serial label was relocated to the battery compartment on some systems with removable batteries, along with the Win 7 COA. As Win 8 does not have a COA lable, and print technologies for labels have improved, most current systems have the label on the bottom.
Some tablets may have the type and serial information label on the inside of memory door / SD card slot covers as was the case with the ThinkPad tablet type 1838/1839.
Here is a link to an article on the support site with examples of label locations for different model Lenovo systems. If the system will not power up at all, finding the physical label is the best course of action when contacting service.
If the label is missing and the system will power up, there are several ways to easily find this information as it is written into the BIOS on the system board.
1) Command Prompt
Run an elevated command prompt, Enter the command "wmic bios get serialnumber" (without the quotations).
2) BIOS
Boot to BIOS (press F1 on startup) and the model type and serial number will be listed.
3) Diagnostics - Lenovo Solution Center (LSC) or the prior Lenovo ThinkVantage toolbox.wmic bios get serialnumber does not work !!!!all your pages about how to find a serial number are disfunctuional !!! What a bed service
-
How to find Materialized views in OBIEE
Hi gurus,
how to find materialized views which are used in OBIEE?
Do We see them in view log session after running a report?
I have a requirement to find MV'S.Do we use MV'S in OBIEE?What is the use of MV?
Kindly answer me.
Thanks,
sivaRefer
http://gerardnico.com/wiki/database/oracle/materialized_view -
How to find my serial number in downloaded logic pro X
how to find my serial number in downloaded logic pro X
There is no serial number for Logic Pro X
-
What is latest bundle patch level for exadata x3-2 machine? how to find the doc?
We have a exadata x3-2 machine. I have a question: What is latest bundle patch level for exadata x3-2 machine? how to find the doc?
Thanks in advance.Check note id 888828.1
This has all the infomation you need. -
How to find ipod serial number on itunes?
i need to find out what my serial number was for a stolen ipod. how can i do this on itunes?
See:
iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number -
I have no idea how to find my serial number to launch Lightroom. I have the student teacher edition and I'm using a mac.
How did you purchase Lightroom? Download? Package?
Have you followed the instructions to verify that you qualify for academic discount? -
How to find Error Reference Number Additional details in HFM
<font color="Blue">
Hi All
How to find Error Reference Number additional details in HFM ?
Example:
Error Reference Number:{01977FBD-DB42-4655-99B5-4ABF38D3E082}
Where to Find above id additional details??
I mean HSVErrorLogViewer ? OR RegistrySettings ? OR Dcomcnfg ? OR any other way to find the detailed information?
Any ideas? Appreciate your help in advance.
Regards
Taruni
</font>Hi,
try menu - EDIT - LUW debug
and see if you can get the idoc number in this way
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
How to find out cellular number on ipad
I have forgotten my cell number that m using for 3G on my ipad 2. Please let me know how to find out cell number on ipad 2
Make sure that your Cellular Data button is turned on:
CELLULAR DATA>CELLULAR DATA = ON
Then the number should show up where Diavonex indicated above
Maybe you are looking for
-
Hi all, I have been running Windows 8.1 and in Hyper-V Manager, i can see 2 VM ( 1 Linux-Ubuntu , 1 Win 7 ) for couple of months. Few days ago as usual i wanted to connect one of them while they were running but it did not work. I tried actions below
-
With the installation of SP6 runtime, our clients that connect via Citrix are getting the following Load Report Failed message: In order to fix, they must change their Citrix Connection Session Security for Files to Full Access. And, apparently, eve
-
Blue Screen of Death (How's that for irony)
I have a 160G ATV, and since the last firmware was installed, connected via HDMI, and every time I turn the system off for the night, the ATV comes back with a blue screen. The ATV become totally non-responsive; the LED in front blinks to inidicate i
-
Difference between SUN JDK V1.4.2_05 and JDK V1.4.2_07
difference between SUN JDK V1.4.2_05 and JDK V1.4.2_07 and I want to the link in SUN for that. I want to know the bug fixes between them.
-
Union Of reports using Combine Similar Request
Hi, I have a requirements to perform a calculation that involves results from 4 different reports. I am using the Union Operation in Combine Similar request for analysis option and I built the table that pulls out values from 4 different reports. Now