PO creation and GR query
Hi
I am relatively new to the SRM module and I have query for you guys. In extended classic scenario, (or irrespective of deployment scenarios) for PO creation in the backend R/3 system I believe the BAPI is called through RFC and hence PO is created in R/3 synchronously whereas for GR confirmation and invoice posting the ALE/Idoc is used in which case its asynchronous. What exactly is the logic behind this?
Thanks
Rashmi
P.S if anybody has any useful material or write up about these concepts please send it across to [email protected]
Hi Rashmi,
You are correct : BAPI for PO, PR, reservation and idocs for GR and invoice.
Kind regards,
Yann
Similar Messages
-
Creation and transportation of query from development to simulation system
Hello experts,
I need to create a new Query in the development system in the General Ledger folder in Financial reporting. and then I need to transport the same to the simulation system. what are the correct steps I need to follow to do the same if have to avoid any issues during this transportation.
Do I need to do any modifications to the role ZS_XX_BEX_MENU and transport the same?
Could anyone help me in this regard giving me the exact procedure I need to follow.
RegardsNo need to modify, but if it is $temp then change it has ur won request.
follow the genral procedure
1)In RSA1 Go to Transport tab and collect ur query.
Drag to right screen
If it is in $Temp change it to your own request. For this You may need Access.
2)Query contains all objects which were used in that query.
if any Info object that are created newly then check for Transport
3) Then, finally click on transport(Truck) icon
4) By default, it will collect all new objects including newly created Info Objects also. You can change the collections of your own selection.
You will get a Request Number here. Please save this Number so that you can check this at SE09
5) In SE09 search for your Request Number.
6)Release The request by subsequent process onwards( Means sub contents like infoprovider first and then Query) -
Dynamic Internal Table creation and population
Hi gurus !
my issue refers to the slide 10 provided in this slideshow : https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b332e090-0201-0010-bdbd-b735e96fe0ae
My example is gonna sound dumb, but anyway: I want to dynamically select from a table into a dynamically created itab.
Letu2019s use only EKPO, and only field MENGE.
For this, I use Classes cl_abap_elemdescr, cl_sql_result_set and the Data Ref for table creation. But while fetching the resultset, program dumps when fields like MENGE, WRBTR are accessed. Obviously their type are not correctly taken into account by my program.
Here it comes:
DATA: element_ref TYPE REF TO cl_abap_elemdescr,
vl_fieldname TYPE string,
tl_components TYPE abap_component_tab,
sl_components LIKE LINE OF tl_components_alv,
linetype_lcl TYPE REF TO cl_abap_structdescr,
ty_table_type TYPE REF TO cl_abap_tabledescr,
g_resultset TYPE REF TO cl_sql_result_set
u2026
CONCATENATE sg_columns-table_name '-' sg_columns-column_name INTO vl_fieldname.
* sg_columns-table_name contains 'EKPO'
* sg_columns-column_name contains 'MENGE'
* getting the element as a component
element_ref ?= cl_abap_elemdescr=>describe_by_name( vl_fieldname ).
sl_components-name = sg_columns-column_name.
sl_components-type ?= element_ref.
APPEND sl_components TO tl_components.
* dynamic creation of internal table
linetype_lcl = cl_abap_structdescr=>create( tl_components ).
ty_table_type = cl_abap_tabledescr=>create(
p_line_type = linetype_lcl ).
u2026
* Then I will create my field symbol table and line. Code has been cut here.
CREATE DATA dy_line LIKE LINE OF <dyn_table>.
u2026
* Then I will execute my query. Here itu2019s: Select MENGE From EKPO Where Rownum = 1.
g_resultset = g_stmt_ref->execute_query( stmt_str ).
* Then structure for the Resultset is set
CALL METHOD g_resultset->set_param_struct
EXPORTING
struct_ref = dy_line.
* Fetching the lines of the resultset => Dumpu2026
WHILE g_resultset->next( ) > 0.
ASSIGN dy_line->* TO <dyn_wa>.
APPEND <dyn_wa> TO <dyn_table>.
ENDWHILE.
Anyone has any clue to how prevent my Dump ??
The component for MENGE seems to be described as a P7 with 2 decimals. And the resultset wanna use a QUAN type... or something like that !Hello
I have expanded your sample coding for selecting three fields out of EKPO:
*& Report ZUS_SDN_SQL_RESULT_SET
*& Thread: Dynamic Internal Table creation and population
*& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1375510"></a>
*& NOTE: Coding for dynamic structure / itab creation taken from:
*& Creating Flat and Complex Internal Tables Dynamically using RTTI
*& https://wiki.sdn.sap.com/wiki/display/Snippets/Creating+Flat+and+
*& Complex+Internal+Tables+Dynamically+using+RTTI
REPORT zus_sdn_sql_result_set.
TYPE-POOLS: abap.
DATA:
go_sql_stmt TYPE REF TO cl_sql_statement,
go_resultset TYPE REF TO cl_sql_result_set,
gd_sql_clause TYPE string.
DATA:
gd_tabfield TYPE string,
go_table TYPE REF TO cl_salv_table,
go_sdescr_new TYPE REF TO cl_abap_structdescr,
go_tdescr TYPE REF TO cl_abap_tabledescr,
gdo_handle TYPE REF TO data,
gdo_record TYPE REF TO data,
gs_comp TYPE abap_componentdescr,
gt_components TYPE abap_component_tab.
FIELD-SYMBOLS:
<gs_record> TYPE ANY,
<gt_itab> TYPE STANDARD TABLE.
START-OF-SELECTION.
continued. -
Sapquery , adhoc query and Infoset query
any body having any material for ADHOC QUERY , SAP QUERY and Infoset query with detail explanation and steps for creation.
plz forward it to me??????????hi,
sap query r used to design reports to see the data according to our selections in this daa is fetched from diff tables its much easier to desing reports using this
infoset query is somthign used with BI ints used to read data form PSA some temp storage loc
if i am wrong someone correct me
reward if useful
ravi -
Diff. bet ABAP and SAP Query
HI
Anybody can explain in detail about ABAP and SAP Query.....
And tell me what is the main diff. bet ABAP and SAP Query...
Regards
S.BaskaranSAP Query
Purpose
The SAP Query application is used to create lists not already contained in the SAP standard system. It has been designed for users with little or no knowledge of the SAP programming language ABAP. SAP Query offers users a broad range of ways to define reporting programs and create different types of reports such as basic lists, statistics, and ranked lists.
Features
SAP Query's range of functions corresponds to the classical reporting functions available in the system. Requirements in this area such as list, statistic, or ranked list creation can be met using queries.
All the data required by users for their lists can be selected from any SAP table created by the customer.
To define a report, you first have to enter individual texts, such as titles, and select the fields and options which determine the report layout. Then you can edit list display in WYSIWYG mode whenever you want using drag and drop and the other toolbox functions available.
ABAP Query, as far as I Believe, is the use of select statements in the ABAP Programming. This needs a knowledge of Open SQL commands like Select,UPdtae, Modify etc. This has to be done only by someone who has a little bit of ABAP experience.
To sum up, SAP queries are readymade programs given by SAP, which the user can use making slight modification like the slection texts, the tables from which the data is to be retrieved and the format in which the data is to be displayed.ABAP queries become imperative when there is no such SAP query existing and also when there is a lot of customizing involved to use a SAP Query directly.
Check out these links.
http://help.sap.com/saphelp_46c/helpdata/en/35/26b413afab52b9e10000009b38f974/content.htm
http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Introduction.asp
Step-by-step guide for creating ABAP query
http://www.sappoint.com/abap/ab4query.pdf
ABAP query is mostly used by functional consultants.
Kindly reward points by clicking the star on the left of reply,if it helps.Kindly close your previous threads if your problem is solved and reward points for helpful answers.
Don't forget to reward if useful... -
Process chain creation and which are the module depending
Hi Expert,
I have confusion on process chain creation and triggering the process chain also same of the module are depending other module what those. What are thing we take consideration Please guide me in this regards .
Regards,
Ravi
Edited by: Ravichendra k on Oct 15, 2008 11:48 AMHi,
Here are a few links about process chains. Hope it helps.
http://help.sap.com/saphelp_nw04/Helpdata/EN/67/13843b74f7be0fe10000000a114084/content.htm
https://www.sdn.sap.com/irj/sdn/advancedsearch?query=howtocreateaprocesschain&cat=sdn_all
http://sapbwneelam.blogspot.com/2007/09/how-to-start-process-chain-through.html
Regards,
Gaurav -
What is an infoset and infoset query?
hello can anyone tell me about
infoset and infoset query.Infoset is based on Joins. Infocube, DSO and infoobject can be used to make infoset.
How to Create Infoset Query (SAP Query)
Steps on how to proceed to create a Query:
ADHOC QUERY
A query can be created to extract information from master records i.e Infotypes. For example, by creating a query , the data relating to an employee contained in various Infotypes can be extracted.
Proceedure :
Decide on the various Infotypes we want to make the query. Decide on the area where we want to query i.e Global area or Standard area. Standard area is client specific and globel area will include all clients.
Menu : HR PM Admn - Information System - Adhoc Query
Select area standard and select the user group already created
Creation of new query :
TC SQ03 - Select Environment Select Standard Area - Enter -- If new user group is to be created, enter name of the user group, click on create and enter necessary information and exit after saving
TC SQ02 - Enter name of the Infoset Create enter name of Infoset - Data source -- > Table join by basis table give name of table e.g pa0000 - Enter - Click on insert table if we want to include more tables give name of table one by one and after finishing, place cursor on the joining lines and right click to delete unwanted relationships - check - and go back - field groups - include all table fields - click on generate button - go out
TC SQ03 - Select user group - eg. Payroll
Infoset - Enter name of newly created Infoset
Assign users and Infosets - Assign infosets - put tick on payroll - save and go back
TC PAAH - Expand the nodes and put tick on relevant fields depending upon necessity
Save the query by giving the same name as infoset for easyness.
If this answer helps, pls assign points.
Thanx in advance. -
File-to-file or File-to-RFC for Automatic PO creation and GR creation
Hi,
We are on XI 3.0 and the following has been put to me:
We will receive a .CSV file from FTP server, into XI and then need to create Purchase Orders followed by the Goods Receipt documents in R/3 based on the incoming data.
Further to this, the requirement is to give a log of the successfule and failed PO + GR document summary to the business.
The programme in R/3 will compare the incoming file nmame with archived files already processed and will reject any files with duplicate names.
I was suggesting to go with the file to RFC in R/3 whereby we can have a Z shell BAPI to include the standard BAPI for PO creation and GR creation. This Z code can then be extended to email the log to the business of which records were successfully created and which failed.
However, I am stumped as to how can I make the file duplication comparison on R/3 as the incoming file will also be stored on R/3 archive somewhere.
Can this be made when the BAPI is called in XI?
I can configure alerts when the BAPI is mapped from incoming file for that interface.
What was suggested also was to pick up the CSV file and thow it as it is in R/3 and then the Z code can go through it and create the PO and GR objects. However, then it does not make much sense to use XI as the middleware platform.
Please advice.
Regards,
ArcahnaHi Archana,
Take a look to this blog:
https://wiki.sdn.sap.com/wiki/display/XI/Different%20ways%20to%20keep%20your%20Interface%20from%20processing%20duplicate%20files
Maybe it could help you for the duplicate files.
Regards,
Juan -
I'm writting a session EJB that's passed a param (String query) which is supposed
to be any valid "query" string passed to the cm:select tag (see "http://edocs.bea.com/wlcs/docs31/p13ndev/jsptags.htm#1057716"
for more info on this tag and the query param).
My problem is this: I don't think I should write ALL the stuff to validate and
parse this string because bea has already done it in: com.beasys.commerce.foundation.expression.*;
but the only source of documentation available on those classes is the Javadoc(which
isn't that complete). Has anyone used these classes before(Search, Expression,
Criteria, Logical)? Does anyone know of some documents on how to use them?
Please help if you can. I'd really appreciate it. Thanks.rajan please just google or search SDN. there are large number of post for this..
to give you a head start: for using a particular index in the select query a %_HINTS ORACLE 'INDEX clause is added -
Using Windows 8 x64 Enterprise, Sysprep pauses to ask me to create a local user, which I don't want.
If I enable SkipSystemOOBE and SkipUserOOBE in OOBE under Microsoft-Windows-Shell-Setup sysprep (in oobe mode) will skip user creation and autologon works. But it only works correctly once. If I run sysprep again, when it tries to autologon
it will say that I have the wrong password for the local account. After I type in the password manually it works. If I use the same password for the local administrator account as for the autologon account, it looks to have the encrypted password
twice with an equal sign after it.
What I need to know:
How to skip local user account creation (we run on a domain but I have it connect through scripts later)
How to fix the autologon issue
Do I need the local administrator account enabled for this to work?
I have my unattend.xml file attached.
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<AutoLogon>
<Password>
<Value>[removed]</Value>
<PlainText>false</PlainText>
</Password>
<Username>[removed]</Username>
<LogonCount>2</LogonCount>
<Enabled>true</Enabled>
</AutoLogon>
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<CommandLine>c:\folder\abatchfile.bat</CommandLine>
<RequiresUserInput>false</RequiresUserInput>
</SynchronousCommand>
</FirstLogonCommands>
<OOBE>
<HideEULAPage>true</HideEULAPage>
<HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
<HideOnlineAccountScreens>true</HideOnlineAccountScreens>
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
<NetworkLocation>Work</NetworkLocation>
<HideLocalAccountScreen>true</HideLocalAccountScreen>
<ProtectYourPC>3</ProtectYourPC>
</OOBE>
<TimeZone>Eastern Standard Time</TimeZone>
<DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
<RegisteredOrganization>Company Name</RegisteredOrganization>
<RegisteredOwner>CompanyName</RegisteredOwner>
</component>
<component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<UserLocale>en-US</UserLocale>
<UILanguage>en-US</UILanguage>
<SystemLocale>en-US</SystemLocale>
<InputLocale>en-US</InputLocale>
</component>
</settings>
<settings pass="specialize">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ComputerName>*</ComputerName>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:[removed]/sources/install.wim#Windows 8 Enterprise" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>The user accounts-creation page in Windows Welcome is suppressed if a user or a group is added to a local security group. Add a user or a group to a local security group by doing one of the following:
Create a local user.
Add a domain user to a local security group with the Microsoft-Windows-Shell-Setup | UserAccounts unattended installation setting.
To suppress the user accounts-creation page in Windows Welcome, without creating a local user, use one of the following workarounds:
Workaround 1
If the computer is already joined to a domain, use the following XML example to add the Domain Users security group to the Local Users security group.
<DomainAccounts>
<DomainAccountList wcm:action="add">
<DomainAccount wcm:action="add">
<Group>Users</Group>
<Name>Domain Users</Name>
</DomainAccount>
<Domain>FabrikamDomain</Domain>
</DomainAccountList>
</DomainAccounts>
Because joining a domain automatically adds the Domain Users security group to the Local Users security group, the DomainAccounts command does not affect the membership of the Local Users group. However, using this XML example to join a domain will also suppress
the user accounts-creation page in Windows Welcome.
Workaround 2
Use the Sysprep/Quit command to set the following registry value to 1:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OOBE\UnattendCreatedUser
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ” -
Insert and update query to calculate the opening and closing balance
create table purchase(productid number(5) ,dateofpurchase date,
qty number(5));
create table inventory(invid number(5),productid number(5),
idate date,openingqty number(5),closingqty number(5));
Records in inventory:
1,1,'01-jan-2009', 10, 20
2,1,'03-jan-2009', 20, 30
3,1,'04-jan-2009', 40, 50
when I enter the purchase invoice for 15 qty on 02-jan-2009
after say '15-jan-09' , a new record should get inserted
with opening balance = (closing balance before 02-jan-2009)
and all the opening and closing balance for that product should
get affected.
If the invoice for 20 qty is entered for the existing date say
'03-jan-2009' in inventory , then the closing balance
for 03-jan-2009 should get updated and all the following records
should get affected.
I need the insert for the first one and update query for the
second one.
Vinodh<strike>You can do this in one statement by using the merge statement</strike>
Hmm, maybe I spoke too soon.
Edited by: Boneist on 25-Sep-2009 13:56
Thinking about it, why do you want to design your system like this?
Why not simply have your purchases table hold the required information and then either work out the inventory on the fly, or have a job that calls a procedure to add a row for the previous day?
If you continue with this design, you're opening yourself up to a world of pain - what happens when the data doesn't match the purchases table? Also when is the inventory cut-off to reset the opening/closing balances? Monthly? Annually? Weekly? If it's set to one of those, what happens when the business request the inventory for a particular week?
Edited by: Boneist on 25-Sep-2009 13:59 -
Immediate TO creation and confirmation during MB1B
Hi
In one of our client scenario , we need to create a immediate TO creation and confirmation with respect to PCN created during stock transfer from one storage location to another storage location with in a same plant .
I have done the neccesay setting in Tcode OMLR , but the system is not been able to create the immidiate TO perhaps system doesn't know from which storage type it sohuld select the material.
Can anybody hleps me how to configure this . Do i need to customise storage location control .if yes then what are steps in details ?
Thanks
RAJK
Edited by: RAJ K on May 3, 2010 10:37 PMPlease refer the following thread: -
TO not created from TR
Thanks
Swagat -
Automatic TO Creation and Confirm for the 321 Mvt type
Hello Experts,
Like to know the customisation invovlved for automatic TO creation and confirmation for the 321 movement type in which QM is activated.
I have already activated in OMKZ as below
1.Automatic TO for 321 mvt ytpe
2.TO item to be confirmed immediately
3.Propose confirmation
Table T333 -AUTTA
T333-SQUIT &
T333-VQUIT is activated.
Please let me know any other settings to be performed
Regards
KrishnaHello Experts,
I am trying to create the Automatic TO and TO confirmation for the mvt type 321.
I made the below settings
I have activated in OMKZ as below
1.Automatic TO for 321 mvt ytpe -"A"
2.TO item to be confirmed immediately - tick mark
3.Propose confirmation - tick mark
Table T333 -AUTTA
T333-SQUIT &
T333-VQUIT is activated.
I have activated in OMKX as below
Table T321-TBFKZ Immediate TO Creation with "A"
T321-TAFKZ TR creation with "X"
After doing the settings i am not able to see the Posting change number in the Material document created for the mvt type 321.
Please let me know how to create the Posting chnage notice for the material document and how to convert the Posting change notice to automatic TO and confirmation.
Thanks & Regards
Krishna
Edited by: Hariharan krishna on May 25, 2011 8:01 AM -
Stop Automatic creation and confirmation of Transafer Order for a doc type
Hello All,
There is a requirement that I need to stop Automatic creation and confirmation of Transafer Order for a particular document type.
The issue is that sometimes the cycle goes upto creation of Invoice automatically but sometimes this does not happen. More over the user wants that the transafer order needs to be confirmed manually.
Can u please provide the .steps involved for thie case.
Thanks
ChandrashekharDear Steve,
Thanks a lot for giving reply with what I need to do, but I am unable to see result.
I have down configuration like below even though system not processing Auto TO creation. Can you explain me if I have down any mistake below.
Click on Assign button,
Press on New entries
WhN = 900
Reference Movement Type = 101
Movement indicator = B
Movement type for Whse Mgmt = 101
TR create Transfer Requirement = X
Immed.TO Creation
Mail confirmation for background processing = 01.
GR date = 2 -
Automatic Creation and Confirmation of Warehouse Task in EWM 5.1
Hello,
We want an automatic creation and confirmation of the warehouse task in EWM 5.1 on the based of a delivery type and warehouse number.
The scenario goes in this way... As soon as the inbound delivery is created/replicated in EWM, the creation and confimartion of warehouse request, warehouse task and warehouse order (all the transactions) should be called automatically. And the goods receipt should be posted.
Can someone throw more light on the customizing/BADI/enhancements etc required??
Thanks and Regards..Hi koen,
I tried with the FM that you suggested...
But somehow with the process type 'stock removal' gives an error...
Is that that this FM will help to create a pick task for a particular outbound delivery--Tcode:/SCWM/TODLV_TO.
how will this FM take the outbound delivery as an input?or it will be on the corresponding sales order number and item number as input?
Being new EWM i require help on this..about how to go about creating the pick task for an outbound delivery which wil be equal to the warehouse request.
Thanks in advance,
Rashmi.
Maybe you are looking for
-
Can i get an external disk drive for my MacBook 5,1
My disk drive on my MacBook 5,1 (model #A1278) is bust. It will not accept a dvd/cd at all, it won't let it in...not an inch! seems like it's stuck in eject? as if there is a disk inside but as far as i know there is not. Nothing i have tried makes
-
IPhoto 5.0.4 won't open
I have been using iPhoto since late 2003 to store digital photos. As the library has increased, start up time has taken increasingly longer. Approximately two weeks ago, it refused to open or start up at all. Using "Preview", I was able to review pho
-
Issue with iPhone configuration utility
I installed the iPhone configuration utility, create a camera restriction profile and loaded to the iPhone. Later on I restored my pc. This process deleted all my program files including the utility. I reinstalled the utility but now I cannot delete
-
How do I erase music from my iPad?
-
Photog upgrading needs your opinion!
Hello Everyone-Who-Knows-More-Than-Me, Since I'm sitting at home and thinking about it, I thought I'd throw out a few questions about this brand new iMac 3.06 and see if the answers come back to me. I haven't bought it yet, but I'm ready to upgrade t