FB01 any Bapi
Hi,
I am using bapi BAPI_ACC_DOCUMENT_POST.. for FB01 but i am not getting Two fields
PstKy (Posting Key for the Next Line Item) and SGL Ind (Special G/L Indicator for the Next Line Item)
is any other bapi avilabel for this...
or please give me sample bapi for FB01 or BAPI_ACC_DOCUMENT_POST.
Point is assured
use report RFBIBL00
A.
Similar Messages
-
Is there any BAPI or function module to delete entries from a table (VBAK)
Hi Everybody,
this is my first thread in SDN...
my problem follows...
A report is be created that selects all sales orders created by e-Sales that are more than 20 minutes old and still have a delivery block:
tables:
VBAK sales document: header data
selection fields:
VBAK-LIFSK ≠ <BLANK>
VBAK-ERNAM = userID used by e-Sales / IVE
(EP-BATCH / EAI-BATCH)
VBAK-ERDAT <= Current system Date
VBAK-ERZET <= Current system Time - 20 minutes
These orders should be deleted from SAP system.
This report should be scheduled to run regularly every 10 minutes.
my doubt : is ther any BAPI or Function module to delete entries from a standard table...if no what is the way to delete the enteries from a std table...
best replies will be rewarded....
regards
ReddyHi Vasanth ,
thanks for your reply.
i tried in the same manner what u mentioned.
but how to pass only one parameter to the functionmodule..
here in this case we have to pass only update flag as 'D'..
i did the same it giving dump..
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was
not caught and
therefore caused a runtime error.
The reason for the exception is:
The call to the function module "BAPI_SALESORDER_CHANGE" is incorrect:
In the function module interface, you can specify only
fields of a specific type and length under "ORDER_HEADER_INX".
Although the currently specified field
"INT_ORDER_HEADER_INX" is the correct type, its length is incorrect.
my pgm :
*& Report YNEW_ORDER_DELETION
REPORT ynew_order_deletion.
TABLES:vbak.
PARAMETERS:
p_lifsk LIKE vbak-lifsk DEFAULT '02'.
SELECT-OPTIONS:
s_lifsk FOR vbak-lifsk DEFAULT '10',
s_ernam FOR vbak-ernam,
s_erdat FOR vbak-erdat,"DEFAULT sy-datum.
s_erzet FOR sy-uzeit.
*PARAMETERS:
p_erzet LIKE sy-uzeit.
s_erdat like vbak-erdat,
s_erzet like vbak-erzet.
DATA:
BEGIN OF int_final OCCURS 0,
w_vbeln TYPE vbak-vbeln,
END OF int_final.
DATA:
int_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
DATA: int_order_header_inx LIKE bapisditmx OCCURS 0 WITH HEADER LINE.
DATA:
wf_time TYPE sy-uzeit.
INITIALIZATION.
s_ernam-low = 'KULKARMA'.
s_ernam-sign = 'I'.
s_ernam-option = 'EQ'.
APPEND s_ernam.
s_ernam-low = 'EAI-BATCH'.
s_ernam-sign = 'I'.
s_ernam-option = 'EQ'.
APPEND s_ernam.
wf_time = sy-uzeit - 1200.
p_erzet = sy-uzeit - 1200.
p_erzet-low = wf_time.
APPEND s_erzet.
int_order_header_inx-updateflag = 'D'.
APPEND int_order_header_inx.
START-OF-SELECTION.
SELECT vbeln FROM vbak
INTO TABLE int_final
WHERE lifsk EQ p_lifsk
AND ernam IN s_ernam
AND erdat IN s_erdat
AND erzet IN s_erzet.
IF sy-subrc = 0.
LOOP AT int_final.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = int_final-w_vbeln
ORDER_HEADER_IN =
order_header_inx = int_order_header_inx
SIMULATION =
BEHAVE_WHEN_ERROR = ' '
INT_NUMBER_ASSIGNMENT = ' '
LOGIC_SWITCH =
NO_STATUS_BUF_INIT = ' '
TABLES
return = int_return
ORDER_ITEM_IN =
ORDER_ITEM_INX =
PARTNERS =
PARTNERCHANGES =
PARTNERADDRESSES =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CFGS_BLOB =
ORDER_CFGS_VK =
ORDER_CFGS_REFINST =
SCHEDULE_LINES =
SCHEDULE_LINESX =
ORDER_TEXT =
ORDER_KEYS =
CONDITIONS_IN =
CONDITIONS_INX =
EXTENSIONIN =
ENDLOOP.
LOOP AT int_return.
WRITE:/ int_return-type,
int_return-id,
int_return-number,
int_return-message.
ENDLOOP.
ENDIF.
please help me ..its a very urgent issue to be solved...
am waiting for ur reply...
regards
gangareddy -
HR-ABAP Any BAPI or Function module to update infotypes 167 & 170
Hi,
Can anyone let me know is there any BAPI or Function module to update infotypes 167(Health Plans) & 170(Flexible Spending Accounts).
Thanks,
SandeepHi,
U can use HR_BEN_CREATE_PLANS internally it calls HR infotype operation as specified by suresh.
Suresh : If there are approximately 3000 records to be updated on regular basis do u think is it better to use BAPI's or BDC
regards
Vick -
Is there any BAPI allowing to retreive dump information in details?
Dear all,
I would like to ask a question about dumps that are sometimes generated on SAP sytems.
Each morning, by using the transaction ST22 I can see the dumps that were generated during
the precedent day. I click on each dump label then in the menu System > list > save
I can save the dump file which includes technical information about the error (our
developers look inside in order to find out what went wrong that gernerated the error)
Now, sometimes there are actually too many dumps and saving each file by ST22 one by one
takes too much time.
I know ABAP programming language, I would like to ask is there any BAPI in SAP which could be called
and that provides the same details that you can have by ST22 about the generated dumps? I was thinking
to call inside a loop (as many times as there are dumps) this BAPI and write the datails about each
dump in DATASET and creates the files.
So, do you know any BAPI providing information about dumps?
Thank you very much for your attention,
Kind Regards,
DariyooshHello there,
Thanks for this information, I'm going to look into the function group in order to
see how I may use its function modules properly for my purpose.
Thank you very much,
Kind Regards,
Dariyoosh -
Bapi : Is there any BAPI to CANCEL / BLOCK a Purchase Order
hello everybody,
can anyone tell me if there is any BAPI to cancel or block a Purchase order.
Note : blocking of purchase order is done on item level of the PO.
Regards
SwanandHello,
in BAPI_PO_CHANGE:
Field DELETE_IND in structures POITEM and POITEMX.
It's reference is to data-element ELOEK: Documentation to this:
<i>Text
Deletion indicator in purchasing document
Definition
Determines whether the item in the purchasing document is deleted or blocked.
Use
You can set the deletion indicator by choosing Edit -> Delete if:
You want to cancel an item
An item is closed and can be archived
You can set the blocking indicator by selecting the item and then choosing Edit -> Block if you do not want to allow subsequent functions for the item. Note that you must manually remove the indicator as soon as subsequent functions are allowed again.
Examples
You have entered a purchase order item by mistake. You cancel it by setting the deletion indicator.
A purchase order item has been delivered, invoiced, and paid for, and can now be archived. You can set the deletion indicator.</i>
Regards Wolfgang -
New to ABAP -- Need help with any BAPI to update the vendor master record
I have a requirement to update the vendor master record ( ie purchasing block data inlfa1 and lfm1 table )directly. i have created the report but my problem is i am updating tables directly by using modify which is not correct according to SAP hence i want to use bapi whereby i can change the fields of the table. does anyone know any bapi which can modify the lfa1-sprem field and lfm1-sperm field. Plz hep me. They have specifically asked me to do it using BAPI's.
MAP2e_lfa1_to_bapivendor_04
MAP2e_lfa1_to_bapivendor_05
will be helpful -
Is there any Bapi for Physical Sample creation
Hi Folks,
Is there any Bapi for physical sample creation. My scenario is like this I have the data in the table (material, plant, batch, type,vendor, vendorbatch ). For each material i have to create a physical sample......
Any ideas or suggestions would be appreciated..
thanks
chaithanya.HI Chaitanya,
You can use : BAPI_BATCH_CREATE
it has import paramaters like Material, Plant , batch , Batch Attributes ( Vendor No, Vendor Batch etc)... I guess this is what you are looking for.
Regards,
-Venkat. -
ANY BAPI FOR FBRA TRANSACTION CODE - MOST URGENT
HI,
DONE RECORDING FOR FBRA AFTER EXECUTING , AFTER ENTERING VALUES IT IS SAYING MESSAGE THAT DOCUMENT INCLUDES ALREADY CLEARED ITEMS.CAN ANYBODY HELPS IN THIS?WHY IT IS SHOWING WHEN THE RECORDING IS SUCCESSFULL.
IS THERE ANY BAPI AVAILABLE FOR THIS? (ALTERNATIVE)
REGARDSHello,
Check this FM <b>RESET_CLEARED_ITEMS_BDC_WRITE</b>
Regards,
Vasanth -
Any BAPI for Auto clearing of Vendor accounts
Hai,
Any body know, any BAPI for Auto clearing of the Vendor account(transaction F.13).
This urgent issue.
Reward will promote you.
Bye ,
Elamaranno, there's no bapi
-> another report is rfbibl00 with transaction fb05
-> you've to fill structures bselk and bselp
regards Andreas -
Is there any BAPI or FM which updates or modifies FD32 transaction
Is there any BAPI or Function module which updates or modifies the fields of FD32 transaction screens
Hi, Srikanth
Please Have a look at this Link [BAPI for FD32 |bapi for FD32]
Please Search Before Posting
Hope will Solve out your Problem,
Best Regards,
Faisal -
Do we have any BAPI to get the Sales quote or Sales order details
Hi Experts,
Do we have any BAPI to get the sales quote or sales order details from my other SAP system.
My requirement is to get the sales quote or sales order details from the other SAP system.
Please help.
Regards,
ChitrasenHi Experts,
Thanks for ur help. The BAPI is BAPI_SALESORDER_GETSTATUS which helps in fetching the sales quote information.
Thanks,
Chitrasen -
ANy BAPI to create Purchase order
Hi,gurus,
Is there any BAPI to create PO.Pl send to me along with the sample code.
Gratefull answeres will be awarded.
Regards,
Venkatesh
9892 895847Hi
Use the bapi: bapi_po_create1 for creating the purchase order.
Pass the parameters like below:
header-comp_code = p_comp.
header-doc_type = p_dtype.
header-creat_date = sy-datum.
header-item_intvl = '10'.
header-vendor = p_lifnr.
header-langu = ws_langu .
header-pmnttrms = p_pmnt.
header-purch_org = p_porg.
header-pur_group = p_pgroup.
header-currency = 'INR'.
headerx-comp_code = c_x.
headerx-doc_type = c_x.
headerx-creat_date = c_x.
headerx-item_intvl = c_x .
headerx-vendor = c_x.
headerx-langu = c_x.
headerx-pmnttrms = c_x .
headerx-purch_org = c_x.
headerx-pur_group = c_x.
LOOP AT it_final2 INTO wa_final2.
p_int = p_int + 10.
wa_item-po_item = p_int.
CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
EXPORTING
input = wa_final2-matnr
IMPORTING
output = wa_final2-matnr
EXCEPTIONS
length_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
wa_item-material = wa_final2-matnr.
wa_item-plant = p_werks.
wa_item-quantity = wa_final2-kwmeng.
wa_item-tax_code = 'V0'.
APPEND wa_item TO it_item.
wa_itemx-po_item = p_int.
wa_itemx-material = c_x.
wa_itemx-plant = c_x .
wa_itemx-stge_loc = c_x .
wa_itemx-quantity = c_x .
wa_itemx-tax_code = c_x .
wa_itemx-item_cat = c_x .
wa_itemx-acctasscat = c_x .
wa_itemx-tax_code = c_x .
APPEND wa_itemx TO it_itemx.
ENDLOOP.
p_pono = ' '.
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
poheader = header
poheaderx = headerx
IMPORTING
exppurchaseorder = p_pono
TABLES
return = return
poitem = it_item
poitemx = it_itemx.
For better understanding see the function module documentation of the bapi: bapi_po_create1.
If it is helpful rewards points
Regards
Pratap.M -
Is there any BAPI's to get system information
HI All,
Is there any BAPI's to get system information like name which NWcomponent is installed, version, function modules which are implemented.
ITS VERY URGENT
ThanksHi,
bapi for getting the details of system inthe sense euipment i believe so try this bapi
BAPI_EQUI_GETDETAIL
BAPI_EQUI_GETLIST
Regards,
sana. -
Any BAPI/Function Module for adding new record with dates in PA0027
Hi all,
I am tryig to find is there any BAPI/Function module for updating new record with Start Date and End date for specified Personal Number in PA0027 Table.
In PA0027 table i will be passing start date and end date for selected personal number, it needs to add new record with this details in the table checking the condition that this start date and end dates should not be between any of of start date and end dates for the specified personal number.
thanks for ur time.
MuraliHi Raj/Suresh thanks for ur answers.
but i am having a problem,i gave this values.
INFTY -
0027
NUMBER -
00000010
SUBTYPE -
010
OBJECTID
LOCKINDICATOR
VALIDITYEND -
03/12/2006
VALIDITYBEGIN -
03/01/2006
RECORDNUMBER -
000
RECORD -
P0027
OPERATION -
CHK
TCLAS -
A
DIALOG_MODE -
0
NOCOMMIT -
Y
VIEW_IDENTIFIER
SECONDARY_RECORD
i am getting short dump saying that
The source field is too short.
The current program, "SAPLHRMM", tried to assign a field to a field symbo
However, the field is shorter than the type of the field symbol, which
is not allowed.
The statement in question is in the form ASSIGN f TO <fs> CASTING or
ASSIGN f TO <fs> with a field symbol that was created using the
STRUCTURE addition.
I tried operation - Chage,Create (same thing for all inputs)
is this correct funtion moduel for my requirment?
what ever i am passing the start and end dates this should check in the table records with this personal number and if this start date and end dates are not between of any start and end dates then it should add new record with this dates.
Thanks for ur time.
Murali. -
Is there any BAPI or FM to update the scheduled dates of a production order
Hi Friends,
I would like to know if there is any BAPI or function module available to update
the Scheduled finish and Scheduled start dates (GLTRS,GSTRS fields from AFKO table) of
a production order.
I have searched the forum, but I could not find anything.
It would be of great help if anybody let me know about any Function Module / BAPI.
Regards
AdityaHi ravi,
in crm we have a t-code to cancel billing doc just execute and provide billing doc no and test run.
that automatically cancel the billing doc. CRMD_BILL_REV Cancel Billing Document
and here is the function module to cancel the billing doc..
BAPI_BILLINGDOC_CANCEL1 Cancel billing document.
if you want to more just fallow this links i think this might be help full to you..
https://help.sap.com/saphelp_sm40/helpdata/en/6f/f26863448111d5992400508b6b8b11/content.htm
Cancellation of Billing - Billing - SAP Library
let me know if there is any queries.
Thanks & Regards,
Srinivas.
Maybe you are looking for
-
How do I fix these hyperlink problems?
Hello all, Here's my situation. I'm a copywriter at an ad agency and I just published a site in iWeb to showcase my work. This is my site: http://web.mac.com/rp173/iWeb/Site/landing.html These are the type of hyperlinks I'm having problems with: A te
-
hi, i recently purchased a macbook pro 13 inch this past summer. i did the lion program and it worked great. i bought the newest model, (2011) but have noticed a difference with the ones more recently purchased from bestbuy; the shortcut keys have di
-
Why was I sold a CDMA iPhone in the UK?
So I bought an iPhone 5 about 1 week ago. I just checked the model identifier and it's 'iPhone5,2'... This is the CDMA iPhone 5. I would have expected to have been sold an iPhone5,1 which is the International iPhone 5 (along with GSM in USA). Everyt
-
Oracle 9i AS Forms Service - ifWeb60.exe
Hi, I have an issue while running Oracle Forms 6i applications on Oracle 9iAS. For each access to the application the application server instantiates a new ifweb60.exe process which consumes on an average of 15-30 MB of Memory.As the number of users
-
Reconnection problem to Oracle v805 db
Hi, my app is suppose to reconnect to the db after the db shutdown and the db starts up again. My code, MS VC++ 6.0 see below, works for Oracle v816 but fails at the open dynaset statement for v805. Any ideas? oresult ores ; ODatabase = m_odb; ores =