Doubt in t-code MB1A
Hi all experts,
I am very new to ABAP.I need to copy item data from reservation document to goods issue transaction item data using t-code MB1A. Apart from that i need the movement type to be default from reservation document. Further i need to process the GI transaction data.
Please help me know how can i do it. Thanks in advance
Biya.
I don't think this can be causes of the behavior in MB1A. What about other server (like development or quality) ?
Can you please check the screen painter for the program SAPLKACB and screen 1001 from SE80.
Can you see the field COBL-KOSTL as input = "Possible" ? (look into the blog post for more details A brief interpretation about field selection and screen layout used in MM)
Similar Messages
-
Hi All,
Currently I am able to upload a file to ZIMS forder by giving path /IMS/DOWNLOAD/........ My doubt is, if the file contains more (in my case 35 fields) columns, then it splits and displays in 2 or 3 lines. From here If I try to download to excel, excel file aslo looks same as ZIMS file.
Is ther any way that we can increase the size of the ZIMS forlder, complete heare in single row and each line items in single row under respective header.
Ex: The file should looks like ALV output or how the file looks after download ALV output data in excel file.
I hope u all undersata my quastions, Please provide your suggestions.
Thanks in advance,
Best regards,I entered the correct quantity and posted in t code MI10
is this fine..
Edited by: sudhir krishna kumar singh on Nov 8, 2011 2:03 PM -
Hi , does the byte code generated by 64 bit compiler runs on 32 bit machine? is byte code dependent on bit length of the machine?
jtahlborn wrote:
Muralidhar wrote:
I know this is not relevant here but why does tomcat , Eclipse releases have separate zip files for 32 bit windows and 64 bit windows. They also contain some exe fiies. I think they are developed on java and why they have releases specific to plat farm?don't use eclipse myself, but i believe it uses a custom gui toolkit (swt), which is a thin wrapper on the native ui toolkit for the relevant platform. as such, this toolkit most likely requires some native code, which must be compiled appropriately for the platform.Right you are. It stems from the awt days and is very similar to it - im rusty but i believe the biggest difference was that swt is single threaded.
The main executable thing in eclipse is the bootstrapper eclipse.exe however. There are also plugins that require natives. Those are the things that are influenced by the cpu architecture, although you can just safely default to the 32 bits version and not think about it. Some plugins even work better then. -
Doubt in this code can any one clarify this
this is a code in program generated by sap query
SELECT VBRKBUKRS VBRKBZIRK VBRKFKDAT VBRKKUNAG VBRK~SPART
VBRKVBELN VBRKVKORG VBRKVTWEG VBRKXBLNR VBRP~FKIMG
VBRPMATKL VBRPMATNR VBRPPOSNR VBRPVBELN VBRP~VKBUR
VBRPVKGRP VBRPVRKME VBFAERDAT VBFAMEINS VBFA~POSNN
VBFAPOSNV VBFARFMNG VBFAVBELN VBFAVBELV VBFA~VBTYP_N
VBFA~VBTYP_V
INTO (VBRK-BUKRS , VBRK-BZIRK , VBRK-FKDAT , VBRK-KUNAG , VBRK-SPART
, VBRK-VBELN , VBRK-VKORG , VBRK-VTWEG , VBRK-XBLNR , VBRP-FKIMG
, VBRP-MATKL , VBRP-MATNR , VBRP-POSNR , VBRP-VBELN , VBRP-VKBUR
, VBRP-VKGRP , VBRP-VRKME , VBFA-ERDAT , VBFA-MEINS , VBFA-POSNN
, VBFA-POSNV , VBFA-RFMNG , VBFA-VBELN , VBFA-VBELV , VBFA-VBTYP_N
, VBFA-VBTYP_V )
FROM ( VBRK
INNER JOIN VBRP
ON VBRPVBELN = VBRKVBELN
INNER JOIN VBFA
ON VBFAPOSNV = VBRPPOSNR
AND VBFAVBELV = VBRPVBELN )
WHERE VBRK~BUKRS IN SP$00009
AND VBRK~BZIRK IN SP$00012
AND VBRK~FKDAT IN SP$00002
AND VBRK~KUNAG IN SP$00003
AND VBRK~SPART IN SP$00013
AND VBRK~VBELN IN SP$00001
AND VBRK~VKORG IN SP$00010
AND VBRK~VTWEG IN SP$00011
AND VBRP~MATKL IN SP$00008
AND VBRP~VKBUR IN SP$00015
AND VBRP~VKGRP IN SP$00014
AND VBFA~VBTYP_N IN SP$00004
AND VBFA~VBTYP_V IN SP$00005.
%DBACC = %DBACC - 1.
IF %DBACC = 0.
STOP.
ENDIF.
CHECK SP$00004.
CHECK SP$00005.
CHECK SP$00009.
CHECK SP$00012.
CHECK SP$00002.
CHECK SP$00003.
CHECK SP$00013.
CHECK SP$00001.
CHECK SP$00010.
CHECK SP$00011.
CHECK SP$00008.
CHECK SP$00015.
CHECK SP$00014.
CHECK SP$00006.
PERFORM TEXTFIELD_REFRESH(RSAQEXCE).
PERFORM TEXTFIELD_CONTEXT(RSAQEXCE) USING 'VBRK' VBRK.
PERFORM TEXTFIELD_CONTEXT(RSAQEXCE) USING 'VBRP' VBRP.
PERFORM TEXTFIELD_CONTEXT(RSAQEXCE) USING 'VBFA' VBFA.
PERFORM TEXTFIELD_CALL(RSAQEXCE) USING VBRP 'VBRP' 'MATKL'
TEXT_VBRP_MATKL.
PERFORM TEXTFIELD_CALL(RSAQEXCE) USING VBFA 'VBFA' 'VBTYP_N'
TEXT_VBFA_VBTYP_N.
PERFORM TEXTFIELD_CALL(RSAQEXCE) USING VBFA 'VBFA' 'VBTYP_V'
TEXT_VBFA_VBTYP_V.
ADD 1 TO %COUNT-VBRK.
%LINR-VBRK = '01'.
EXTRACT %FG01.
%LINR-VBRK = '02'.
EXTRACT %FG02.
%EXT-VBRP02 = 'X'.
EXTRACT %FGWRVBRP02.
%LINR-VBRK = '03'.
EXTRACT %FG03.
%LINR-VBRK = '04'.
EXTRACT %FG04.
%EXT-VBFA04 = 'X'.
EXTRACT %FGWRVBFA04.
%LINR-VBRK = '05'.
EXTRACT %FG05.
ENDSELECT.
in this code what check statement doesHi Avinash kodarapu,
The use of check statement is ...
Terminating a Loop Pass Conditionally
To terminate a single loop pass conditionally, use the
CHECK <condition> statement in the statement block of
the loop.
If the condition is not true, any remaining statements
in the current statement block after the CHECK statement
are ignored, and the next loop pass starts. <condition>
can be any logical expression.
DO 4 TIMES.
CHECK SY-INDEX BETWEEN 2 and 3.
WRITE SY-INDEX.
ENDDO.
The output is:
2 3
The first and fourth loop passes are terminated without
the WRITE statement being processed, because SY-INDEX is
not between 2 and 3.
So what the check statement does is that it checks if
SPXXXXX values are null or not. If SPXXXXX values are
null the current loop terminates and starts with next
value for the select statement.
Hope this helps you.
Regards,
Maheswaran.B -
Hey guys ,
I have many doubts regarding tcode SMQ1.
1.Is it correct that in SMQ1 ,we see all the queues which are stuck ?
2.If yes, How do we release them or correct them ?
3.Whats the use of various options in the transactions , eg :
<b>lock</b> icon ,<b> unlock</b> icon, <b>lock immediately</b> icon, <b>unlock without activation</b> icon.
Please help.
Thanks
SSthanks Animesh ..
Your answer helped , I also wen through this help topic .It really cleared many of my doubts ..
http://help.sap.com/saphelp_nw04/helpdata/en/6f/1bd5b6a85b11d6b28500508b5d5211/content.htm
I am closing this topic .
SS -
What is the meaning of the below statement
lo_desc ?= <ls_descriptor>-descriptor.Hi,
Like class references, you can assign interface references to different reference variables. You can also make assignments between class reference variables and interface reference variables. When you use the MOVE statement or the assignment operator (=) to assign reference variables, the system must be able to recognize in the syntax check whether an assignment is possible.
Suppose we have a class reference <cref> and interface references <iref>, <iref1>, and <iref2>. The following assignments with interface references can be checked statically:
<iref1> = <iref2>
Both interface references must refer to the same interface, or the interface of <iref1> must contain the interface <iref2> as a component.
<iref> = <cref>
The class of the class reference <cref> must implement the interface of the interface reference <iref>.
<cref> = <iref>
The class of <cref> must be the predefined empty class OBJECT.
In all other cases, you would have to work with the statement MOVE ...? TO or the casting operator (?=). The casting operator replaces the assignment operator (=). In the MOVE... ? TO statement, or when you use the casting operator, there is no static type check. Instead, the system checks at runtime whether the object reference in the source variable points to an object to which the object reference in the target variable can also point. If the assignment is possible, the system makes it, otherwise, the catchable runtime error MOVE_CAST_ERROR occurs.
You must always use casting for assigning an interface reference to a class reference if <cref> does not refer to the predefined empty class OBJECT:
<cref> ?= <iref>
For the casting to be successful, the object to which <iref> points must be an object of the same class as the type of the class variable <cref>. -
Hi
When you execute F.05, the trasaction valuates the line items or balance (according to the selection). Now if you donot run the batch input session, will the program still store the last revaluation for that line item. Will it update any tables with the last revaluated amount for that line item or balane or will it only store the last relvauted amount for each item if the postings are carried out.?
thanksHi Benson,
Until the batch input session was processed for revaluation, revaution will not takes place for those line items. It stores the last reveluated amounts for each item i.e. tables will be updated only when the batch input session was processed.
Thanks,
Regards,
Ramnath. -
Userexit for extended idoc for std. idoc WMMBID02 for T.Code MB1A & MB1B
Hi,
Which userexit we have to use to populate values in to extended idoc fields of the standard inbound idoc WMMBID02?
Pls share ur experience.
Thanks & Regards,
BalajiHello using this you can find out used user exit
1.From SE93 get the program name corresponding to the transaction.
2. then se38 - > enter program name -> attribute -> display
3. Get the package from here.
4. Go to SMOD . Do f4 on enhancement -> information system. enter your package here
5. You will get the list of all the available exits for the package.
List could be a long one.Now best thing to do is to sit with your functional analyst. find out approproate exit from the description. put a break-point there. ask functional analyst to run the transaction. if transaction stops at the break point that's the exit you want -
Doubts about transaction code V_V2
I got one issue from clien, they said they want to sort one material reschduling by date.
so they set V_V2 first screen as document category = 0, delivery priority = 0, date = 1, document number = 2, document item = 3. and in second screen display as first sort by customer number, and in each customer number, it is sort by date(or maybe by document number).
where I can see the result after execute V_V2? how can I set it sort by date.Hi,
The sort order section, gives you option to sort by date of creation or earliest schedule line date.
The output from V_V2 will be a screen which will show you sales orders with material, qty, date information. This screen will also show you dates which have got better delivery dates compared to original schedule dates or dates which have been postponed into future due to rescheduling. You then can choose the orders you want the system to process.
suggestion would be to run with one material and one plant for you to get better idea of what the system proposes when you execute this transaction. Also you may use simulation option to check results of run. This does not save the results of rescheduling.
regards,
Vaibhav -
Doubt in RSRT regarding generate query.
Hi All,
I have a doubt in transaction code RSRT (Query monitor). Under the tab environment, there are 2 options.
1) Generate queries.
2) Gen.Queries directly as shown below.
i.e in RSRT> Environment> Generate Query
and RSRT> Environment> Gen. Query directly.
I would like to know what the functions of these two options are and what they do?
And also would like to know how these 2 are different from generate report.
I know generate report means regeneration of query, but what does regeneration of query actually do?1) generate queries = generate the query @ next call.
This means it does not gets generated unless the query is called by a workbook, web template,...
2) Directly: generates the selected queries directly.
Generation of a query: a query is in fact an ABAP program. This program is created by the BI system.
To generate a query is to 'create' the ABAP program for the query.
You can also delete the old ABAP's (old versions):
environment -> delete old ABAPs -
Failed to open the connection: Error Code 17
Here's an odd one.
Environment:
VB.NET Winform
Visual Studio 2008
.NET framework 2.0
Crystal Reports 2008
ODBC connection
I have three reports, living in the same directory. They are essentially identical, except for the grouping. All three run successfully within Crystal reports.
From a report viewer Winform in VS, two of the three run. As I am dealing with a small data set, the reports render quickly. On the third report, There is a long pause when the report viewer form opens, then I finally get an error:
"Failed to open the connection.
Details: [Database Vendor Code: 17]
Failed to open the connection.
CallReportByExtension 58F5C135-7BA3-4215-898A-DADA6C7DAD9C.rpt
Details:[Database Vendor Code: 17]
I was initially getting similar errors on all three reports, before changing the datasource location to my ODBC connection. I have double-checked the location, verified the database, etc.
What am I doing wrong? I can provide the VB code if requested, but since the other two reports work properly, I doubt it's code. I do know that I am passing the report name and path correctly to the report viewer form.
As I am about to kick my monitor through the window and become a street denizen, I would greatly appreciate any help that would be offered.
Thanks,
Mike BecknerThanks for the reply. This code works...two of the three reports work.
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Public Class frmReportViewer
Dim m_datStartDate As Date
Dim m_datEndDate As Date
Dim m_strReportPath As String
Dim m_strReportName As String
Dim m_strStaticPath As String = "c:\Program Files\CallReportViewer\Reports\"
Dim crConnectionInfo As New ConnectionInfo
*****Omitting property declarations--I assign the report name and path via these properties. *****
Private Sub frmReportViewer_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
LoadReport()
End Sub
Public Sub LoadReport()
Dim crReportDocument As New ReportDocument
Dim crTableLogonInfo As New TableLogOnInfo
Dim crTables As Tables
Dim crTable As Table
Try
With crConnectionInfo
.ServerName = "CallWhereData"
.DatabaseName = "CallWhereData"
.UserID = "MyID"
.Password = "MyPassword"
End With
Me.Text = m_strReportName
crReportDocument.Load(m_strStaticPath & m_strReportPath)
crReportDocument.SetParameterValue("1StartDate", m_datStartDate)
crReportDocument.SetParameterValue("2EndDate", m_datEndDate)
crTables = crReportDocument.Database.Tables
For Each crTable In crTables
crTableLogonInfo = crTable.LogOnInfo
crTableLogonInfo.ConnectionInfo = crConnectionInfo
crTable.ApplyLogOnInfo(crTableLogonInfo)
Next
CrystalReportViewer1.Dock = DockStyle.Fill
CrystalReportViewer1.ReportSource = crReportDocument
Catch ex As Exception
MessageBox.Show(Err.Description)
End Try
End Sub
End Class -
MB1A and Cost Center (KOSTL) based on Order (AUFNR)
Hello,
I have a requirement, where i must make a modification in transaction MB1A in the following way:
On the second screen "Enter Goods Issue: New items" i must fill automatically the Cost Center field, based on the Order number (after the Enter).
How can I do this?
I've tried with a substitution in GGB1 but it didn't worked:
select single kostv from coas into cobl-kostl where aufnr = cobl-aufnr.
Thanks in advance !
TohiHI
Can you check the below exits
Transaction Code - MB1A Goods Withdrawal
Enhancement/ Business Add-in Description
Enhancement
MBCF0002 Customer function exit: Segment text in material doc. item
MBCF0005 Material document item for goods receipt/issue slip
MBCF0006 Customer function for WBS element
MBCF0007 Customer function exit: Updating a reservation
MBCF0009 Filling the storage location field
MBCF0010 Customer exit: Create reservation BAPI_RESERVATION_CREATE1
MBCF0011 Read from RESB and RKPF for print list in MB26
MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc.
BADI
MB_MIGO_BADI BAdI in MIGO for External Detail Subscreens
MB_MIGO_ITEM_BADI BAdI in MIGO for Changing Item Data
MB_PHYSINV_INTERNAL Connection: Core Inventory and Retail AddOn
MB_QUAN_CHECK_BADI BAdI: Item Data at Time of Quantity Check
MB_RESERVATION_BADI MB21/MB22: Check and Complete Dialog Data
MB_RESERVATION_SCR Screen BAdI for Retrofit DFPS
MB_RESERVATION_UPCHD BAdI for Creation and Changing of Manual Reservations
MB_RES_BAPI_CHANGE BAdI: Execution of Changes to Reservation Fields
MB_RES_BAPI_CREATE1 BAdI: Adoption of Customer's Own Fields as Reserv. Fields
MB_RES_BAPI_DETAIL1 BAdI: Display of Customer's Own Fields in Reservations
MB_STOR_LOC_BADI_GTS BADI to Check and Change Storage Location (GTS Fct. Only) -
Hello everyone,
In ABAP, how do I check to see if a field is null and if it is then fill it in with some value. I have the following statement however, I am pretty sure this not correct because it seems to overwrite all my dates with current system date. So If this code runs today it will put in system date for all the records coming in but if I run this code tomorrow it will replace the date with tomorrow's date which is useless.
Select * from /BI0/MProfit_Ctr into table lt_profit_Ctr.
Read table lt_profit_Ctr with key PROFIT_CTR = /BI0/MPROFIT_CTR.
if sy-subrc <> 0 or lt_profit_Ctr-CALDAY IS INITIAL.
RESULT = SY-DATUM.
ENDIF
If a record for a profit center is there but the date is not there it is supposed to put in a current system date for that record but if a profit center is there with a date it MUST not do anything and move on and if profit center is not there then add it with a date.
Please let me know your ideas,
Syed.sorry actually the statement goes like this
update /BI0/MProfit_Ctr with wa_profit_Ctr transporting calday.
what this statement will do is that when calday is initial for the particular record u have retrieved it will assign the system date to the work area of the retrieved record but then u need to update ur database table back with this data so we use update statement.
but again i'm not sure why are u using read instead of loop at if only one record is getting retrieved use select single.
and
this is the code u posted above
Select * from /BI0/MProfit_Ctr into table lt_profit_Ctr.
Read table lt_profit_Ctr with key PROFIT_CTR = /BI0/MPROFIT_CTR.
if sy-subrc 0 or lt_profit_Ctr-CALDAY IS INITIAL.
RESULT = SY-DATUM.
ENDIF
i have some doubts in this code, please clarify those
Read table lt_profit_Ctr with key PROFIT_CTR = /BI0/MPROFIT_CTR.
whats the thing i have marked in red, i see that its the same as ur table name what condition u r trying to check in read table.
i think it shud go like this.
Select * from /BI0/MProfit_Ctr into table lt_profit_Ctr
where PROFIT_CTR = <some variable having ur profit_ctr>
now loop at and rest of the code is same as above discussion
if u r sure that only one record is going to get retrived then
use
select single * from /BI0/MProfit_Ctr into wa_profit_Ctr
where PROFIT_CTR = <some variable having ur profit_ctr>
then update /BI0/MProfit_Ctr with wa_profit_Ctr.
if i'm wrong then please explain ur requirement for us to help u better.
regards,
kartik
Edited by: kartik tarla on Dec 20, 2008 9:23 AM -
HI,
I know the tax procedure of TAXINN, but i have small doubt about Tax Code and Conditon Record.
If we maintain the Tax Percentage i n the Tax Code and Condtion Record also. What is the use maintain the Tax Percentage in two menctioned placess.
Thanks,Dear,
If you are using tax procedure TAXINN then maintain percentage in FV11, there is no need to maintain the same at Tax code level.
Br,Vivek -
Hi All
I am getting error while using T.Code MB1A by using movement type 241 like this
Account 120999 for transaction event keyANL is not a control account
Any one help me
Thanks in advance
phaneendraHi all,
I am getting the same error as Account determination for entry XXX ANL 0001 not possible at the time of MIGO 101.
i checked in
OBYD,ANL accounting determination is graded out.
OBYC, theres no ANL key.
Urgent pls, points will be awarded.
Regards
kumar
Maybe you are looking for
-
Hi All, I am using oracle 10g form builder. I am able to connect to database. But When running the form I am facing an error saying TNS protocol adapter error. Can you please resolve it. Thanks Sunil Edited by: user9092293 on Sep 14, 2010 10:39 PM
-
Have Windows 7 installed. Can't install a Craft software program.
My son gave me his old Mac, approximately 6-8 years old. The mac recognizes everything on the disk. It will not install the software. Plenty of space to install. I did try manually installing, setup.exe, but nothing happens. Suggestins?
-
Hello Experts, How can we handle SLA/escalation process in BPM. Say we have a scenario if the user does not respond for a specific duration then we need to send the same task to his immediate manager. Any thoughts would be of great help. Regards, Nir
-
what to do, and what happened, how can I get a replacment, I live in bahrain.
-
Periodically logged out of iTunes and App store
Hello, I am frequently logged out of iTunes (on my PC)P and the App store (on my iPhone 4). Whenever I'm about to make a purchase/download, I have to log in again. I searched in Preferences for iTunes, and couldn't find where to stay logged in. On th