Fetching Invoice details from BSEG
Hi experts,
I fetched details like BUZEI BUZEI KOART SHKZG MWSKZ DMBTR PSWBT PSWSL HWBAS KTOSL HKONT KUNNR MATNR TXJCD from Bseg . program execute well in development server but very slow in production server. Coding is given below , kindly provide solution for this.
input.
1.MANDT
2.BUKRS
3.VKORG
4.FKDAT
First i fetch invoices based on input from vbrk and vbrp table and passed in bseg.
SELECT VBRKMANDT VBRKVBELN VBRKVKORG VBRKFKDAT VBRKBUKRS VBRPGSBER
INTO TABLE ITAB
FROM VBRK
INNER JOIN VBRP ON VBRKVBELN = VBRPVBELN
WHERE
VBRK~MANDT IN S_MANDT AND
VBRK~BUKRS IN S_BUKRS AND
VBRK~VKORG IN S_VKORG AND
VBRK~FKDAT IN S_FKDAT.
RANGES : R_VBELN FOR VBRK-VBELN.
LOOP AT ITAB.
R_VBELN-SIGN = 'I'.
R_VBELN-OPTION = 'EQ'.
R_VBELN-LOW = ITAB-VBELN.
APPEND R_VBELN.
ENDLOOP.
LOOP AT ITAB.
ITAB-FYEAR = ITAB-FKDAT+0(4).
MODIFY ITAB INDEX SY-TABIX.
ENDLOOP.
DATA : BELNR LIKE BSEG-BELNR.
SELECT BELNR GJAHR BUZEI KOART SHKZG MWSKZ DMBTR PSWBT PSWSL HWBAS KTOSL HKONT KUNNR MATNR TXJCD
FROM BSEG INTO TABLE GTAB FOR ALL ENTRIES IN ITAB
WHERE BUKRS IN S_BUKRS AND
BELNR IN R_VBELN AND
GJAHR = ITAB-FYEAR .
Thanks & regards
G.Vendhan
Hi Vendhan,
SELECT VBRK~MANDT VBRK~VBELN VBRK~VKORG VBRK~FKDAT VBRK~BUKRS VBRP~GSBER
INTO TABLE ITAB
FROM VBRK
INNER JOIN VBRP ON VBRK~VBELN = VBRP~VBELN
WHERE
VBRK~MANDT IN S_MANDT AND " Not required so comment it...
VBRK~BUKRS IN S_BUKRS AND
VBRK~VKORG IN S_VKORG AND
VBRK~FKDAT IN S_FKDAT.
RANGES : R_VBELN FOR VBRK-VBELN.
LOOP AT ITAB.
R_VBELN-SIGN = 'I'.
R_VBELN-OPTION = 'EQ'.
R_VBELN-LOW = ITAB-VBELN.
APPEND R_VBELN.
ENDLOOP.
LOOP AT ITAB.
ITAB-FYEAR = ITAB-FKDAT+0(4).
MODIFY ITAB INDEX SY-TABIX.
ENDLOOP.
DATA : BELNR LIKE BSEG-BELNR.
As you are interesed to get the data for the billing document only select data from vbrk only...
and use that internal table in for all entries with BSEG rather then join of vbrk and vbrp while
IF ITAB[] IS NOT INITIAL[]. " Check this condition before using For all Entries alwayse...
SELECT BELNR GJAHR BUZEI KOART SHKZG MWSKZ DMBTR PSWBT PSWSL HWBAS KTOSL HKONT KUNNR MATNR TXJCD
FROM BSEG INTO TABLE GTAB FOR ALL ENTRIES IN ITAB
WHERE BUKRS IN S_BUKRS AND
BELNR IN R_VBELN AND " Wrong... You are supposed to pass vbrk-VBELN to BSEG-VBELN as BELNR and VBELN are different and contains diff data as well..
GJAHR = ITAB-FYEAR
AND KOART = 'D'. " Include it for customers
ENDIF.
Also I would like to suggest you if you can use below tables if possible...
BSAD secondary Index for Customers (Cleared Items)
BSID secondary Index for Customers
So you need to change the logic to get correct data first...
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
ilesh Nandaniya
Similar Messages
-
How to fetch invoice details based on service notification
Hello,
How to fetch the invoice deatils for a service quotation.
Wat are the tables used for this purpose.
Thanks in advance.
Regards,
Umasankar.Hi
Use the table VBAK and VBAP for the Quotation details use VBTYP = B
and pass the VBAP-VBELn and VBAP-POSNR to VBRP-AUBEL and VBRP-AUPOS and take the VBRP-VBELN which is the Invoice Number
take the details from VBRK and VBRP details
<b>Reward points for useful Answers</b>
Regards
Anji -
Problem in fetching invoice data from VBRK table.
Hi guys,
I am developing an ABAP program where I have to fetch the invoice data from VBRK and VBRP based on the PO data or SO data in table LIPS. But I am not been able to link the two tables. Can anyone please suggest what are the PO and SO fields in VBRK or how to get the invoice data from VBRK and VBRP based on the Sales Order or Purchase Order number from LIPS. Thanks in advance.example:-
VBRK & VBRP
select b~vbeln
b~posnr
a~fkdat
a~spart
a~kunag
a~vkorg
a~rfbsk
a~fkart
a~vtweg
a~bzirk
a~kurrf
a~waerk
a~knumv
b~fkimg
b~netwr
b~mwsbp
b~matnr
b~arktx
b~prodh
b~vkgrp
b~ktgrm
b~aubel
b~matnr
into corresponding fields of table itab
from vbrk as a inner join vbrp as b
on avbeln = bvbeln
where a~kunrg in p_cust and
a~fkdat in p_date and
a~spart in p_dev and
a~vkorg in p_vkorg and
a~vtweg in p_vtweg and
a~rfbsk in p_rfbsk and
a~regio in p_regio and
a~fkart in p_type and
b~werks in s_werks and
b~matnr in matnr. -
How to fetch Schedule details from Subscription ID using ReportServer2010
Hi All,
I'm using Azure so ReportServer DB and the application DB are in two different servers. So my requirement is to fetch the Schedule details from the ReportServer DB and store it in my application DB for further processing and i have only the SubscriptionID.
So is there any way i can fetch the schedule details from subscription ID from ReportServer2010 web service.
One alternative is that I'm connecting to the azure server and fetching the information but i want to know is there any built in web method to get this info.
Thanks in advance and let me know if you need any more info. Waiting for your valuable answer.
Regards,
Ravi Neelam.After going thought different forums and got some knowledge on this issue and able to sort this issue. I'm posting this so other can easily use this method and can save lot of time.
Solution: I'm using CreateSchedule method which will create a Schedule in ReportServer DB and will return the ScheduleId which i will insert as a matchData parameter to my CreateSubscription
method. Hope the below code snippet will be use full.
This is my CreateSubscription Method code snippet:
public string CreateSubscription(string reportPath, string toAddress, string subject, string description, int matchDataSelection, Dictionary<string, string> itemParameters)
int counter = -1;
string subscriptionId = string.Empty;
ExtensionSettings extensionSettings = GetExtensionSettings(toAddress, subject);
ScheduleDefinition matchData = GetMatchData(matchDataSelection);
ParameterValue[] parametersvalue = new ParameterValue[itemParameters.Count()];
foreach (var item in itemParameters)
ParameterValue param = new ParameterValue();
counter++;
param.Name = item.Key;
param.Value = item.Value;
parametersvalue[counter] = param;
ScheduleDefinition scheduleDefinition = new ScheduleDefinition();
scheduleDefinition = GetMatchData(matchDataSelection);
string scheduleId = service.CreateSchedule("SampleScheduleDefnition", scheduleDefinition, null);
return subscriptionId = service.CreateSubscription(reportPath, extensionSettings, description, "TimedSubscription", scheduleId, parametersvalue);
private ExtensionSettings GetExtensionSettings(string toAddress, string subject)
ExtensionSettings extensionSettings = new ExtensionSettings();
ParameterValue[] extensionParams = new ParameterValue[5];
extensionParams[0] = new ParameterValue();
extensionParams[0].Name = "TO";
extensionParams[0].Value = toAddress;
extensionParams[1] = new ParameterValue();
extensionParams[1].Name = "IncludeReport";
extensionParams[1].Value = "FALSE";
extensionParams[2] = new ParameterValue();
extensionParams[2].Name = "Subject";
extensionParams[2].Value = subject;
extensionParams[3] = new ParameterValue();
extensionParams[3].Name = "RenderFormat";
extensionParams[3].Value = "PDF";
extensionParams[4] = new ParameterValue();
extensionParams[4].Name = "Priority";
extensionParams[4].Value = "NORMAL";
extensionSettings.ParameterValues = extensionParams;
extensionSettings.Extension = "Report Server Email";
return extensionSettings;
private ScheduleDefinition GetMatchData(int matchDataSelection)
int selection = matchDataSelection;
DateTime currentDate = DateTime.Now;
TimeSpan timeStampforNewTime = new TimeSpan(08, 00, 00);
currentDate = currentDate.Date + timeStampforNewTime;
ScheduleDefinition schedule = new ScheduleDefinition();
schedule.StartDateTime = currentDate;
if (matchDataSelection == 1)
schedule.EndDate = DateTime.Now.AddDays(1);
schedule.EndDateSpecified = true;
else
schedule.EndDateSpecified = false;
ScheduleDefinition matchDataResponse = new ScheduleDefinition();
switch (selection)
case (int)MatchDataSelection.Once:
schedule.Item = GetPatternforDaily();
break;
case (int)MatchDataSelection.Daily:
schedule.Item = GetPatternforDaily();
break;
case (int)MatchDataSelection.Weekly:
schedule.Item = GetPatternforWeekly();
break;
case (int)MatchDataSelection.BiWeekly:
schedule.Item = GetPatternforBiWeekly();
break;
case (int)MatchDataSelection.Monthly:
schedule.Item = GetPatternforMonthly();
break;
//XmlDocument xmlDoc = GetScheduleAsXml(schedule);
//matchDataResponse = xmlDoc.OuterXml;
return matchDataResponse;
private RecurrencePattern GetPatternforMonthly()
MonthlyDOWRecurrence pattern = new MonthlyDOWRecurrence();
pattern.WhichWeekSpecified = true;
pattern.WhichWeek = WeekNumberEnum.FirstWeek;
MonthsOfYearSelector months = new MonthsOfYearSelector();
months.January = true;
months.February = true;
months.March = true;
months.April = true;
months.May = true;
months.June = true;
months.July = true;
months.August = true;
months.September = true;
months.October = true;
months.November = true;
months.December = true;
pattern.MonthsOfYear = months;
DaysOfWeekSelector days = new DaysOfWeekSelector();
days.Monday = true;
pattern.DaysOfWeek = days;
return pattern;
private RecurrencePattern GetPatternforDaily()
DailyRecurrence pattern = new DailyRecurrence();
pattern.DaysInterval = 1;
return pattern;
private RecurrencePattern GetPatternforWeekly()
WeeklyRecurrence pattern = new WeeklyRecurrence();
DaysOfWeekSelector selector = new DaysOfWeekSelector();
selector.Monday = true;
pattern.DaysOfWeek = selector;
return pattern;
private RecurrencePattern GetPatternforBiWeekly()
WeeklyRecurrence pattern = new WeeklyRecurrence();
DaysOfWeekSelector selector = new DaysOfWeekSelector();
selector.Monday = true;
pattern.DaysOfWeek = selector;
pattern.WeeksInterval = 1;
pattern.WeeksIntervalSpecified = true;
return pattern;
Regards, Ravi Neelam. -
How to retrieve invoice details from the sales order .. urgent..
hi,
i am retrieving vbak-vbeln with this i should retreive invoice details
how to relate vbak with abrk table
i have vbak -vbeln,erdat,VBAK- VKORG,VBAK-KUNNR,VBAK-VTWEG,VBAK- SPART.
its urgent..Hi
U can see the sales order number in VBRP table, fields:
VBRP-AUBEL and VBRP-AUPOS.
But if u have the sales order number it's better to use VBFA table.
SELECT * FROM VBFA WHERE VBELV = VBAK-VBELN
AND VBTYP_N = 'M'
SELECT SINGLE * VBRK WHERE VBELN = VBFA-VBELN.
IF SY-SUBRC = 0.
WRITE: 'Bill number:', VBRK-VBELN.
ENDIF.
ENDSELECT.
U have to make sure to use the right document type:
M = Invoice
N = Invoice cancellation
So the bill type depends on the sales order type
Max -
Query in fetching invoice amount from table EKBE
Hi all,
In my custom report the invoice amount is taken from the field ekbe-dmbtr and is displayed wrongly.
For a particular Purchase order the account assignment table EKKN has only one entry and for the same Purchase order the Purchase order history table EKBE has two entries.
For eg :
Table EKKN
Purchase order Item Seq Access number
20900753 000001 01
Table EKBE
Purchase order Item Seq Access number Material Doc Number Amount(DMBTR)
20900753 000001 01 5105606685 500
20900753 000001 99 5105606685 500
There is a loop at EKBE within the loop there is a IF condition which checks if
IF EKBE-PO number EQ EKKN-PO number and
EKBE-Item = EKKO-Item and
EKBE-Seq Access Number = EKKN-Seq Access number.
When the above condition is satisfied then the EKBE-DMBTR is added to the o/p field.
ENdloop.
In this case(several account exists for one mat doc,accounting dept use occasionally such cases) since EKKN does not hv seq access number 99 it does not take the second line into consideration so the amount displayed in the output has the value 500 instead of expected value 1000(sum of both the lines 01 and 99)
Can you please offer suggestion on how to solve this issue.I want to know if i can ommit the Seq access number check in the IF condition.In that case i would get the expected result 1000,but will it affect some other functionality.Or is there any other way to solve this.Hi,
We cannot say that Seq Access number is unimportant as it depends on the requirements of the client.....
Seq Access is a number defining the account assignment i. e which account should be posted in a transaction ( see documentation of the data element of seq Access ).
We can omit checking of sequential number . Use read table EKKN instead of IF condition as we can check for multiple values of table EKKN.
Thanks,
Viquar Iqbal -
In my TDS Certificate Report takes more time in fetching the data from bseg
only i am checking mblnr and company code.
I think you can do this, but not the way you are doing it now. You have to use most of the key when going agains BSEG. I'll look around a bit and get back to you.
Yes - you can get the purchase order and sales order line items for the material. Then go to the history tables to get the material document numbers. Finally use AWTYPE and AWKEY to get the document numbers from BKPF.
Rob
Message was edited by:
Rob Burbank -
Function Module Required for fetching contact details from BUT000
Hi Everybody.
I have created a contact using transaction BP.
these details according to me will get saved in standard table BUT000.
Now i need standard FM used for fetching all these Contact details.
Help me i am new to CRM.Hi Amit,
Please check the following:
Data Retrieval Function Modules:
Name Description
BAPI_BUPA_ADDRESSES_GET Determine All Addresses
BAPI_BUPA_ADDRESS_GETDETAIL Read Address
BAPI_BUPA_ADDRESS_GET_NUMBERS Read Address Numbers
BAPI_BUPA_BANKDETAILS_GET Determine All Bank Details
BAPI_BUPA_BANKDETAIL_GETDETAIL Read Bank Details
BAPI_BUPA_BANKDETAIL_NUMBERS Read Bank Details Numbers
BAPI_BUPA_CENTRAL_GETDETAIL Read Central Data
BAPI_BUPA_EXISTENCE_CHECK Check Existence of Business Partner
BAPI_BUPA_GET_NUMBERS Read Business Partner Numbers
BAPI_BUPA_RELATIONSHIPS_GET Determine All BP Relationships
BAPI_BUPA_ROLES_GET Determine All Roles
BAPI_BUPA_ROLE_EXISTENCE_CHECK Check Existence of Role
BAPI_BUPA_SEARCH Search Business Partner for Telephone, E-Mail, Address
BAPI_BUPA_STATUS_GETDETAIL Business Partner: Read Status
BAPI_BUPR_ACTIVITYP_EXISTCHECK Check Existence of Contact Partner Relationship
BAPI_BUPR_CONTP_ADDRESSES_GET Read Contact Person Relationship Addresses
BAPI_BUPR_CONTP_ADDR_GETDETAIL Read Contact Person Relationship Addresses
BAPI_BUPR_CONTP_GETDETAIL Read Contact Person Relationship
BAPI_BUPR_EMPLO_ADDRESSES_GET Read Contact Person Relationship Addresses
BAPI_BUPR_EMPLO_ADDR_GETDETAIL Read Employee Relationship Address
BAPI_BUPR_EMPLO_GETDETAIL Read Employee Relationship
BAPI_BUPR_RELATIONSHIP_GET Read General Relationship
BAPI_BUPR_RELSHIP_CHECKEXIST Check Existence of General Relationship
BAPI_BUPR_RELSHIP_GET_DETAIL Read General Relationship
BAPI_BUPR_RESP_EMPLO_CHEKEXIST Read Relationship of Employee Responsible
BUPA_PARTNER_CONTACT_SEARCH Searches business partners for telephone, E-Mail, address
CRM_ORDER_READ Get all the Service Contract details.
Hope this helps!
Regards,
Saumya -
Fetching longtexttab details from Transaction BP at Runtime
hi,
my requirment is to fetch teh longtext data from transaction BP.
i have tried using READ_TEXT. but its displaying as entries not found.
pls provide some pointer on it.
my requirement is after the user enters in BP transaction and clicked the
save button i need to capture the longtext.
thanks.Hi,
I think i have given different FM for this context.
If your requirement is to get the long text before it is getting saved to data base i think you can try out the following steps:
1. Put the Breakpoint in FM CRM_BUPA_BDOC_BPS_FILL_DATA when you save BP.
2. There in one line there will be a call to Subroutine find_all_bps.
3. This sub routine is present in the program LCRM_BUPA_MWX_BDOC_OUTBOUNDF01.
4. Form here there will be a call to subroutine chk_longtext_bp.
5. Here you can be able to get the long text which is about to be saved.
6. This subroutine is in program LCRM_BUPA_MWX_BDOC_OUTBOUNDF16.
I hope this will get you the long text from BP transaction before saving to the database.
Hope this helps.
Venkat -
Invoice details..
HI pals,
I have just done a tutorial in SAP XI. The Scenario was to Get Material from SAP R/3 into a thrid party system. So the appropriate BAPI called was BAPI_MATERIAL_GET_DETAIL.
Now I have to try another Scenario,
I am jotting down the Scenario below.
<b>The invoice is generated. Now if I give an invoice number I have to get the Invoice details</b>. That is to get the Invoice details from SAP R/3 into a third party system. Please give the details of which BAPI is to be called and the procedures.
Good details is appreciated and awarded. Please
Regards
AnilHi,
Please clarify , which invoice would you like to..
see
BAPI_ACC_INVOICE_RECEIPT_CHECK Accounting: Check Invoice Receipt (OAG: LOAD PAYABLE)
BAPI_ACC_INVOICE_RECEIPT_POST Accounting: Post Invoice Receipt (OAG: LOAD PAYABLE)
ACC6 Accounting: BAPIs for UPDATE II
BAPI_ACC_INVOICE_REV_CHECK Accounting: Check Reversal of Invoice Receipt (OAG: LOAD PAYABLE)
BAPI_ACC_INVOICE_REV_POST Accounting: Post Invoice Receipt Reversal (OAG: LOAD PAYABLE)
MRM_BAPI Invoice Verification BAPIs
BAPI_INCOMINGINVOICE_CANCEL Invoice Verification: reverse invoice
BAPI_INCOMINGINVOICE_CREATE Invoice Verification: Post Invoice
BAPI_INCOMINGINVOICE_GETDETAIL Invoice Verification: display invoice
BAPI_INCOMINGINVOICE_GETLIST Invoice Verification: list invoices
BAPI_INCOMINGINVOICE_PARK Invoice Verification: Park Invoice
BAPI_INCOMINGINVOICE_RELEASE Invoice Verification: release invoice
BAPI_INCOMINGINVOICE_SAVE Invoice Verification: Flag Invoice for Background
BAPI_BILLINGDOC_CREATE.
BAPI_ACC_INVOICE_RECEIPT_POST
BAPI_BILLINGDOC_CREATEMULTIPLE
BAPI_PO_GETDETIAL
BAPI_PO_GET_LIST
BAPI_PO_GETRELINFO
See below links
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
/people/sravya.talanki2/blog/2006/12/25/aspirant-to-learn-sap-xiyou-won-the-jackpot-if-you-read-this-part-i
BAPI for creating sales invoice
BAPI for Invoice -
Logic to fetch multiple records from BKPF, SRGBTBREL and SOOD
Hi All
Need help in developing a login for a report.
We are trying to display records of a/c documents which have an associated note with them. This involves 4 categories.
1) My Document, I attached the note.
2) My Document, someone else attached the note.
3) No note attached.
4) All.
The logic desired is as below:
1) BKPF-BUKRS + BKPF-BELNR + BKPF-GJAHR = SRGBTBREL-INSTID_A. (SRGBTBREL can have multiple records for this combination if multiple notes attached)
2) a) SOOD-OBJTY = SRGBTBREL-INSTID_B+17(3).
b) SOOD-OBJYR = SRGBTBREL-INSTID_B+20(2).
c) SOOD-OBJNO = SRGBTBREL-INSTID_B+22(12).
Unique combination.
I have fetched the details from the three database tables but finding it challenging to put it across in one output internal table. It doesnu2019t cover the scenario where multiple notes are attached to the document (One can be from the same person who created the document and another ones can be from different person or both from the different people).
Thanks in advance,
HarshCode Snippet Part 2.
* Approved Document.
IF rb_app = 'X'.
CLEAR wa_sood.
* READ TABLE gt_sood INTO wa_sood WITH KEY objtp = lv_objtp
* objyr = lv_objyr
* objno = lv_objno.
LOOP AT gt_sood INTO wa_sood WHERE objtp = lv_objtp
and objyr = lv_objyr
and objno = lv_objno.
* IF sy-subrc = 0.
IF wa_bkpf-usnam <> wa_sood-cronam.
* Company Code.
wa_output-bukrs = wa_bkpf-bukrs.
* A/c Document No.
wa_output-belnr = wa_bkpf-belnr.
* Fiscal Year.
wa_output-gjahr = wa_bkpf-gjahr.
* Document Type.
wa_output-blart = wa_bkpf-blart.
* Document Date.
wa_output-budat = wa_bkpf-budat.
* Day On Which Accounting Document Was Entered.
wa_output-cpudt = wa_bkpf-cpudt.
* User name.
wa_output-usnam = wa_bkpf-usnam.
* Reverse Document Number.
wa_output-stblg = wa_bkpf-stblg.
* Transaction Code.
wa_output-tcode = wa_bkpf-tcode.
* Short description of contents.
wa_output-objdes = wa_sood-objdes.
* Creator Name.
wa_output-cronam = wa_sood-cronam.
* Date created.
wa_output-crdat = wa_sood-crdat.
* Time created.
wa_output-crtim = wa_sood-crtim.
* Status.
WRITE icon_green_light TO wa_output-light.
APPEND wa_output TO gt_output.
* CLEAR: wa_output,
* wa_sood.
* ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
* All Documents.
IF rb_all = 'X'.
* Company Code.
wa_output-bukrs = wa_bkpf-bukrs.
* A/c Document No.
wa_output-belnr = wa_bkpf-belnr.
* Fiscal Year.
wa_output-gjahr = wa_bkpf-gjahr.
* Document Type.
wa_output-blart = wa_bkpf-blart.
* Document Date.
wa_output-budat = wa_bkpf-budat.
* Day On Which Accounting Document Was Entered.
wa_output-cpudt = wa_bkpf-cpudt.
* User name.
wa_output-usnam = wa_bkpf-usnam.
* Reverse Document Number.
wa_output-stblg = wa_bkpf-stblg.
* Transaction Code.
wa_output-tcode = wa_bkpf-tcode.
CLEAR wa_sood.
* READ TABLE gt_sood INTO wa_sood WITH KEY objtp = lv_objtp
* objyr = lv_objyr
* objno = lv_objno.
LOOP AT gt_sood INTO wa_sood WHERE objtp = lv_objtp
and objyr = lv_objyr
and objno = lv_objno.
* ELSE.
IF wa_bkpf-usnam <> wa_sood-cronam.
* Status.
WRITE icon_green_light TO wa_output-light.
* Short description of contents.
wa_output-objdes = wa_sood-objdes.
* Creator Name.
wa_output-cronam = wa_sood-cronam.
* Date created.
wa_output-crdat = wa_sood-crdat.
* Time created.
wa_output-crtim = wa_sood-crtim.
ELSE.
* Status.
WRITE icon_yellow_light TO wa_output-light.
* Short description of contents.
wa_output-objdes = wa_sood-objdes.
* Creator Name.
wa_output-cronam = wa_sood-cronam.
* Date created.
wa_output-crdat = wa_sood-crdat.
* Time created.
wa_output-crtim = wa_sood-crtim.
ENDIF.
* ENDIF.
ENDLOOP.
IF sy-subrc <> 0.
WRITE icon_red_light TO wa_output-light.
ENDIF.
APPEND wa_output TO gt_output.
* CLEAR: wa_output,
* wa_sood.
ENDIF.
ENDLOOP. -
Enterprise Services for Invoice Details
Hi Friends,
Can any one guide me to locate correct SAP Enterprise Services for Customer Invoice Details?
I found the following services on ES Workplace.
http://esworkplace.sap.com/socoview(bD1lbiZjPTAwMSZkPW1pbg==)/render.asp?id=A8E094B330C211DA1503000BCDDC2565&fragID=&packageid=DE0426DD9B0249F19515001A64D3F462&iv=
How can we validate this is the right service or not? Is there any way to identify the tables and fields are involved in this Enterprise Service?
Let me explain my requirement.
External website (running on web sphere portal) wants to access customer invoices/details from ECC through passing required inputs like customer number etc.
For this requirement how do we approach on ES workplace and how to configure this service.
How do I know the source Table and fields information related to that service.
Is there any e-learning or web log for step by step for any ECC related services?
Thank you.Hi,
I'm not sure if it's the right one that you're looking but you can check it as follows...
Using the URL that you've specified below (you'll see Software Component details), you'll also notice a where used link towards the top right hand side. Click on it, you'll start noticing namespace details.
Use TCode SPROXY in the ECC system & go to the same Software Component & namespace & locate the Enterprise Service / Service Interface in question. Double click on it & then you'll see tabs (external view, internal view etc.). The internal view shows the internal Abap import/export parameters used in the proxy. On the properties tab, if you double click on the provider class you can drill down to the implementing code to see how it's implemented.
There are some blogs & guides relating to navigating through the ES Workplace to find what you're looking for but a functional consultant in a specific area is in a better position to dictate whether the Enterprise Service is valid for a specific business function.
Regards, Trevor -
Viewing invoice details net of VAT in iProcurement
When looking at invoiced amounts on Requisition details screen in iProcurement, the invoiced amounts are displayed including VAT, whereas Reqs and POs are raised net.
Does anybody know how to make that display the net value (ie. exclude VAT) so that users can compare like with like across ordered, receipted and invoiced values
Thank youWe doubt if you can have that option/features in iprocurment. In iProcument requisition details screen, you can not get the Tax break-ups under Invoice... Under Item Information you can have Tax deatails if you personalise this page.
You need check invoice details from payable side as in iProc this seems not posible to produce the net value. Raise a SR with Oracle and check with them if this is possible.
/ S.P DASH -
How can we fetch the information from standard ItemDetails iView of SAP MDM
Hi Portal/MDM experts,
Is there any chance to fetch the information from standard ItemDetails iView? if it is possible please tell me the process.
If it's not, how can we customize the ItemDetails iView using java WebDynpro .
my requirement is, I have to fetch some of information from itemdetails iview and it'll be used in other WebDynpro application, means we have fetch some details from itemdetails iview and populate them in another application. Please suggest me the procedure to do this.
Regards,
Mahi.Hi Mahi,
Please follow the below steps:
1. Create the Result Set iView.
2. Select the Custom Events button and Add the Custom Event
3. Select Event Type=EPCF
4. Give Event Name=EpfcTest and Namespace=urn:com.sap.tc.webdynpro.mdm.epfc.test
5. Select the desired fields to be passed to the WebDynpro application and give the parameter name.
6. Save the iView
7. Create WebDynpro application and write the below code.
public void wdDoInit()
//@@begin wdDoInit()
namespace = "urn:com.sap.tc.webdynpro.mdm.epfc.test";
eventname = "EpfcTest";
WDPortalEventing.subscribe (namespace,eventname,wdThis.wdGetCatchValueAction());
//@@end
public void onActionCatchValue(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String dataObject )
//@@begin onActionCatchValue(ServerEvent)
int marked=dataObject.indexOf("=");
String value=dataObject.substring(marked+1);
wdContext.currentContextElement().setCatchedValue(value);
//@@end
variable Data Object will contain all the Mapped fileds separated by ;. You can then use the String functions to separate the parameters.
Regards,
Jitesh Talreja -
Taking time to fetch records from BSEG
Hi all,
When iam fetching wrbtr,augdt,zterm fields from BSEG table by passing VBELN and BUKRS it is taking lot of time to get.My query goes like this
select vbeln wrbtr augdt zterm from bseg into table t_bsegtab for all
entries in t_vtab where bukrs = p_bukrs and
vbeln = t_vtab-vbeln.
Is there any wrong in statement.If not what is the possible solution for that.
regards
kiranHi,
As BSEG is a cluster table and has open/close item details of Vendor, Customer & GL account, as far as possible avoid quering BSEG instead use the relevant tables to get the data, BSEG has the combination of following tables,
BSID & BSAD --> Customer Accounting details
BSIK & BSAK --> Vendor Accounting details
BSAS & BSIS --> G/L Account details
If your requirement is to get the open/close items for Vendor, access BSIK & BSAK tables by passing the key fields in the where condition.
Hope this helps, get back for further clarifications,
Rgds,
Maybe you are looking for
-
How to get my ipad to connect to itune if the password is locked
How to get ipad to connect to itune if the password is locked.
-
Is there a way to view when gift cards were added so you can see what they were spent on?
Is there a way to view when gift cards were added so you can see what they were spent on?
-
How to upgrade Exchange 2007 from Sp1 to SP3 RU13
Hi everyone, I have a mail system Exchange 2007 SP1 CAS and HUB with 3 servers. The mailboxes are on a Windows Server 2008 Failover Cluster. Domain controllers are Windows Server 2003 SP2 I have to update the mail system with Service Pack 3 and RU
-
I have Photoshop Elements 6 on my PC but have now bought a Macbook Pro and want to use this software on the Mac. Does anyone know how to do this without purchasing another copy of the software?
-
Copy Protection without DLT - Link does not work
I'm trying to find out how I can protect DVDS with Encore. Or if anyone knows of reasonably priced software to do this. I see there is a link to something called, Protection without DLT, but the link does not work.... Help! Jessica