BAPI to get name & telnr & faxnr
hi all ,
there is an idea :
using
1. parameter EKKO-UNSEZ
2. USE BAPI USER (Get Detail - Address)
then i could get first name + last name & telnr & fax nr
so does anyone know such a BAPI , any answer will be appreciated.
Thanks !
Kevin
Use function module BAPI_USER_GET_DETAIL to retrieve any values which are displayed in SU01 transaction.
Regards,
Siva.
Similar Messages
-
FMor Bapi to get the number of transactions in SM35 for the session name
Hello All,
Can you anybody give me a function module or bapi to get the number of transactions in SM35 for the session name.
Can anybody help me out in this issue.
ThanksHello Maroz,
Thanks for the help.But can you provide me a FM or BAPI.
Thanks -
Hi ,
Is there any BAPI to get the user name while importing employee number ?
input parameter : employee number
output parameter : user name
Regards,
Pavani
With a little more effort you would have
found CATSXT_GET_USER_ID_OF_PERNR in
your system
Edited by: Suresh Datti on Sep 1, 2009 2:42 PMFor this BAPI_USER_GET_DETAIL input parameter is user name .i want to pass employee number and get user name .
i am looking for BAPI not normal functional modules.if there are any BAPIs pls send .
Regards,
Pavani -
BAPI to get the Sales order line item details
Hi,
My program gets Sale sorder and item as the input and I need to fetch all the item (Given item) details for this Sales Order from VBAP. Is there any BAPI to get the item details?Hi,
This is a sample code of BAPI.Try to map it to your requirement.This is not related to vendor.This is related to sales order.
Constants
CONSTANTS: c_contract LIKE vbak-vbeln VALUE '0020000720',
c_item LIKE vbap-posnr VALUE '000010'.
Structures
Structure to hold BAPI Header
DATA: st_bapisdhd1 LIKE bapisdhd1.
Internal Tables
Sales Order Create BAPI Return Messages
DATA: tbl_return TYPE STANDARD TABLE OF bapiret2
WITH HEADER LINE.
Sales Order BAPI Line Item
DATA: tbl_bapisditm TYPE STANDARD TABLE OF bapisditm
WITH HEADER LINE.
Sales Order BAPI Line Item
DATA: tbl_bapisditmx TYPE STANDARD TABLE OF bapisditmx
WITH HEADER LINE.
Sales Order BAPI Pricing Conditions
DATA: tbl_bapicond TYPE STANDARD TABLE OF bapicond
WITH HEADER LINE.
Sales Order BAPI Partner Functions
DATA: tbl_bapiparnr TYPE STANDARD TABLE OF bapiparnr
WITH HEADER LINE.
Sales Order BAPI Schedule Lines
DATA: tbl_bapischdl TYPE STANDARD TABLE OF bapischdl
WITH HEADER LINE.
Sales Order BAPI Schedule Lines
DATA: tbl_bapischdlx TYPE STANDARD TABLE OF bapischdlx
WITH HEADER LINE.
Sales Order BAPI Pricing Conditions
DATA: tbl_bapicondx TYPE STANDARD TABLE OF bapicondx
WITH HEADER LINE.
Customer Enhancement for VBAK, VBAP, VBEP
DATA: tbl_bapiparex TYPE STANDARD TABLE OF bapiparex
WITH HEADER LINE.
Table to hold BAPI Detail Conditions
DATA: tbl_bapisdcond TYPE STANDARD TABLE OF bapisdcond
WITH HEADER LINE.
Table to hold Return Messages from Sales Order Change BAPI
DATA: tbl_return_chg TYPE STANDARD TABLE OF bapiret2
WITH HEADER LINE.
Variables
DATA: g_vbeln_created LIKE vbak-vbeln,
g_valid_contract TYPE c,
g_cont_price_date TYPE d.
Start of Selection
START-OF-SELECTION.
PERFORM validate_contract.
PERFORM create_sales_ord.
PERFORM update_sales_ord.
End of Selection
END-OF-SELECTION.
PERFORM write_output_report.
Subroutines
*& Form create_sales_ord
Create the Sales Order
FORM create_sales_ord .
PERFORM populate_bapi_tables.
PERFORM call_create_sales_ord_bapi.
ENDFORM. " create_sales_ord
*& Form populate_bapi_tables
Fill up the BAPI Tables
FORM populate_bapi_tables .
PERFORM populate_bapi_header.
PERFORM build_bapi_partners.
PERFORM build_bapi_items.
PERFORM build_bapi_sched_lines.
ENDFORM. " populate_bapi_tables
*& Form populate_bapi_header
Build BAPI Header Details
FORM populate_bapi_header .
CLEAR st_bapisdhd1.
st_bapisdhd1-doc_type = 'ZOC'. "Order type
st_bapisdhd1-sales_org = '026'. "Sales Org
st_bapisdhd1-distr_chan = '00'. "Dist Channel
st_bapisdhd1-division = '00'. "Division
st_bapisdhd1-purch_no_c = 'Cust Po No'. "Cust PO No
st_bapisdhd1-name = 'Orderer'. "Name of Orderer
st_bapisdhd1-ord_reason = ''. "Order Reason
st_bapisdhd1-sales_off = '3001'. "Sales Office
st_bapisdhd1-sales_grp = '301'. "Market Area
IF g_valid_contract = 'X'.
st_bapisdhd1-price_date = g_cont_price_date.
ENDIF.
ENDFORM. " populate_bapi_header
*& Form build_bapi_partners
Build BAPI Partner Functions
FORM build_bapi_partners .
CLEAR tbl_bapiparnr.
tbl_bapiparnr-partn_role = 'AG'.
tbl_bapiparnr-partn_numb = '0000100750'.
APPEND tbl_bapiparnr.
CLEAR tbl_bapiparnr.
tbl_bapiparnr-partn_role = 'WE'.
tbl_bapiparnr-partn_numb = '0000504472'.
APPEND tbl_bapiparnr.
ENDFORM. " build_bapi_partners
*& Form build_bapi_items
Build The BAPI Line Items
FORM build_bapi_items .
DATA: l_matnr LIKE mara-matnr.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = '10000072'
IMPORTING
output = l_matnr.
CLEAR tbl_bapisditm.
tbl_bapisditm-itm_number = c_item.
IF g_valid_contract = 'X'.
tbl_bapisditm-ref_doc = c_contract.
tbl_bapisditm-ref_doc_it = c_item.
tbl_bapisditm-ref_doc_ca = 'G'. "Contract
ENDIF.
tbl_bapisditm-material = l_matnr.
tbl_bapisditm-plant = '3012'.
tbl_bapisditm-target_qty = '5.000'.
tbl_bapisditm-target_qu = 'M3'.
tbl_bapisditm-item_categ = 'ZZOC'.
tbl_bapisditm-sales_dist = '301'.
tbl_bapisditm-dlv_prio = '02'.
tbl_bapisditm-prc_group5 = '080'.
tbl_bapisditm-cust_mat35 = 'kdmat'.
tbl_bapisditm-route = 'TESYS'.
tbl_bapisditm-usage_ind = 'CIV'.
APPEND tbl_bapisditm.
CLEAR tbl_bapisditmx.
tbl_bapisditmx-itm_number = c_item.
tbl_bapisditmx-ref_doc = 'X'.
tbl_bapisditmx-ref_doc_it = 'X'.
tbl_bapisditmx-ref_doc_ca = 'X'.
tbl_bapisditmx-material = 'X'.
tbl_bapisditmx-updateflag = 'I'.
tbl_bapisditmx-plant = 'X'.
tbl_bapisditmx-target_qty = 'X'.
tbl_bapisditmx-target_qu = 'X'.
tbl_bapisditmx-item_categ = 'X'.
tbl_bapisditmx-sales_dist = 'X'.
tbl_bapisditmx-dlv_prio = 'X'.
tbl_bapisditmx-prc_group5 = 'X'.
tbl_bapisditmx-cust_mat35 = 'X'.
tbl_bapisditmx-usage_ind = 'X'.
tbl_bapisditmx-route = 'X'.
APPEND tbl_bapisditmx.
ENDFORM. " build_bapi_items
*& Form build_bapi_sched_lines
Build the BAPI Schedule Lines
FORM build_bapi_sched_lines .
CLEAR tbl_bapischdl.
tbl_bapischdl-itm_number = c_item.
tbl_bapischdl-req_qty = '1'.
tbl_bapischdl-req_date = sy-datum.
APPEND tbl_bapischdl.
ENDFORM. " build_bapi_sched_lines
*& Form build_bapi_conditions
Pull the BAPI Pricing Conditions from the Contract
FORM build_bapi_conditions .
LOOP AT tbl_bapisdcond.
CLEAR tbl_bapicond.
MOVE-CORRESPONDING tbl_bapisdcond TO tbl_bapicond.
APPEND tbl_bapicond.
CLEAR tbl_bapicondx.
tbl_bapicondx-itm_number = tbl_bapicond-itm_number.
tbl_bapicondx-cond_st_no = tbl_bapicond-cond_st_no.
tbl_bapicondx-cond_count = tbl_bapicond-cond_count.
tbl_bapicondx-cond_type = tbl_bapicond-cond_type.
tbl_bapicondx-updateflag = 'I'.
tbl_bapicondx-cond_value = 'X'.
tbl_bapicondx-currency = 'X'.
tbl_bapicondx-cond_unit = 'X'.
tbl_bapicondx-cond_p_unt = 'X'.
tbl_bapicondx-varcond = tbl_bapicond-varcond.
APPEND tbl_bapicondx.
ENDLOOP.
ENDFORM. " build_bapi_conditions
*& Form call_create_sales_ord_bapi
Call the Sales Order Create BAPI
FORM call_create_sales_ord_bapi .
CLEAR g_vbeln_created.
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
order_header_in = st_bapisdhd1
IMPORTING
salesdocument = g_vbeln_created
TABLES
return = tbl_return
order_items_in = tbl_bapisditm
order_items_inx = tbl_bapisditmx
order_partners = tbl_bapiparnr
order_schedules_in = tbl_bapischdl.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
ENDFORM. " call_create_sales_ord_bapi
*& Form update_sales_ord
Update the newly created Sales Order with the Pricing Conditions
from the Contract
FORM update_sales_ord .
CHECK g_valid_contract EQ 'X'.
PERFORM get_contract_details.
PERFORM build_bapi_conditions.
PERFORM call_change_sales_ord_bapi.
ENDFORM. " update_sales_ord
*& Form get_contract_details
Get Contract Details
FORM get_contract_details .
Need to manually get the relevant Pricing Conditions as the BAPI
BAPISDORDER_GETDETAILEDLIST causes problems when we call the BAPI
BAPI_SALESORDER_CREATEFROMDAT2 and BAPI_SALESORDER_CHANGE (I think
this is due to the fact that these BAPIs belong to the same Function
Group and there must be some common structures that are not cleared
causing us all sorts of grief when we try and call the next BAPI)
DATA: tbl_konv TYPE STANDARD TABLE OF konv WITH HEADER LINE.
DATA: tbl_komv TYPE STANDARD TABLE OF komv WITH HEADER LINE.
DATA: tbl_vbak TYPE STANDARD TABLE OF vbak WITH HEADER LINE.
Pricing Condition Master
DATA: BEGIN OF tbl_t685a OCCURS 0,
kschl LIKE t685a-kschl,
kaend_wrt LIKE t685a-kaend_wrt,
END OF tbl_t685a.
SELECT *
INTO TABLE tbl_vbak
FROM vbak
WHERE vbeln = c_contract.
READ TABLE tbl_vbak INDEX 1.
SELECT *
INTO TABLE tbl_konv
FROM konv
WHERE knumv = tbl_vbak-knumv AND
kposn = c_item.
CHECK sy-subrc EQ 0.
We now need to make sure we only bring across the Condition Types that
are EDITABLE. If we bring across non editable conditions (such as
'ZPR1') the Change Sales Order BAPI will fail
SELECT kschl kaend_wrt
INTO TABLE tbl_t685a
FROM t685a
FOR ALL ENTRIES IN tbl_konv
WHERE kappl EQ 'V' AND "Sales
kschl EQ tbl_konv-kschl AND
kaend_wrt EQ 'X' AND "Value is Editable
kmanu NE 'D'. "Process manually
Prepare for Binary Search
SORT tbl_t685a BY kschl.
LOOP AT tbl_konv.
READ TABLE tbl_t685a WITH KEY kschl = tbl_konv-kschl BINARY SEARCH.
IF sy-subrc EQ 0.
MOVE-CORRESPONDING tbl_konv TO tbl_komv.
APPEND tbl_komv.
ENDIF.
ENDLOOP.
CHECK NOT tbl_komv[] IS INITIAL.
Map KOMV into the more BAPI friendly BAPISDCOND structure
CALL FUNCTION 'MAP_INT_TO_EXT_STRUCTURE'
TABLES
fxvbak = tbl_vbak
fxkomv = tbl_komv
fxbapikomv = tbl_bapisdcond
EXCEPTIONS
entry_missing = 1
OTHERS = 2.
ENDFORM. " get_contract_details
*& Form call_change_sales_ord_bapi
Call the Change Sales Order BAPI
FORM call_change_sales_ord_bapi .
DATA: st_head_chg LIKE bapisdh1x,
st_logic_switch TYPE bapisdls.
CHECK NOT g_vbeln_created IS INITIAL.
CHECK g_valid_contract EQ 'X'.
st_head_chg-updateflag = 'U'.
st_logic_switch-cond_handl = 'X'.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = g_vbeln_created
order_header_inx = st_head_chg
logic_switch = st_logic_switch
TABLES
return = tbl_return_chg
conditions_in = tbl_bapicond
conditions_inx = tbl_bapicondx.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
ENDFORM. " call_change_sales_ord_bapi
*& Form write_output_report
Produce Output Report
FORM write_output_report .
IF NOT g_vbeln_created IS INITIAL.
WRITE:/ 'Success! Sales Order', g_vbeln_created, 'was created!'.
ELSE.
WRITE:/ 'Failure! Sales Order was not created!'.
ENDIF.
SKIP.
WRITE:/ 'Sales Order Create Log'.
LOOP AT tbl_return.
WRITE:/ tbl_return-type, tbl_return-id, tbl_return-number,
tbl_return-message.
ENDLOOP.
SKIP.
WRITE:/ 'Sales Order Change Log'.
LOOP AT tbl_return_chg.
WRITE:/ tbl_return_chg-type, tbl_return_chg-id,
tbl_return_chg-number, tbl_return_chg-message.
ENDLOOP.
ENDFORM. " write_output_report
*& Form validate_contract
Make sure that the Contract is Valid
FORM validate_contract .
DATA: l_gueen LIKE vbak-gueen,
l_prsdt LIKE vbkd-prsdt.
SELECT SINGLE vbakgueen vbkdprsdt
INTO (l_gueen, l_prsdt)
FROM vbak
INNER JOIN vbkd
ON vbakvbeln = vbkdvbeln
WHERE vbak~vbeln = c_contract AND
vbkd~posnr = '000000'.
IF sy-datum LE l_gueen.
Contract is valid! Set Order Price Date
g_valid_contract = 'X'.
g_cont_price_date = l_prsdt.
ENDIF.
ENDFORM. " validate_contract
Regards
Rajesh Kumar -
BAPI to get sales order details
Hi guys
I have copied a print program for outbound delivery (vl03n) and now i wanna use the same to get the details for an inbound delivery (vl33n). Obviously I need to change the logic, so i have taken the delivery num lips-vbeln and got the ref doc lips-vgebl and got the PO ekkn-vbeln anf now I have the sales orfer vbap-vbeln. The Question is i need the sales order detail like the vendor address name ship to party etc, is there a good bapi that gets the sales order details? I have tried the foll but they dont help
BAPISDORDER_GETDETAILEDLIST
BAPI_SALESORDER_GETDETAILBOS
BAPI_ALM_ORDER_GET_DETAIL
Does any one know of a better method to get the sales order detail? Maybe if some one could tell how to do it without a bAPI?
Rgds
Sameercheck BAPI_SALESORDER_CREATEFROMDAT2
MOVE 'TA' TO L_HEADER-DOC_TYPE.
MOVE 'ABC' TO L_HEADER-SALES_ORG.
MOVE '10' TO L_HEADER-DISTR_CHAN.
Sold-to AG partner mandatory fields
MOVE 'AG' TO L_PARTNER-PARTN_ROLE.
MOVE '101175' TO L_PARTNER-PARTN_NUMB.
APPEND L_PARTNER.
Ship-to WE partner mandatory fields
MOVE 'WE' TO L_PARTNER-PARTN_ROLE.
MOVE '101175' TO L_PARTNER-PARTN_NUMB.
APPEND L_PARTNER.
MOVE 'DEXABC' TO L_ITEM-MATERIAL.
APPEND L_ITEM.
partner roles 'RE' and 'RG' (bill-to-party) -
Standard IDoc / BAPI to get Employee Personal Details
Hi All,
Is there any Standard IDoc / BAPI to get Employee Personal Details like EMP-ID Name, Address in HR Modules.
Bye
Satish Reddycheck with this: bapi_persdata_getdetailedlist
-
Please tell me a BAPI to get Closing balance of customer account based on Sales Organization?
Hi Experts,
A requirement has come up where I want to get Customer closing balance based on its sales organization as this particular customer is extented to 2 different sales organizations. I want to get the closing balance of individual sales organization vise.
Please tell me a BAPI to get Closing balance of customer account based on Sales Organization?AFAIK there is no such BAPI, cause there is no database table with balance for customer per sales organisation. (No KNCx table for VKORG)
First ask functionals (*) how to recover sales organisation from a FI document (I suppose for SD invoice it is easy if no merging between organisation) will be a little tricker for pure FI document like payment transactions (hope thet are quickly cleared...) Then start from non cleared records of BSID (also BSAD if you use a past date of reference, in case you have to add the records of BSAD with clearing date greater than reference date) and cross it with SD information to break FI into sales organisation.
Regards,
Raymond
(*) Ask for where do they store VKORG in FI documents -
Is there any FM or BAPI to get list of all sales orders
Hello all,
I have the requirement like below.
Is there any FM if i Pass Drawing document no, type,part,revision level which gives
the output list as.
1) all sales orders, where the above drawing document no is attached to the materials
and these materials are used as one of the lower level components in the Sales order BOM,
I need to show all those sales orders along with SO number,item,Material,Plant and BOM Item no,
2)all sales orders, where the above drawing document no is attached to the materials
and the same material is one of the item in sales order.
3)all sales orders, where the above drawing document no is used as one of the component in Sales order BOm's
Addition of 1,2,3 will be the o/p.
are there any FM or BAPI to get the above list.
Basically the above report is concatenation of report outputs of t-code CSD5 and CS15.
Awaiting reply.
Thanks.Hi venkatesh,
You can use the BAPI
BAPISDORDER_GETDETAILEDLIST
to get list of all sales orders.
Here is a lik which provides you BAPI'S regarding everything.
[http://www.saptechies.com/sap-bapi-list/]
Hope this will help you.
Regards,
Pavan. -
hello i have started using iphone 5 for which i downloaded my contacts from i clouds i am not able to get name of the person when he is calling for which i have already saved the no. on my contact list i have reseted my phone twice its only showing the names of the person whose no. i have saved it with the country code i am staying in india new delhi pls help me i am fed up not able to get the name of person who is calling
Sir, your Apple ID can be used as an iCloud account as well. They are both the same thing.
You can learn more from --> Set up your Apple ID for iCloud and iTunes - Apple Support -
A Function or BAPI to get Material Standard Price?
Hi All,
I need a Function or BAPI to get the Material Standard Price when the following Criteria is given;
1. Material Code
2. Plant
3. Period
4. Year
5. Company Currency (Optional)
I need only the Standard Price and Price Unit. Please give me a example with sample values.
Thanks,
KishanSri:
I need only the Standard Price and Price Unit
there is no specific FM for that.
you need to write small select query in FM than use this custom FM into your program.
Amit. -
Get Name of Future Step in TestStand Sequence
Hello All,
Working on a sequence of numeric limit tests, and need to set the limits programatically, based on an imported configuration file. I use a simple action call to set the limits with a code module (TestStand Set Property Value function), but in order to make the code module reusable, I need to pass in the step name for the test step it applies to, each time I call it. The problem is that the step that each limit applies to is several steps later in the sequence. I know that I can get the name of the next step (RunState.NextStep.Name) but need to know if it is possible to get names of later steps as well. I'm guessing it may have something to do with the "NextStepIndex" function, but can't seem to get the context right. Please advise. Thanks in advance.
GSinMNFigured it out myself.
Locals."Variable To Set" = RunState.Sequence.GetStep((RunState.Sequence.GetStepIndex(Step.Name, StepGroup_Main))+"Number of steps in Future",StepGroup_Main).Name
Where "variable to set" is the name of the variable you are assigning the step name to and "number of steps in future" is an integer that represents the index with respect to the current step (i.e. 2 would mean the second step after the current step).
GSinMN -
Get name fails on automounted volume
here's the script:
tell application "FileMaker Pro"
activate
set mysuperid to (cell "superid" of current record of document "ajoneuvot")
if mysuperid > 0
set mytarget to (cell "superid" of current record of document "ajoneuvot" & cell "g_kuvapaate" of document "ajoneuvot")
else
set mytarget to (cell "reknro" of current record of document "ajoneuvot" & cell "g_kuvapaate" of document "ajoneuvot")
end if
set mysource to choose file with prompt "Valitse kuva" of type "JPEG-kuva" without invisibles
tell application "Finder"
set myname to name of mysource
duplicate mysource to folder "kuvaIN" of folder "vehicles" of startup disk with replacing
if item mytarget of folder "kuvaIN" of folder "vehicles" of startup disk exists
delete item mytarget of folder "kuvaIN" of folder "vehicles" of startup disk
end if
set name of item myname of folder "kuvaIN" of folder "vehicles" of startup disk to mytarget
end tell
end tell
works great when the selected picture resides on a volume which is manually mounted or on local volume.
We have people whose home folder resides on our X server and is automounted. If they try to select a picture from that automounted volume, the script fails with this error (translation from finnish):
can not get name of alias
volumename:thefilepath
is the problem that the volume on which the picture resides is not mounted from finder (the icon is not visible on desktop)?
thanks for any helpSo, no help?
-
Java.lang.Exception: Could not get name for DC project
Hello Experts,
We have a code which is downloaded from SVN repository.
I have imported the code from my desktop into NWDS and when I try to deploy it throws,
java.lang.Exception: Could not get name for DC project
I have referred few threads in SCN and solution suggested is to change the workspace and create a new DC & copy the _comp from old DC.
I tried the above solution but there are lot of build errors as we have few RFC models and it is throwing build errors for missing model reference.
Kindly help me on how to fix the error.
Thanks, SwarnaprakashDear Swarnaprakash,
The Web Dynpro DCs Import C:\----\user\.dtc\LocalDevelopment\DCs\sap.com\test and
the related package for DC is missing once check it after try to import.
Depending on which Java compiler preferences are set, you may see some
warnings in the "Task" view after importing the project. If the severity level for problems of type "Unused imports" (set in Preferences – Java – Compiler) has the value "Warning", the compiler will issue a warning for unused import references. Ignore these warnings!
Still You getting means delete your .metadata before take the backup.after open the NWDS again it will set new configurations in your system.
Thanks & Regards,
Durga Rao. -
Hi i want to create BAPI to get approver of the employee
hi i want to create BAPI to get approver of the employee
in this BAPI if there are two approver for that employee than i need both approver personal no.
please help me
thanks in advanced.Hi
I doubt whether there is a direct Standard BAPI for that.
The below report will get you the employees approver org position. Even if there are two approvers are there, it will display both the approvers position.
*& Report ZGD_TEST_HR_ORG_STR
REPORT ZGD_TEST_HR_ORG_STR.
DATA: plvar LIKE hrsobid-plvar.
DATA: otype LIKE hrsobid-otype.
DATA: sobid LIKE hrsobid-sobid.
DATA: date LIKE sy-datum.
DATA: leading_position LIKE hrobject OCCURS 1 WITH HEADER LINE.
DATA: org_agent LIKE swhactor.
DATA: lv_sw_vapos TYPE xflag,
lv_subrc TYPE sy-subrc.
DATA spfli_wa TYPE spfli.
DATA carrid_buffer TYPE spfli-carrid.
IF plvar IS INITIAL.
CALL FUNCTION 'RH_GET_ACTIVE_WF_PLVAR'
IMPORTING
act_plvar = plvar
EXCEPTIONS
no_active_plvar = 1.
IF sy-subrc > 0.
MESSAGE e300(5w) RAISING no_active_plvar.
ENDIF.
ENDIF.
IF otype IS INITIAL OR sobid IS INITIAL.
otype = 'US'.
sobid = sy-uname.
ENDIF.
CALL FUNCTION 'RH_GET_LEADING_POSITION'
EXPORTING
plvar = plvar
otype = otype
sobid = sobid
date = sy-datum
auth = ' '
consider_vac_pos = space
TABLES
leading_pos = leading_position
EXCEPTIONS
no_lead_pos_found = 1
OTHERS = 2.
IF sy-subrc > 0.
MESSAGE e802(5w) WITH otype sobid
RAISING no_lead_pos_found.
ELSE.
LOOP AT leading_position.
write : / leading_position-otype,
leading_position-objid.
ENDLOOP.
endif.
Hope it helps you -
BAPI To get GL Line items (Open Item Managed GL)
Hi,
I am looking for a BAPI to get GL open line items that usually I can download from FBL3N. This is required for Open Item managed GLs. The BAPI can be similar to that of BAPI_AP_ACC_GETOPENITEMS or BAPI_AR_ACC_GETOPENITEMS.
Thanks in advance for your response.
Best Regards,
DusmantaHi Maple,
Try out with the following BAPI's:
BAPI_GL_ACC_GETDETAIL : G/L Account Details
BAPI_GL_ACC_GETLIST : List of G/L Account for each company code
Hope this will be helpful.
Regards,
A.Fahrudeen
Maybe you are looking for
-
Printing Images with Transparent Background
Sorry if this question has already been asked, but I couldn't find anything similar to it in a search through the archives. I have a couple of images with transparent backgrounds in a document, much like the shells and the blue flowers in the "Classi
-
Hi, I created a pdf and display it in WD4A. Everything works flne but when my users want to save the PDF locally with the standard adobe save button, the file name by default is "F.pdf". Thats in deed not a very meaningful name and I asked myself whe
-
How do I find driver MSVCR80.DLL to get my Itunes working again on my PC
Unable to boot Itunes due to missing driver MSVCR80.DLL. What do I need to do?
-
Is oracle database 10.2.0.4 be used in oracle applications 12.1.3
We are palnning to upgrade from our current applications version 12.0.4 to 12.1.3 We understand it will done in 2 phases ie 12.0.4 - 12.1.1 and 12.1.1 to 12.1.3 but our current database version is 10.2.0.4 My question here is can we upgrade applicati
-
Transactions to Display Item-Condtions-Detail for Pricing?
User sent me a screen shot where I can see at the top: Item, Condition Type, Application, and CondPricingDate. Below are details like Amount, Qty Conversion, Cond. base value, etc. Any idea what transaction they used and how they got to it (params)?