BAPI_MATERIAL_SAVEDATA doesn't save sales data of material
Hi,
The problem is that function module BAPI_MATERIAL_SAVEDATA doesn't create or change sales data of material (table MVKE). It doesn't return an error message either. However, it creates successfully some other data (like MARA table data).
I use BAPI_TRANSACTION_COMMIT and I give the same mandatory input data as in transaction MM01. We use ECC 6.0. In FM MATERIAL_MAINTAIN_DARK that is called by this bapi there are some deactived enhancements containing sales data handling, eg. ENHANCEMENT 15 MGV_MATNR_LAMA_SAPLMGMD.
Hi,
try to Use CALL FUNCTION 'BAPI_MATERIAL_SAVEREPLICA'
"Try to PAss X in sales View header in FM 'BAPI_MATERIAL_SAVEDATA'
* New Material Number is TO_MATERIAL in inputfile
wa_sheaddata-material = wa_inputfile-to_matnr.
wa_sheaddata-matl_type = w_mtart.
SELECT SINGLE * FROM mara WHERE matnr = wa_final-matnr.
IF sy-subrc = 0 and mara-vpsta CA 'V'.
wa_sheaddata-sales_view = 'X'.
ENDIF.
OR
bapimathead-sales_view = 'X'.
refresh xbapi_mvke.
move salesdata[] to xbapi_mvke[].
move taxclassifications[] to xbapi_mlan[].
loop at xbapi_mvke.
clear xbapi_mvkex.
assign xbapi_mvke to <xbapi>.
assign xbapi_mvkex to <xbapix>.
perform assign_indicator.
select single * from tvko where vkorg = xbapi_mvke-sales_org.
select single * from t001 where bukrs = tvko-bukrs.
read table xbapi_mlan with key depcountry = t001-land1.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
HEADDATA = xbapimathead
SALESDATA = xbapi_mvke
SALESDATAX = xbapi_mvkex
IMPORTING
RETURN = xbapiret2
TABLES
TAXCLASSIFICATIONS = xbapi_mlan.
ENDLOOP.
Prabhudas
Similar Messages
-
PCI-6052E doesn't save all data, buffer too small?
WinXP,Labview6.1,PCI-6052 board,collect data from all 16 channels every 5 seconds
(Test 1)
I set external scan clock 10KHz, external channel clock 200KHz, buffersize 10K, "number of scan to read" 10K, theorically, in each file I should have 50,000x16 data. But my result is not right: every 5 seconds I got a file, but in side those files, the data is either 3000x16 or 2000 x16 alternatively. For example:
File1 is 3000x16
File2 is 2000x16
File3 is 3000x16
File4 is 2000x16
File5 is 3000x16
File6 is 2000x16
During the simulation, I see some change in the "scan backlog", but the number is not accumulated, for example, the numbers appeared are,36,0,0,..89,0. No error during the simulation. But when I stop the program I got the error: AI read is not enough fast for the data acquisition...
(Test 2)
When I set external scan clock 5KHz, external channel clock 100KHz, buffersize 5K, "number of scan to read" 5K, my result is right: I got a file every 5 second, and in each file therea are 25,000x16.
Why some data missing in the test one? The PCI6052 board clock is 333KHZ, so my setting of external scan clock and channel clock should be ok. The number of scan to read is set to as the scan rate, so I got accurately one second tiem. Is there something related with the board buffer size and setting or computer is not faster enough?
Thanks very much for helpThere are a couple different possibilities for why the data is not all in one folder in Test 1. First of all, I noticed that you expected each file to have 50,000x16 data, but you said that each file had 3000x16 and 2000x16. Is that correct or is it 30,000x16 and 20,000x16? If what you initially said is correct it looks like you might be losing some data. However, if you meant to say 30,000x16 and 20,000x16 it looks like all of the data is there but it is just in separate files.
You are trying to read a lot of data in a little bit of time, so it is very possible that your computer cannot keep up with your settings. Also, the type of file you are trying to write the data too could be the reason you are not seeing all of your data. Excel is very slow and if you are writing to an Excel spreadsheet this could also be the reason.
The numbers that you were seeing in the "scan backlog" look fine to me. When the number increases that means that you have data in the buffer that is ready to be read. When the number drops to zero that means all the data has been read. So, what you are seeing is not a problem.
Do you have to read at such a fast rate? If not I would just keep it like test 2.
Hope this helps.
Jenk -
Sales data not getting populated for Material master by LSMW.
Hi,
When I am trying to create material manual for sales view material is getting created and the table MVKE(Sales Data for Material) is getting populated with the sales data. But when i Am trying with LSMW METHOD
Object : 0020
Method : 0000
Program Name : RMDATIND
Program Type : D(Direct Input)
materials are geeting created but the sales data is not getting populated in the table MVKE(Sales Data for Material) and LSMW program also not showing any error.
Can any one tell me what is teh problem here.
Thanks,
Naren.Hi,
along with VKORG, VTWEG in <b>BMM00</b> are you mapping the below one's also.
BMM00-XEIV1 = 'X'. "sales 1 view
BMM00-XEIV2 = 'X'. "sales 2 view
this will enable the sales(1/2) view.
Check it once..
Regards
vijay -
Date of last sale for a Material
Hello all,
Is there a place where SAP stores date of Last Sale for a Material ? I am looking for an info structure, where SAP stores date of Last sale for each material and keeps on updating that, for each transaction.
I know that I could get it from VBAK, or VAPMA (If I need to get it plant wise), but to read all the orders, and find one with the highest AUDAT is giving very poor performance. Select MAX and for all entries dont work together.. so system is dying doing this select..
Is there a straight forward way of doing it ?
S032-LETZTABG gives date of Last Issue, but we have stock transfers, intercompany...and so many other stuffs.. so an issue may not necessary be a sale. So that also dont help..
appreciate your inputs.
ThanksSrinath,
VAPMA or VRPMA --- either stores all transaction document numbers -- VAPMA stores orders, and VRPMA stores Billing docs.
Hence reading from these tables to get date of last sale is bringing the system down...
What am wondering is whether there is a table at more master data level, say, at Material and plant level, and just store the date of latest sale against Material.
I prefer VAPMA over VRPMA for 2 reasons.
1. I need the result in a plant level.. VRPMA dont have WERKS whereas VAPMA do.
2. I need to grab even the latest sales order created - Even though it is not yet delivered/invoiced... VRPMA will have it only after billing..
Looks like, SAP is not storing date of last sale anywhere. -
Creditreport that displays Sales Orders with Material Availability Date as
Hi
I need input if the following requirement can be met in FSCM credit mgmnt.
Currently In FDK43 there is a total sales figure that represents the Sales that are consuming the Credit Limit assigned to the customer, unfortunately there is no drill down on this number to see which sales orders are responsible for the consumption of credit
Do we have any sales report that displays Sales Orders with Material Availability Date as an output in conjunction with Credit limit .Not in standard provided. Custom program is required.
Regards
Hein -
E-recruiting BSP Tab Note Save & Back button doesn't save data
Hi all,
We have implemented, EHP3, and we had a problem with the cancel button in the screen of the tab note of TRM category, the problem with Cancel button was that it save data when it shouldn't do, so we implemented the note < 1439737 " Note text is getting saved when you press 'Cancel' button " > and <1379694 " Changes in the letter section are lost after tab switch " >, so the problem with Cancel button was solved, but now the Save & Back button doesn't save anything the data is getting lost, we sent am OSS Note to SAP, but still no answer, so I wanna know if somebody has a similar problem, and if it is, how did u solve?? Please let me know please.
Many Thanks.Hi all,
We have implemented, EHP3, and we had a problem with the cancel button in the screen of the tab note of TRM category, the problem with Cancel button was that it save data when it shouldn't do, so we implemented the note < 1439737 " Note text is getting saved when you press 'Cancel' button " > and <1379694 " Changes in the letter section are lost after tab switch " >, so the problem with Cancel button was solved, but now the Save & Back button doesn't save anything the data is getting lost, we sent am OSS Note to SAP, but still no answer, so I wanna know if somebody has a similar problem, and if it is, how did u solve?? Please let me know please.
Many Thanks. -
When I Create a standard order based on material T-FS101.The material master
T-FS101, a bill of material and a work plan have already been created.
Message comes
"Purchasing data of material T-TS101 is not maintained".
Please tell me how to maintain its purchasing data so that my sale order can be created.
basically this sale order trigger make to order production.Hi,
As suggest by Mr. Lakshmipathi,
Check with MM02 and select the purchasing view and see for any warning message if it exists then you have not created the Purchasing view properly.
Now, excute MM01, enter the same materal - T-TS101 , select the purchasing view and (Optional enter the Purchasing value Key ) then save.
Hope this may help you.
Best regards,
Amit. -
Hi experts,
Could you please provide me simple code for BDC from a text file containing sales data? How do I have to start to extract? I would be very appreciate if someone show me the way from recording to the end.And also suggestion. I am quite new to SAP.
Thanks in advance.
Will reward if useful.hi nathan,
This might helps you.
TABLES : ZSALES_ORDER.
DATA:OK_CODE LIKE SY-UCOMM.
DATA : BATCH(6),CALL(6) .
DATA :I TYPE I,A TYPE I.
DATA: IT_TAB LIKE TABLE OF ZSALES_ORDER WITH HEADER LINE,
WA_TAB LIKE LINE OF IT_TAB.
DATA: IT_BDCTAB LIKE TABLE OF BDCDATA WITH HEADER LINE .
DATA: IT_MESS LIKE TABLE OF BDCMSGCOLL WITH HEADER LINE,
WA_MESS LIKE LINE OF IT_MESS.
DATA: R(10) TYPE C.
&--SELECTION-SCREEN--
SELECTION-SCREEN : BEGIN OF SCREEN 9004.
SELECT-OPTIONS MAT_NO FOR ZSALES_ORDER-MATERIAL_NO.SKIP.
SELECT-OPTIONS CUST_NO FOR ZSALES_ORDER-CUSTOMER_NO .SKIP.
PARAMETERS: UPLOADED.
SELECTION-SCREEN : END OF SCREEN 9004.
CALL SCREEN 9002.
*& Module USER_COMMAND_9002 INPUT
text
MODULE USER_COMMAND_9002 INPUT.
CASE OK_CODE.
WHEN 'UPLOAD'.
CALL SCREEN 9003.
WHEN 'REPORT'.
LEAVE TO LIST-PROCESSING.
WRITE :'NO OF RECORDS READ'.
DESCRIBE TABLE IT_TAB LINES A.
WRITE A.
SELECT COUNT(*) FROM ZSALES_ORDER INTO I.
SKIP.
ULINE.
WRITE: / 'NO OF RECORDS UPLOADED'. WRITE I.
ULINE.
SELECT * FROM ZSALES_ORDER INTO ZSALES_ORDER.
WRITE: / 'MATERIAL NO ', 'CUSTOMER NO','CUSTOMER MATE NO','SLAES ORGANISATION','PROCESSING ORG',' TRAN AMT'.
WRITE: / ZSALES_ORDER-MATERIAL_NO UNDER 'MATERIAL NO '.write:12 sy-vline, ZSALES_ORDER-CUSTOMER_NO UNDER 'CUSTOMER NO'.write:20 sy-vline,
ZSALES_ORDER-CUST_MAT_NO UNDER 'CUSTOMER MATE NO'.write:30 sy-vline, ZSALES_ORDER-SALE_ORG UNDER 'SLAES ORGANISATION'.write:40 sy-vline,
ZSALES_ORDER-PROCESS_DATE UNDER 'PROCESSING ORG'.write:50 sy-vline, ZSALES_ORDER-TRAN_AMT UNDER 'TRAN AMT'.write:60 sy-vline.
ENDSELECT.
SKIP.
ULINE.
WRITE: ' NO OF ERRORS RECORDS'.
DESCRIBE TABLE IT_TAB LINES A.
WRITE: A.
SET PF-STATUS SPACE.
WHEN 'EXIT'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_9002 INPUT
*& Module USER_COMMAND_9003 INPUT
text
MODULE USER_COMMAND_9003 INPUT.
CLEAR OK_CODE.
IF CALL = 'X'.
CALL SELECTION-SCREEN 9004.
REFRESH IT_TAB.
SELECT * FROM ZSALES_ORDER.
CHECK MAT_NO.
IT_TAB-MATERIAL_NO = ZSALES_ORDER-MATERIAL_NO.
APPEND IT_TAB.
ENDSELECT.
PERFORM GUI_UPLOAD.
PERFORM TRAN USING 'Z243BDC'.
ELSEIF BATCH = 'X'.
CALL SELECTION-SCREEN 9004.
PERFORM GUI_UPLOAD.
PERFORM BATCH_TRANSACTION.
ENDIF.
ENDMODULE. " USER_COMMAND_9003 INPUT
*& Form GUI_UPLOAD
text
--> p1 text
<-- p2 text
FORM GUI_UPLOAD .
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = 'C:\siva\bdcflatfile.TXT'
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = IT_TAB
IF SY-SUBRC <> 0.
ENDIF.
LOOP AT IT_TAB INTO WA_TAB.
PERFORM PNAME USING 'Z243_KA_BDC_01' '9001'.
PERFORM FNAME USING 'ZSALES_ORDER-MATERIAL_NO' WA_TAB-MATERIAL_NO.
PERFORM FNAME USING 'ZSALES_ORDER-CUSTOMER_NO' WA_TAB-CUSTOMER_NO.
PERFORM FNAME USING 'ZSALES_ORDER-CUST_MAT_NO' WA_TAB-CUST_MAT_NO.
PERFORM FNAME USING 'ZSALES_ORDER-SALE_ORG' WA_TAB-SALE_ORG.
PERFORM FNAME USING 'ZSALES_ORDER-PROCESS_DATE' WA_TAB-PROCESS_DATE.
PERFORM FNAME USING 'ZSALES_ORDER-TRAN_AMT' WA_TAB-TRAN_AMT.
PERFORM FNAME USING 'BDC_OKCODE' '=SAVE'.
ENDLOOP.
PERFORM PNAME USING 'Z243_KA_BDC_01' '9001'.
PERFORM FNAME USING 'BDC_OKCODE' '=EXIT'.
DESCRIBE TABLE IT_TAB LINES A.
ENDFORM. " GUI_UPLOAD
*& Form PNAME
text
-->P_0105 text
-->P_0106 text
FORM PNAME USING PRGNAME
SCRNAME.
CLEAR IT_BDCTAB.
IT_BDCTAB-PROGRAM = PRGNAME.
IT_BDCTAB-DYNPRO = SCRNAME.
IT_BDCTAB-DYNBEGIN = 'X'.
APPEND IT_BDCTAB.
ENDFORM. " PNAME
*& Form FNAME
text
-->P_0110 text
-->P_WA_TAB_MATERIAL_NO text
FORM FNAME USING FIELDNAME
FIELDVAL.
CLEAR : IT_BDCTAB.
IT_BDCTAB-FNAM = FIELDNAME.
IT_BDCTAB-FVAL = FIELDVAL.
APPEND IT_BDCTAB.
ENDFORM. " FNAME
*& Form TRAN
text
-->P_0054 text
FORM TRAN USING STRAN.
CALL TRANSACTION STRAN USING IT_BDCTAB
MODE 'A'
UPDATE 'S'
MESSAGES INTO IT_MESS.
ENDFORM. " TRAN
*& Form BATCH_TRANSACTION
text
--> p1 text
<-- p2 text
FORM BATCH_TRANSACTION .
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
CLIENT = SY-MANDT
GROUP = 'SIVA'
USER = sy-uname.
IF SY-SUBRC <> 0.
ENDIF.
CALL FUNCTION 'BDC_INSERT'
EXPORTING
TCODE = 'Z243BDC'
TABLES
DYNPROTAB = IT_BDCTAB
IF SY-SUBRC <> 0.
ENDIF.
CALL FUNCTION 'BDC_CLOSE_GROUP'
IF SY-SUBRC <> 0.
ENDIF.
CALL TRANSACTION 'SM35'.
ENDFORM. " BATCH_TRANSACTION
*& Module STATUS_9003 OUTPUT
text
MODULE STATUS_9003 OUTPUT.
SET PF-STATUS 'SCREEN'.
SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_9003 OUTPUT
<b>Pls Reward useful points</b>
Siva -
Unable to Save the Data Using BexSetData
Hi All,
I have a issue regarding saving plan data,
Design: I got a Workbook with several tabs, each tab has a input ready Query and has a layout as below
A formatted user facing worksheet containing; an area where the user enters their plan data with a BEx save data button, an input ready query and a worksheet containing the BExSetData formulas that reference the values entered on the user facing worksheet.
Issue: When i try to enter the value in the user facing sheet, the data is shown in the BexSet Data Sheet with out any problem,
But when i try to save the data the data is not saved into the cube.
Can any one please give some ideas of possible cause.
One more question is the input ready query doesn't have any references to other sheets, will this be a reason for the data not saved?
Please through some ideas.
Thanks
GCHello,
I think it is problem with the buffer:
Check the notes 1136163, 1138864, 1146957, 1179076.
please check the below;
Delta buffer query in RSRT for BI-IP ("<infoprovider>/!!1<infoprovider>)
Planning query donu2019t show the current data
Thanks.
With regards,
Anand Kumar -
Sales orders collective material requirment report .
Hi,
Is there any STD report that will give me:
Total requirement of Mat XXXXX for the specific period:
Means collective total req on basis of Material of all sales order that had been entered over specific period
Thanks In Advance.hi
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/SDISREP/SDISREP.pdf
Sales summary - VC/2
Display Customer Hierarchy - VDH2
Display Condition record report - V/I6
Pricing Report - V/LD
Create Net Price List - V_NL
List customer material info - VD59
List of sales order - VA05
List of Billing documents - VF05
Inquiries list - VA15
Quotation List - VA25
Incomplete Sales orders - V.02
Backorders - V.15
Outbound Delivery Monitor - VL06o
Incomplete delivery - V_UC
Customer Returns-Analysis - MC+A
Customer Analysis- Sales - MC+E
Customer Analysis- Cr. Memo - MC+I
Deliveries-Due list - VL04
Billing due list - VF04
Incomplete Billing documents - MCV9
Customer Analysis-Basic List - MCTA
Material Analysis(SIS) - MCTC
Sales org analysis - MCTE
Sales org analysis-Invoiced sales - MC+2
Material Analysis-Incoming orders - MC(E
General- List of Outbound deliveries - VL06f
Material Returns-Analysis - MC+M
Material Analysis- Invoiced Sales - MC+Q
Variant configuration Analysis - MC(B
Sales org analysis-Incoming orders - MC(I
Sales org analysis-Returns - MC+Y
Sales office Analysis- Invoiced Sales - MC-E
Sales office Analysis- Returns - MC-A
Shipping point Analysis - MC(U
Shipping point Analysis-Returns - MC-O
Blocked orders - V.14
Order Within time period - SD01
Duplicate Sales orders in period - SDD1
Reward if USeful
Thanx & Regards.
Naren.. -
How to stored data after clicking checkbox save in data base table
REPORT zreport .
TABLES:mseg,mard,mkpf.
TYPE-POOLS:slis.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS:smblnr FOR mseg-mblnr MODIF ID m1,
smatnr FOR mseg-matnr MODIF ID m2,
swerks FOR mard-werks MODIF ID m3,
slgort FOR mard-lgort MODIF ID m4,
slgpbe FOR mard-lgpbe MODIF ID m5,
scharg FOR mseg-charg MODIF ID m6,
sbwart FOR mseg-bwart MODIF ID m7,
skostl FOR mseg-kostl MODIF ID m8,
saufnr FOR mseg-aufnr MODIF ID m9,
srsnum FOR mseg-rsnum MODIF ID m10.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS:pre RADIOBUTTON GROUP radi USER-COMMAND ucomm DEFAULT 'X',
pse RADIOBUTTON GROUP radi,
bps RADIOBUTTON GROUP radi.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
PARAMETER:layout TYPE i.
SELECTION-SCREEN END OF BLOCK b3.
DATA:BEGIN OF itab OCCURS 0,
mblnr LIKE mseg-mblnr,
matnr LIKE mseg-matnr,
werks LIKE mard-werks,
lgort LIKE mard-lgort,
lgpbe LIKE mard-lgpbe,
charg LIKE mseg-charg,
bwart LIKE mseg-bwart,
budat LIKE mkpf-budat,
menge LIKE mseg-menge,
meins LIKE mseg-meins,
kostl LIKE mseg-kostl,
aufnr LIKE mseg-aufnr,
rsnum LIKE mseg-rsnum,
checkbox TYPE c,
END OF itab.
DATA: gt_fieldcat TYPE slis_t_fieldcat_alv,
gw_fieldcat TYPE slis_fieldcat_alv,
gt_layout TYPE slis_layout_alv.
START-OF-SELECTION.
SELECT msegmblnr msegmatnr mardwerks mardlgort mardlgpbe msegcharg msegbwart mkpfbudat
msegmenge msegmeins msegkostl msegaufnr mseg~rsnum
INTO TABLE itab FROM
mseg JOIN mard ON mardmatnr EQ msegmatnr
JOIN mkpf ON msegmblnr EQ mkpfmblnr
WHERE mseg~matnr IN smatnr.
IF sy-subrc EQ 0.
SORT itab BY matnr.
PERFORM display_alv_output.
ENDIF.
*& Form display_alv_output
text
--> p1 text
<-- p2 text
FORM display_alv_output.
REFRESH gt_fieldcat.
gw_fieldcat-fieldname = 'MBLNR'.
gw_fieldcat-tabname = 'itab'.
gw_fieldcat-col_pos = 1.
gw_fieldcat-seltext_m = 'material document'.
gw_fieldcat-key = 'x'.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
gw_fieldcat-fieldname = 'MATNR'.
gw_fieldcat-tabname = 'itab'.
gw_fieldcat-col_pos = 2.
gw_fieldcat-seltext_m = 'material'.
gw_fieldcat-key = ' '.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
gw_fieldcat-fieldname = 'WERKS'.
gw_fieldcat-tabname = 'itab'.
gw_fieldcat-col_pos = 3.
gw_fieldcat-seltext_m = 'plant'.
gw_fieldcat-key = ' '.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
gw_fieldcat-fieldname = 'LGORT'.
gw_fieldcat-tabname = 'itab'.
gw_fieldcat-col_pos = 4.
gw_fieldcat-seltext_m = 'storage location'.
gw_fieldcat-key = ' '.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
gw_fieldcat-fieldname = 'LGPBE'.
gw_fieldcat-tabname = 'itab'.
gw_fieldcat-col_pos = 5.
gw_fieldcat-seltext_m = 'storage bin'.
gw_fieldcat-key = ' '.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
gw_fieldcat-fieldname = 'CHARG'.
gw_fieldcat-tabname = 'itab'.
gw_fieldcat-col_pos = 6.
gw_fieldcat-seltext_m = 'Batch number'.
gw_fieldcat-key = ' '.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
gw_fieldcat-fieldname = 'BWART'.
gw_fieldcat-tabname = 'itab'.
gw_fieldcat-col_pos = 7.
gw_fieldcat-seltext_m = 'Movement Type (Inventory Management)'.
gw_fieldcat-key = ' '.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
gw_fieldcat-fieldname = 'BUDAT'.
gw_fieldcat-tabname = 'itab'.
gw_fieldcat-col_pos = 8.
gw_fieldcat-seltext_m = 'Posting Date in the Document'.
gw_fieldcat-key = ' '.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
gw_fieldcat-fieldname = 'MENGE'.
gw_fieldcat-tabname = 'itab'.
gw_fieldcat-col_pos = 9.
gw_fieldcat-seltext_m = 'QUANTITY'.
gw_fieldcat-key = ' '.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
gw_fieldcat-fieldname = 'MEINS'.
gw_fieldcat-tabname = 'itab'.
gw_fieldcat-col_pos = 10.
gw_fieldcat-seltext_m = 'Basic unit of measure'.
gw_fieldcat-key = ' '.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
gw_fieldcat-fieldname = 'KOSTL'.
gw_fieldcat-tabname = 'itab'.
gw_fieldcat-col_pos = 11.
gw_fieldcat-seltext_m = 'Cost center'.
gw_fieldcat-key = ' '.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
gw_fieldcat-fieldname = 'AUFNR'.
gw_fieldcat-tabname = 'itab'.
gw_fieldcat-col_pos = 12.
gw_fieldcat-seltext_m = 'Order Number'.
gw_fieldcat-key = ' '.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
gw_fieldcat-fieldname = 'RSNUM'.
gw_fieldcat-tabname = 'itab'.
gw_fieldcat-col_pos = 13.
gw_fieldcat-seltext_m = 'Number of Reservation / Depe'.
gw_fieldcat-key = ' '.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
gw_fieldcat-col_pos = 14.
gw_fieldcat-fieldname = 'CHECKBOX'.
gw_fieldcat-seltext_m = 'Compltd'.
gw_fieldcat-checkbox = 'X'.
gw_fieldcat-edit = 'X'.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = 'ZREPORT'
I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
IS_LAYOUT = gt_layout
IT_FIELDCAT = gt_fieldcat
TABLES
t_outtab = itab
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
ENDFORM. " display_alv_output
FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM
P_SELFLD TYPE SLIS_SELFIELD.
set pf-stATUS 'YSTATUS'.
case p_ucomm.
when 'SAVE'.
Data ref1 type ref to cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
E_GRID = ref1.
call method ref1->check_changed_data.
Here you wil have the table with updated data
itab2[] = itab[].
delete itab where checkbox = space. "Mark is the field for the checkbox
modify ztable from table itab.
endcase.
ENDFORM.
use loop dump error is came.
another solutions plz send me
this is mycode.Hi Lakshmi,
You please give me some more information related to your problem instead of pasting the total code here
Warm Regards,
Vijay -
How tostored data after clicking checkbox save in data base table
REPORT zreport .
TABLES:mseg,mard,mkpf.
TYPE-POOLS:slis.
DATA:BEGIN OF itab OCCURS 0,
mblnr LIKE mseg-mblnr,
matnr LIKE mseg-matnr,
werks LIKE mard-werks,
lgort LIKE mard-lgort,
lgpbe LIKE mard-lgpbe,
charg LIKE mseg-charg,
bwart LIKE mseg-bwart,
budat LIKE mkpf-budat,
menge LIKE mseg-menge,
meins LIKE mseg-meins,
kostl LIKE mseg-kostl,
aufnr LIKE mseg-aufnr,
rsnum LIKE mseg-rsnum,
checkbox TYPE c,
END OF itab.
data: itab2 like standard table of ztable with header line.
DATA: gt_fieldcat TYPE slis_t_fieldcat_alv,
gw_fieldcat TYPE slis_fieldcat_alv,
gt_layout TYPE slis_layout_alv.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS:smblnr FOR mseg-mblnr MODIF ID m1,
smatnr FOR mseg-matnr MODIF ID m2,
swerks FOR mard-werks MODIF ID m3,
slgort FOR mard-lgort MODIF ID m4,
slgpbe FOR mard-lgpbe MODIF ID m5,
scharg FOR mseg-charg MODIF ID m6,
sbwart FOR mseg-bwart MODIF ID m7,
skostl FOR mseg-kostl MODIF ID m8,
saufnr FOR mseg-aufnr MODIF ID m9,
srsnum FOR mseg-rsnum MODIF ID m10.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS:pre RADIOBUTTON GROUP radi USER-COMMAND ucomm DEFAULT 'X',
pse RADIOBUTTON GROUP radi,
bps RADIOBUTTON GROUP radi.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
PARAMETER:layout TYPE i.
SELECTION-SCREEN END OF BLOCK b3.
START-OF-SELECTION.
SELECT msegmblnr msegmatnr mardwerks mardlgort mardlgpbe msegcharg msegbwart mkpfbudat
msegmenge msegmeins msegkostl msegaufnr mseg~rsnum
INTO TABLE itab FROM
mseg JOIN mard ON mardmatnr EQ msegmatnr
JOIN mkpf ON msegmblnr EQ mkpfmblnr
WHERE mseg~matnr IN smatnr.
IF sy-subrc EQ 0.
SORT itab BY matnr.
PERFORM display_alv_output.
ENDIF.
*& Form display_alv_output
text
--> p1 text
<-- p2 text
FORM display_alv_output.
REFRESH gt_fieldcat.
gw_fieldcat-fieldname = 'MBLNR'.
gw_fieldcat-tabname = 'itab'.
gw_fieldcat-col_pos = 1.
gw_fieldcat-seltext_m = 'material document'.
gw_fieldcat-key = 'x'.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
gw_fieldcat-fieldname = 'MATNR'.
gw_fieldcat-tabname = 'itab'.
gw_fieldcat-col_pos = 2.
gw_fieldcat-seltext_m = 'material'.
gw_fieldcat-key = ' '.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
gw_fieldcat-fieldname = 'WERKS'.
gw_fieldcat-tabname = 'itab'.
gw_fieldcat-col_pos = 3.
gw_fieldcat-seltext_m = 'plant'.
gw_fieldcat-key = ' '.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
gw_fieldcat-fieldname = 'LGORT'.
gw_fieldcat-tabname = 'itab'.
gw_fieldcat-col_pos = 4.
gw_fieldcat-seltext_m = 'storage location'.
gw_fieldcat-key = ' '.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
gw_fieldcat-fieldname = 'LGPBE'.
gw_fieldcat-tabname = 'itab'.
gw_fieldcat-col_pos = 5.
gw_fieldcat-seltext_m = 'storage bin'.
gw_fieldcat-key = ' '.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
gw_fieldcat-fieldname = 'CHARG'.
gw_fieldcat-tabname = 'itab'.
gw_fieldcat-col_pos = 6.
gw_fieldcat-seltext_m = 'Batch number'.
gw_fieldcat-key = ' '.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
gw_fieldcat-fieldname = 'BWART'.
gw_fieldcat-tabname = 'itab'.
gw_fieldcat-col_pos = 7.
gw_fieldcat-seltext_m = 'Movement Type (Inventory Management)'.
gw_fieldcat-key = ' '.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
gw_fieldcat-fieldname = 'BUDAT'.
gw_fieldcat-tabname = 'itab'.
gw_fieldcat-col_pos = 8.
gw_fieldcat-seltext_m = 'Posting Date in the Document'.
gw_fieldcat-key = ' '.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
gw_fieldcat-fieldname = 'MENGE'.
gw_fieldcat-tabname = 'itab'.
gw_fieldcat-col_pos = 9.
gw_fieldcat-seltext_m = 'QUANTITY'.
gw_fieldcat-key = ' '.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
gw_fieldcat-fieldname = 'MEINS'.
gw_fieldcat-tabname = 'itab'.
gw_fieldcat-col_pos = 10.
gw_fieldcat-seltext_m = 'Basic unit of measure'.
gw_fieldcat-key = ' '.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
gw_fieldcat-fieldname = 'KOSTL'.
gw_fieldcat-tabname = 'itab'.
gw_fieldcat-col_pos = 11.
gw_fieldcat-seltext_m = 'Cost center'.
gw_fieldcat-key = ' '.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
gw_fieldcat-fieldname = 'AUFNR'.
gw_fieldcat-tabname = 'itab'.
gw_fieldcat-col_pos = 12.
gw_fieldcat-seltext_m = 'Order Number'.
gw_fieldcat-key = ' '.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
gw_fieldcat-fieldname = 'RSNUM'.
gw_fieldcat-tabname = 'itab'.
gw_fieldcat-col_pos = 13.
gw_fieldcat-seltext_m = 'Number of Reservation / Depe'.
gw_fieldcat-key = ' '.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
gw_fieldcat-col_pos = 14.
gw_fieldcat-fieldname = 'CHECKBOX'.
gw_fieldcat-seltext_m = 'Compltd'.
gw_fieldcat-checkbox = 'X'.
gw_fieldcat-edit = 'X'.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = 'ZREPORT'
I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
IS_LAYOUT = gt_layout
IT_FIELDCAT = gt_fieldcat
TABLES
t_outtab = itab
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
ENDFORM. " display_alv_output
FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM
P_SELFLD TYPE SLIS_SELFIELD.
*set pf-stATUS 'YSTATUS'.
case p_ucomm.
when 'SAVE'.
Data ref1 type ref to cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
E_GRID = ref1.
call method ref1->check_changed_data.
*itab2[] = itab[].
delete itab where checkbox = space. "Mark is the field for the checkbox
modify ztable from table itab2.
endcase.
ENDFORM.
this is my cde error is not came,
plz check that one,send me replyREPORT YH648_1111111.
TABLES SSCRFIELDS.
parameter : c AS CHECKBOX USER-COMMAND SUNIL
AT SELECTION-SCREEN .
SY-UCOMM = SSCRFIELDS-UCOMM.
START-OF-SELECTION.
CASE SY-UCOMM.
WHEN 'SUNIL'.
WRITE 'SUNIL KUMAR .BETHINEDI'.
WHEN ' '.
WRITE 'BLA BLA BLA '.
ENDCASE.
THIS IS THE WAY U CAN USE THE CHECK BOX.
INSTED OF THIS WRITE 'SUNIL KUMAR .BETHINEDI'.
U USE THE INSERT STATEMENT. -
I recently upgraded from 4S to 5S. There are 2 games that I wish to transfer to the new device. 1st game isn't available in the Store anymore, so can't download. 2nd game doesn't save when you change devices. How do I get those 2 apps to my new phone? Can I do that manually through iTunes?
Thanks!Hello jon713,
Thank you for using Apple Support Communities.
For more information, take a look at:
iTunes: About iOS backups
http://support.apple.com/kb/ht4946
App Store Application data (except the Application itself, its tmp, and Caches folder)
Application settings, preferences, and data, including documents
iTunes Store: Transferring purchases from your iOS device or iPod to a computer
http://support.apple.com/kb/ht1848
To transfer iTunes Store purchases from your device to a computer, follow these steps:
Connect your device to the computer. If it is synced with another iTunes library, the following dialog may appear:
Click the Transfer Purchases button.
Have a nice day,
Mario -
System not giving Forward date when Material will be available
Dear All,
I have a problem of system not giving me the forward date when material will be available in the schedule line. I will give you an example - say material - A01 , stock of same is - 500 qty available. Availability check - 02(Individual reqt), all other MRP controllers also set properly.
Now i create Sales order for the same material for 650qty, system confirming 500qty but not giving me the confirmed date when rest 150qty will be available in the schedule line.
Kindly tell me which config setting needs to be enabled to get this in sales order.
Thanks in advance...Is there a MRP element which could cover the remaining 150? Like a purchase or production order, for example?
If there's none, and you still want to have a confirmation after the replenishment lead time, maintain the RLT in material master, and use/define an ATP check that is taking in consideration RLT.
If there's such an element, use/define/review ATP checking logic, to include such elements in the check. -
MIGO-Sales price for material (NL1S ROH1 ) could not be found
Hi Experts
When i doing MIGO , i am getting following Error Message .i.e.,
*Sales price for material (NL1S ROH1 ) could not be found*Message no. M7158
Diagnosis
The sales price valuation is active in the valuation area.
The system could not determine a sales price on the specified posting date for material NL1S ROH1 in unit of entry in plant .
Sales price conditions may not be defined for the material in plant .
Procedure
u2022 If you have a goods receipt for a purchase order or an order, the sales price is taken from the purchase order or the order concerned.
Check the sales price in the purchase order or the order.
u2022 if you have goods movements without a reference, you can specify the sales value (sales price including sales tax) manually.
If the screen does not have the field Sales price, then you have a Customizing error: the sales price valuation was activated in the valuation area, but the field selection of the movement type was not changed accordingly. In this case, contact your system administrator.
u2022 Check the definition of the sales price.
Note that for distribution centers, the sales price of the consumer distribution chain maintained in the distribution center's master data is used.
Proceed
If you post this movement without the sales value, the movement will be valuated with value zero. This can change the average sales price.
Please Advice us ...
Thanks in advance
Regards
Rajesh .PHello,
Please check the following:
-check with SE16 at table T001K whether you have sales pricing active for your valuation area,does your material belong to a very special material type
-Check SAP Note 84480 ,109881
-No sales price exists, no goods movements can be posted for an article subject to value-based inventory management. You must maintain the sales price in all cases.
Please refer the link below:
http://help.sap.com/erp2005_ehp_04/helpdata/en/12/085e95470311d1894a0000e8323352/frameset.htm
hope the information is helpful
regards
Maybe you are looking for
-
What's the best way to wipe user info on OSX without doing a clean install of the OS
Hello, I am going to give my old imac to my nephew so I want to delete myself as an Administrator and user (ie, remove all traces of my personal info). However I DO NOT want to delete all the installed applications I have installed over the years as
-
Error when trying to schedule a report in infoview
If i try to schedule a report and set the format to PDF and destination to specific email recipients and click the schedule button. i get the following error An error has occurred: Object reference not set to an instance of an object. my .NET version
-
All PDF files became corrupted
All of my PDF files on my Windows Server 2008. When I try to open them I get the following error "Adobe Reader could not open 'filename' because it is either not a supported file type or because the file has been damaged (for example, it was sent as
-
Entity Frame work for Oracle 11g -how to build a database from Model
Hi , I m trying to build a data access layer for using both Sql Server and Oracle(not at the same time). I used Model-first approach for creating the entities and then generate Databse from it. I came to know from different blogs that oracle and Sql
-
Safari's search function and address box have disappeared!
The 2 "boxes" at the top of the safari window used to enter a web address and search google have both disappeared. There is just grey where they were. Resetting safari doesnt help, nor does quitting and restarting. Any thoughts?