To add serial number column
Dear Experts,
I herewith attachedc my codings i waht to add serial number how to do that i have done something but it is giving all zero values.,.,.,
*& Report ZAPPRAISAL_LAG
REPORT ZAPPRAISAL.
*Declaration of type-pools
TYPE-POOLS SLIS.
*Declaration of tables
TABLES : PA0025, PA0001.
DATA : LV_VALUE TYPE I.
*Declaration of work area
DATA: BEGIN OF WA_PA0025,
PERNR TYPE PA0025-PERNR,
ENDDA TYPE PA0025-ENDDA,
BEGDA TYPE PA0025-BEGDA,
AEDTM TYPE PA0025-AEDTM,
BWNAM TYPE PA0025-BWNAM,
DAT25 TYPE PA0025-DAT25,
GRPNR TYPE PA0025-GRPNR,
ENAME TYPE EMNAM,
BUKRS TYPE PA0001-BUKRS,
number type i,
END OF WA_PA0025,
WA_FCAT TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
wa_sort TYPE SLIS_SORTINFO_ALV,
WA_EVENTS TYPE SLIS_T_EVENT WITH HEADER LINE.
DATA: row_number type i.
*Declaration of internal tables
DATA : IT_PA0025 LIKE TABLE OF WA_PA0025,
IT_FCAT TYPE SLIS_T_FIELDCAT_ALV,
I_SORT TYPE STANDARD TABLE OF SLIS_SORTINFO_ALV,
IT_EVENTS TYPE SLIS_T_EVENT.
*selection screen
SELECTION-SCREEN BEGIN OF BLOCK FF WITH FRAME TITLE TEXT-001.
*SELECT-OPTIONS S_DATE FOR PA0025-DAT25.
parameters : p_date type pa0025-dat25.
parameters : p_date1 type pa0025-dat25.
SELECT-OPTIONS S_BUKRS FOR PA0001-BUKRS NO INTERVALS.
SELECTION-SCREEN END OF BLOCK FF.
*ALV EVENTS
WA_EVENTS-FORM = 'HEADER'.
WA_EVENTS-NAME = 'TOP_OF_PAGE'.
APPEND WA_EVENTS TO IT_EVENTS.
CLEAR : WA_EVENTS.
*start-of-selection event.
START-OF-SELECTION.
SELECT DISTINCT
A~PERNR
A~ENDDA
A~BEGDA
A~AEDTM
A~BWNAM
A~DAT25
A~GRPNR
B~ENAME
B~BUKRS
INTO TABLE IT_PA0025
FROM PA0025 AS A
INNER JOIN PA0001 AS B
ON BPERNR = APERNR
WHERE A~DAT25
between p_date and p_date1
AND B~BUKRS IN S_BUKRS.
SORT IT_PA0025 by pernr.
DESCRIBE TABLE IT_PA0025 LINES LV_VALUE.
loop at it_pa0025 into wa_pa0025.
row_number = row_number + 1 .
WA_PA0025-number = row_number.
*append wa_pa0025 to IT_PA0025.
endloop.
perform fcat using '1' 'NUMBER' 'S.no' '12' '' 'C410' 'C'.
PERFORM FCAT USING '2' 'PERNR' 'Personnel number' '16' 'X' 'C410' 'C'.
PERFORM FCAT USING '3' 'ENAME' 'Employee name' '26' '' '' ''.
PERFORM FCAT USING '4' 'BUKRS' 'Company code' '15' '' '' 'C'.
PERFORM FCAT USING '5' 'BEGDA' 'Start date' '11' '' '' ''.
PERFORM FCAT USING '6' 'ENDDA' 'End date' '10' '' '' ''.
PERFORM FCAT USING '7' 'AEDTM' 'Changed date' '13' '' '' ''.
PERFORM FCAT USING '8' 'BWNAM' 'Appraiser' '18' '' '' ''.
PERFORM FCAT USING '9' 'DAT25' 'Appraised date' '15' '' '' ''.
CLEAR wa_sort.
wa_sort-fieldname = 'PERNR'.
wa_sort-up = 'X'.
APPEND wa_sort TO i_sort.
CLEAR wa_sort.
wa_sort-FIELDNAME = 'DAT25'.
wa_sort-UP = 'X'.
APPEND wa_sort TO I_SORT.
CLEAR wa_sort.
wa_sort-FIELDNAME = 'BUKRS'.
wa_sort-UP = 'X'.
APPEND wa_sort TO I_SORT.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-CPROG
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
IT_SORT = I_SORT
I_GRID_TITLE = 'Report'
IT_FIELDCAT = IT_FCAT
IT_EVENTS = IT_EVENTS
TABLES
T_OUTTAB = IT_PA0025.
*& Form USER_COMMAND
text
--> p1 text
<-- p2 text
FORM USER_COMMAND USING U_UCOMM TYPE SY-UCOMM
US_SELF_FIELD TYPE SLIS_SELFIELD.
CASE U_UCOMM.
WHEN '&IC1'.
READ TABLE IT_PA0025 INTO WA_PA0025 INDEX US_SELF_FIELD-TABINDEX.
CASE US_SELF_FIELD-FIELDNAME.
WHEN 'PERNR'.
SET PARAMETER ID : 'PER' FIELD WA_PA0025-PERNR.
CALL TRANSACTION 'PA30'.
ENDCASE.
ENDCASE.
ENDFORM. " USER_COMMAND
FORM FCAT USING FP_COL_POS
FP_FIELDNAME
FP_SELTXT_M
FP_OUTPOUTLEN
FP_HOTSPOT
FP_EMPHASIZE
FP_JUST.
WA_FCAT-COL_POS = FP_COL_POS.
WA_FCAT-FIELDNAME = FP_FIELDNAME.
WA_FCAT-SELTEXT_M = FP_SELTXT_M.
WA_FCAT-OUTPUTLEN = FP_OUTPOUTLEN.
WA_FCAT-HOTSPOT = FP_HOTSPOT.
WA_FCAT-EMPHASIZE = FP_EMPHASIZE.
WA_FCAT-JUST = FP_JUST.
APPEND WA_FCAT TO IT_FCAT.
CLEAR : WA_FCAT.
ENDFORM. " FCAT
*& Form HEADER
text
--> p1 text
<-- p2 text
FORM HEADER . "#EC CALLED
DATA : IT_HEADER TYPE SLIS_T_LISTHEADER,
WA_HEADER LIKE LINE OF IT_HEADER.
WA_HEADER-TYP = 'H'.
WA_HEADER-INFO = TEXT-006.
APPEND WA_HEADER TO IT_HEADER.
CLEAR WA_HEADER.
WA_HEADER-TYP = 'S'.
WA_HEADER-KEY = TEXT-007.
CONCATENATE SY-DATUM+6(2) '.'
SY-DATUM+4(2) '.'
SY-DATUM(4) INTO WA_HEADER-INFO. "Current date
APPEND WA_HEADER TO IT_HEADER.
CLEAR WA_HEADER.
WA_HEADER-TYP = 'S'.
WA_HEADER-KEY = TEXT-012.
MOVE LV_VALUE TO WA_HEADER-INFO.
APPEND WA_HEADER TO IT_HEADER.
CLEAR WA_HEADER.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = IT_HEADER.
CLEAR : IT_HEADER[], WA_HEADER.
ENDFORM. " HEADER
Thanks and Regards,
Thirukumaran. R
hi
LOOP AT it_pa0025 INTO wa_pa0025.
row_number = row_number + 1 .
wa_pa0025-number = row_number.
" Add this statement here
MODIFY it_pa0025 INDEX sy-tabix FROM wa_pa0025 TRANSPORTING number.
ENDLOOP.
Thanks & Regards
Similar Messages
-
Serial Number Column in BI Report
Hi,
Can we add 'Serial Number Column' in BI report?
Regards,
Anoop SahuThanks for your response.
I am not sure if I was clear before. I actully want to add a new column which will give sequential number to rows - 1, 2, 3, 4.... If the user changes drill down, it should automaticlly repopulate as 1, 2, 3, 4. I do not have any infoobject called 'Serial Number' in my cube.
Regards,
Anoop Sahu -
Project Serial Number column in Project Server 2013 (PWA)
Hi All,
Whenever any new projects are created on Project Server 2013, they are arranged automatically by Alphabetical order. So i would like to know or need support through which i can create serial number column in Project Center so that projects are aligned. as
per numbers.
Kindly help..Hi,
It is actually 2 questions.
First you want to create a unique ID for projects? Here is an excellent
blog about this subject.
Then you want to sort projects along a number? It could be a custom number field or the unique ID above. You just have to go to the server settings, manage views and go to the "sort by" section and select your number field.
Note that the field used to sort the project center view must be in the view to be used as a sorting criteria.
Hope this helps,
Guillaume Rouyre, MBA, MVP, P-Seller | -
Hi,
Add Serial Number to Delivery Due List which is displayed before creating the Delivery (Transaction VL10H).
RegardsYou could try this (totally untested by me):
http://www.diypcguide.com/how-to-fix-system-board-ooa-or-missing-system-information-or-product-infor...
******Clicking the Thumbs-Up button is a way to say -Thanks!.******
**Click Accept as Solution on a Reply that solves your issue to help others** -
Serial number column in Jtable
Apologies for this distraction.
I read at this forum about a year ago how to add a s/n column in Jtable such that all the nos are automatically updated/adjusted when a row is added/deleted. the count starts from the top down serially and unaffected by sorting.
pls help!thanks a million BaltimoreJohn and especially camickr whose solutions to problems have been most helpful. applying the referenced post, i worked around the problem by resetting the values of the column having the serial number, based on table rowCount every time there is an operation on it(deleting, addition etc)
-
I sent my old unlock iphone to my mom oversea. The package got rip off and all stuff gone include my iPhone. I try to use find me iphone. It's show offline. The I try to get in to Apple ID that register this phone. No any information on the id but fine my iPhone app still show offline. I try to add device on the account the it show that "
According to our records, this serial number is associated to another Apple ID. If you have more than one Apple ID, log in to My Support Profile with that Apple ID to see your other added products. Not sure if you have another Apple ID? Find out
What can I do?
I try both my ID or my mom id. It's show the same thing.
Please help
thank youNo, unless you had Find My iPad enabled on it then there isn't any way to try and locate it.
Have you reported it to the police in case somebody hands it in ? You should also change your iTunes account password, your email account passwords, and any passwords that you'd stored on websites/emails/notes etc., and if it was a cellular model also contact your carrier. -
How to add serial number contolled item with serial numbers in sales order.
Hi OM Functional Experts,
I need a help on sales order booking.
We have serial controlled items in our inventory. At the time of booking a sales order, we need to call the items with the appropriate serial numbers [ for example, if i book an item for a qty of 10, then, the system should get the details ( serial number ) of the 10 item's serial number ].
And the serial numbers are Pre-defined by the organization for their internal tracking from the porcess 1 till end of the assembly line.
The purpose of this step, is to reduce the particular serial numbered item from the inventory, when we reserve/pick release the sales order.
thanks in advance.
Rdx,
J kannan
Edited by: J Kannan on Feb 17, 2009 1:23 AMKannan
OK. Unfortunately reservations cannot be created at the serial number level. So the unsupported way of doing this is updating the mtl_serial_numbers tables. I hope you would know (by some means) which serial numbers you want to allocate to a specific sales orders. If you know, update group_mark_id column in mtl_serial_numbers table with your order_line_Id, This will avoid any one from picking the serial numbers (they will not come up in the LOV or will not be auto allocated).
But you have to make sure to take it off when you actually want to pick this order line and allocate this serial number. So just before you pick release/ confirm this order line you need to update column back to null so that you can allocate that serial number.
Thanks
Nagamohan -
Cannot add serial number to my adobe account
hello, maybe someone can help me with this mess:
i bought the cs6 from a software house, and they gave me the link to download the cs6.
all worked fine so far.
but they gave their email-address as adobe account name.
i changed it while i was logged in to my email-adress and verified the adress.
worked too.
then i checked if my cs6 was as purchase in my adobe-account,
and the cs 6 is not there!!!
so i tried to add the serial number, but it keeps asking to put a valid serial number in,
but i have checked, that is the one i have gotten from the software house, the one i have installed.
so how do i get the cs6 that i have purchased into my account.
i just changed the email-adress and now the adobe account does not know anymore
that i bought the cs6....???
thank you so much for your help.
my laptop is a new macbook pro with lion on it, if you need to know.
dee
ps: i also do not understand how to get the extra fonts that came as illustrator and indesign download to install
on my mac .... they are all just aliasses...and if i drag them into a folder they are still only an alias?
thanks again!CS6 - http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html
You can also download the trial version of the software thru the page linked below and then use your current serial number to activate it.
Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site and have cookies enabled in your browser or else the download will not work properly.
CS6: http://prodesigntools.com/adobe-cs6-direct-download-links.html -
Help: How to add serial number data into Delivery Order document
Dear Gurus,
I am creating an interface program and I have problem in attaching the serial number data to the corresponding material code for a certain delivery order document in R/3 4.6C SP22 system.
The serial number can be attached either during the creation of the Delivery Order itself or in the subsequent step after creating the Delivery Order (i.e.: create the D/O document first, and then update the D/O data).
The BAPI_OUTB_DELIVERY_CONFIRM_DEC FM does not provide any input parameter to let me put the serial number in this R/3 version.
By tracing in SE30 the standard program VL02N --> Menu --> Extras --> Serial Number --> Continue (Enter) --> Save (Ctrl+S), I found out that the serial attachment 'might' be done during sub-routine SERIAL_LISTE_POST_LS in program SAPLIPW1. It will in turn executes FM SERIAL_LISTE_POST_LS. The commit to database table will be done in update task by FM OBJK_POST_UPDATE_N and SERIAL_POST_UPDATE_LS.
<b>My question:</b>
============
1. Is FM SERNR_ADD_TO_LS can be used to attach the serial number to D/O?
If yes, how to do it please because I already tried it I can not see the serial information in VL02N after that. There is no any insert or update to database in this function module. Should I call other FM after this? I want to try to call FM OBJK_POST_UPDATE_N and SERIAL_POST_UPDATE_LS but I do not know how I can retrieve the global object such as XOBJK_ALL that is necessary for the input parameter.
2. If SERNR_ADD_TO_LS can not be used, what other FM can I use? Can I call SERIAL_LISTE_POST_LS instead? Is there any reliable way to generate the import parameter for this FM, such as XSER00, XSER01, XOBJK_ALL and XEQUI?
Thank you in advanced for your kind assistance.
Best Regards,
HiroshiTry something similar to this below...
Afterwards you should do a call transaction to VL02N and immediately SAVE. This is sufficient to ensure the status on the serial numbers is updated correctly.
FUNCTION z_mob_serialnr_update_ls.
""Local interface:
*" IMPORTING
*" VALUE(VBELN_I) LIKE LIKP-VBELN
*" TABLES
*" SERNO_TAB STRUCTURE RISERLS
*" YSER00 STRUCTURE SER00 OPTIONAL
*" YSER01 STRUCTURE RSERXX OPTIONAL
*" YOBJK_ALL STRUCTURE RIPW0 OPTIONAL
*" YEQUI STRUCTURE RIEQUI OPTIONAL
*" YMASE STRUCTURE MASE OPTIONAL
*" EXCEPTIONS
*" NO_EQUIPMENT_FOUND
The modified/confirmed table of serial numbers is supplied in
SERNO_TAB.
These are updated in the SAP tables
YSER00 - General Header Table for Serial Number Management
YSER01 - Document Header for Serial Numbers for Delivery
YOBJK_ALL - Internal Table for Object List Editing/Serial Numbers
YEQUI - Internal Structure for IEQUI
local data
DATA: BEGIN OF del_wa,
vbeln LIKE likp-vbeln,
posnr LIKE lips-posnr,
matnr LIKE lips-matnr,
lfimg LIKE lips-lfimg.
DATA: END OF del_wa.
DATA: del_tab LIKE del_wa OCCURS 0.
DATA: _ct TYPE i.
DATA: lastobknr LIKE objk-obknr.
DATA: _debug.
CLEAR: yser00, yser01, yobjk_all, yequi, ymase.
REFRESH: yser00, yser01, yobjk_all, yequi, ymase.
GET PARAMETER ID 'ZEDI_DEBUG' FIELD _debug.
OBJECT KEYS
read the delivery items with serial numbers to be processed
SELECT * INTO CORRESPONDING FIELDS OF TABLE del_tab
FROM lips
WHERE vbeln = vbeln_i
AND serail NE space.
if nothing is relevant for serial numbers bailout
DESCRIBE TABLE del_tab LINES _ct.
IF _ct IS INITIAL.
EXIT.
ENDIF.
==== read the existing object keys for delivery items
SELECT * INTO CORRESPONDING FIELDS OF TABLE yser01
FROM ser01
WHERE lief_nr = vbeln_i.
IF sy-subrc = 0.
yser01-dbknz = 'X'. "entry exists in db
MODIFY yser01 TRANSPORTING dbknz WHERE dbknz = space.
ENDIF.
== check if there is a header entry for the delivery item
LOOP AT del_tab INTO del_wa.
READ TABLE yser01 WITH KEY lief_nr = del_wa-vbeln
posnr = del_wa-posnr.
IF sy-subrc NE 0.
create one
CALL FUNCTION 'OBJECTLIST_NUMBER'
IMPORTING
obknr = yser01-obknr.
yser00-mandt = sy-mandt.
yser00-obknr = yser01-obknr.
APPEND yser00.
SELECT SINGLE kunnr INTO (yser01-kunde)
FROM likp
WHERE vbeln = vbeln_i.
yser01-mandt = sy-mandt.
yser01-lief_nr = del_wa-vbeln.
yser01-posnr = del_wa-posnr.
yser01-vorgang = 'SDLS'.
yser01-vbtyp = 'J'.
yser01-bwart = '601'.
yser01-dbknz = space. "not in db
yser01-loknz = space. "do not delete
APPEND yser01.
ENDIF.
ENDLOOP.
check if any entries should be deleted
LOOP AT yser01.
READ TABLE serno_tab WITH KEY vbeln = yser01-lief_nr
posnr = yser01-posnr.
IF sy-subrc NE 0.
yser01-loknz = 'X'. "mark for delete
MODIFY yser01.
ENDIF.
ENDLOOP.
collect all the object keys for the delivery item with s/n's
LOOP AT yser01.
READ TABLE serno_tab WITH KEY vbeln = yser01-lief_nr
posnr = yser01-posnr.
IF sy-subrc = 0.
READ TABLE yser00 WITH KEY obknr = yser01-obknr.
IF sy-subrc NE 0.
yser00-mandt = yser01-mandt.
yser00-obknr = yser01-obknr.
APPEND yser00.
ENDIF.
ENDIF.
ENDLOOP.
IF NOT _debug IS INITIAL. BREAK-POINT. ENDIF.
SERIAL NO OBJECTS
==== read the existing serial numbers from the database
via object number into YOBJK_ALL
LOOP AT yser00.
SELECT * APPENDING CORRESPONDING FIELDS OF TABLE yobjk_all
FROM objk
WHERE obknr = yser00-obknr.
ENDLOOP.
yobjk_all-dbknz = 'X'.
MODIFY yobjk_all TRANSPORTING dbknz WHERE dbknz = space.
=== add any new serial numbers
LOOP AT serno_tab.
READ TABLE yser01 WITH KEY lief_nr = serno_tab-vbeln
posnr = serno_tab-posnr.
READ TABLE yobjk_all WITH KEY sernr = serno_tab-sernr
matnr = del_wa-matnr.
IF sy-subrc NE 0.
this is a new serial number
yobjk_all-mandt = sy-mandt.
yobjk_all-obknr = yser01-obknr.
yobjk_all-obzae = 0.
yobjk_all-equnr = yequi-equnr.
yobjk_all-objvw = 'S'.
yobjk_all-sernr = serno_tab-sernr.
yobjk_all-matnr = del_wa-matnr.
yobjk_all-datum = sy-datum.
yobjk_all-taser = 'SER01'.
yobjk_all-equpd = 'X'.
yobjk_all-objnr = yequi-objnr.
yobjk_all-dbknz = space.
yobjk_all-loknz = space.
APPEND yobjk_all.
ENDIF.
ENDLOOP.
=== mark any which are no longer confirmed as deleted
LOOP AT yobjk_all.
READ TABLE yser01 WITH KEY obknr = yobjk_all-obknr.
READ TABLE serno_tab WITH KEY vbeln = yser01-lief_nr
posnr = yser01-posnr
sernr = yobjk_all-sernr.
IF sy-subrc NE 0.
yobjk_all-loknz = 'X'.
MODIFY yobjk_all TRANSPORTING loknz.
ENDIF.
ENDLOOP.
EQUIPMENT RECORDS
== get the equipment records
LOOP AT yobjk_all.
SELECT SINGLE * INTO CORRESPONDING FIELDS OF yequi
FROM equi
WHERE sernr = yobjk_all-sernr
AND matnr = yobjk_all-matnr.
IF sy-subrc NE 0.
CONTINUE.
ENDIF.
IF yobjk_all-dbknz = space AND
yobjk_all-loknz = space.
yequi-dbknz = 'X'.
yequi-obknr = yobjk_all-obknr.
yequi-j_vorgang = 'PMS3'. "add to delivery
yequi-matnr_old = yequi-matnr.
APPEND yequi.
yobjk_all-equnr = yequi-equnr.
MODIFY yobjk_all TRANSPORTING equnr.
CONTINUE.
ENDIF.
IF yobjk_all-dbknz = 'X' AND
yobjk_all-loknz = 'X'.
yequi-dbknz = 'X'.
yequi-j_vorgang = 'PMSA'. "delete from delivery
yequi-matnr_old = yequi-matnr.
APPEND yequi.
CONTINUE.
ENDIF.
ENDLOOP.
remove any Equipment records that do not need to be processed
DELETE yequi WHERE j_vorgang IS initial.
IF NOT _debug IS INITIAL. BREAK-POINT. ENDIF.
fill the object counter
LOOP AT del_tab INTO del_wa.
READ TABLE yser01 WITH KEY lief_nr = del_wa-vbeln
posnr = del_wa-posnr.
DO del_wa-lfimg TIMES.
READ TABLE yobjk_all WITH KEY obknr = yser01-obknr
obzae = sy-index.
IF sy-subrc NE 0.
READ TABLE yobjk_all WITH KEY obknr = yser01-obknr
obzae = 0.
IF sy-subrc = 0.
yobjk_all-obzae = sy-index.
MODIFY yobjk_all INDEX sy-tabix TRANSPORTING obzae.
ENDIF.
ENDIF.
ENDDO.
ENDLOOP.
IF NOT _debug IS INITIAL. BREAK-POINT. ENDIF.
===========================================
update the delivery
===========================================
CALL FUNCTION 'SERIAL_LISTE_POST_LS'
TABLES
xser00 = yser00
xser01 = yser01
xobjk_all = yobjk_all
xequi = yequi
xmase = ymase.
TAB_CUOBJ =
XSER03 =
CALL FUNCTION 'STATUS_BUFFER_EXPORT_TO_MEMORY'
EXPORTING
i_memory_id = memid_status.
COMMIT WORK AND WAIT.
CALL FUNCTION 'Z_MOB_SERIALNR_REFRESH_LS'
EXPORTING
ctu = 'X'
mode = 'N'
UPDATE = 'L'
GROUP =
USER =
KEEP =
HOLDDATE =
NODATA = '/'
vbeln_i = vbeln_i.
IMPORTING
SUBRC =
TABLES
MESSTAB =
ENDFUNCTION.
FUNCTION z_mob_serialnr_refresh_ls.
""Local interface:
*" IMPORTING
*" VALUE(CTU) LIKE APQI-PUTACTIVE DEFAULT 'X'
*" VALUE(MODE) LIKE APQI-PUTACTIVE DEFAULT 'N'
*" VALUE(UPDATE) LIKE APQI-PUTACTIVE DEFAULT 'L'
*" VALUE(GROUP) LIKE APQI-GROUPID OPTIONAL
*" VALUE(USER) LIKE APQI-USERID OPTIONAL
*" VALUE(KEEP) LIKE APQI-QERASE OPTIONAL
*" VALUE(HOLDDATE) LIKE APQI-STARTDATE OPTIONAL
*" VALUE(NODATA) LIKE APQI-PUTACTIVE DEFAULT '/'
*" VALUE(VBELN_I) LIKE LIKP-VBELN
*" EXPORTING
*" VALUE(SUBRC) LIKE SYST-SUBRC
*" TABLES
*" MESSTAB STRUCTURE BDCMSGCOLL OPTIONAL
DATA: vbeln_001 LIKE bdcdata-fval.
vbeln_001 = vbeln_i.
subrc = 0.
PERFORM bdc_nodata USING nodata.
PERFORM open_group USING group user keep holddate ctu.
PERFORM bdc_dynpro USING 'SAPMV50A' '4004'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LIKP-VBELN'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'LIKP-VBELN'
vbeln_001.
PERFORM bdc_dynpro USING 'SAPMV50A' '1000'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=PSER_T'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LIPS-POSNR(01)'.
PERFORM bdc_dynpro USING 'SAPLIPW1' '0200'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RIPW0-SERNR(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=RWS'.
PERFORM bdc_dynpro USING 'SAPMV50A' '1000'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=SICH_T'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LIPS-MATNR(02)'.
PERFORM bdc_transaction TABLES messtab
USING 'VL02N'
ctu
mode
update.
IF sy-subrc <> 0.
subrc = sy-subrc.
EXIT.
ENDIF.
PERFORM close_group USING ctu.
ENDFUNCTION.
INCLUDE bdcrecxy. -
hi gurus,
I need one more column for serial number how to include that in below codings, can someone help me,
data : number type i.
data : begin of wa_kna1,
kunnr type kunnr,
name1 type name1,
end of wa_kna1,
it_kna1 like table of wa_kna1.
data : begin of wa_table,
number type i,
kunnr type kunnr,
name1 type name1,
end of wa_table,
it_table like table of wa_table.
select kunnr name1 into table it_kna1 from kna1 up to 12 rows.
loop at it_kna1 into wa_kna1.
number = number + 1.
wa_table-kunnr = wa_kna1-kunnr.
wa_table-name1 = wa_kna1-name1.
*modify it_table from wa_table.
append wa_table to it_table.
clear : wa_table.
endloop.
loop at it_table into wa_table.
write :
/ wa_table-kunnr,
wa_table-name1,
wa_table-number.
endloop.
Thanks and Regards,
Thirukumaran. RHi Thirukumaran,
You can write the code in this way:
DATA : BEGIN OF wa_kna1,
kunnr type kunnr,
name1 type name1,
END OF wa_kna1,
it_kna1 TYPE STANDARD TABLE OF wa_kna1.
DATA : BEGIN OF wa_table,
number type i,
kunnr type kunnr,
name1 type name1,
END OF wa_table,
it_table TYPE STANDARD TABLE OF wa_table.
DATA: Ser_Num Type I.
START-OF-SELECTION.
SELECT kunnr name1 into table it_kna1 from kna1 up to 12 rows.
LOOP AT it_kna1 INTO wa_kna1.
Ser_num = Ser_Num + 1.
wa_table-number = ser_num.
wa_table-kunnr = wa_kna1-kunnr.
wa_table-name1 = wa_kna1-name1.
append wa_table to it_table.
endloop.
loop at it_table into wa_table.
write :
/ wa_table-kunnr,
wa_table-name1,
wa_table-number.
endloop. -
Can't add serial number to My Products
hi
I have purchased the update to CS 6 master collection recently and have been unable to add the serial number to the My Products page. I am using the serial number with and without dashes but each time it fails with a eror 'Please enter a valid serial number'.
How can i fix this please?Hi Rob,
Please check : https://www.adobe.com/support/registrationfaq.html#c
If it says incorrect serial number then please send me a private message with the serial number and I will register it for you.
Regards,
Rave -
How do you add Serial Number in Sales AR Invoice
How do we add Serial Numbers in AR Invoice.What is the query. Can anybody guide me with the procedure.
Sanjay,
The sql sample I have given is to demonstrate the use of functions and not the exact SQL to be used for your requirement. BP Contacts is not relevant for you.
Serial numbers by default print on a seperate sheet along with the Invoice if your business process is Sales Order > Invoice (without the delivery step)
If you process involved the delivery step, then the serial number will be printed on a seperate sheet along with the delivery.
The $\[$ is SAP's syntax to dynamically use Form values in your queries.
To understand the usage of this you need to completely understand about formatted seaches.
I was suggesting the usage of functions so that when you add the Invoice, the function would go to the OSRI and SRI1 tables and go in a loop to gather all the Serial number and add them to the User field which can be later printed on the PLD.
Suda -
I need to add new phone serial number to icloud, itunes. Find my phone keeps locating old phone. Any suggestions as to how to sync?
I don't understand. Won't the new iphone sync with itunes and icloud, assuming you have provided the Apple ID and password for the icloud? Serial numbers cannot be used to connect to itunes or icloud. Or am I misunderstanding your post?
-
How to add Serial Number to the report name?
HI,
I'd like to add the option of including the SN to the report name. A good option will be to automatically set the default base name to the SN.
I'm open to suggestions. Either a simple solution where I'll always get the SN as the base name, or
a more complicated solution where I can really make some modifications to the report option dialog page to include that upon user selection.
Thanks
Rafi
TS3.5+CVI8.0
p.s. an example, if exist, will be highly useful (and appreciated of course)That's okay... I can answer here as well...
Under Configure >> Report Option
UNSELECT "Store UUT Report in Batch Report File" first, then select "New UUT Report File for Each UUT"
New UUT Report File for Each UUT—Appends a string containing the current UUT serial number to the base name of the report file. For example, uut_report.html becomes uut_report[SN000001].html. This setting is not available if you select Store UUT Report in Batch Report File. -
Hi, is it possible re-add the serial number in Bios information?
I've a dv6 1323el
This question was solved.
View Solution.You could try this (totally untested by me):
http://www.diypcguide.com/how-to-fix-system-board-ooa-or-missing-system-information-or-product-infor...
******Clicking the Thumbs-Up button is a way to say -Thanks!.******
**Click Accept as Solution on a Reply that solves your issue to help others**
Maybe you are looking for
-
How do I insert a spry bar?
Hi, I'm designing my 1st website and I started it in photoshop cs5.5. I imported my site into Dreamweaver cs5.5 and uploaded it to my server. The problem I'm having is that when I try to insert a drop down menu bar, I get gaps within my page. How do
-
hi i want to buy me a mac and do not know if I have a mac book pro or mac book are extrer with CD drive
-
Replace background and add natural shadow etc.
Hi Guys What is the best way to replace a background on a picture with 2 people on the foreground? The people in front have been cut out with a smooth refined edge, but now I have to make sure that it seems as if they are really standing in front of
-
The customer themes not working after installing support package.
Hi, In a Web dynpro ABAP aplication that i made in a project, we have a customer theme. We transported the development of a new host that had a higher level of support package, and it has stopped working properly the customer theme. We´ve gone from
-
Auto-select field after clicking link inside Appearance panel
Before Illustrator CC 2014, when I clicked on a link inside the appearance window, the corresponding field would auto select. This made for a more efficient workflow. But now for some reason this has disappeared and I miss it! Hey Illustrator team, c