VA01 user exit at line item with partner address
I need a user exit for VA01 that is at the line item level. The catch is I also need access to the partner address data. I have found userexit_pricing_prepare_tkomk (include MV45AFZZ) but that doesn't give you the "instance" address information (the address data that is specific to that order, after being changed). It only gives you the address number for the partner's default address.
Does anybody know if such an exit exists?
Regards,
Aaron
Hi Aaron,
I had a similar requirement Long back & This was my code I written. Hope this helps you.
* Extract and Update field for partner-id - Goods Supplying vendor
CLEAR TKOMK-Y_GSVN.
PERFORM XVBPA_LESEN(SAPFV45K) USING 'WL' VBAP-POSNR SY-TABIX.
IF XVBPA-UPDKZ <> 'D'.
TKOMK-Y_GSVN = XVBPA-LIFNR.
ENDIF.
PERFORM XVBPA_LESEN(SAPFV45K) USING 'ZP' VBAP-POSNR SY-TABIX.
IF XVBPA-UPDKZ <> 'D'.
TKOMK-BSART = 'ZIN'.
SELECT SINGLE LAND1 FROM LFA1 INTO TKOMK-Y_COMM_CTY WHERE LIFNR = XVBPA-LIFNR.
ENDIF.
FORM XVBPA_LESEN USING US_PARVW US_POSNR US_TABIX.
DATA: DA_VBADR TYPE VBADR.
DATA: DA_VBPA LIKE XVBPA.
CLEAR DA_VBPA.
READ TABLE XVBPA INDEX 1 INTO DA_VBPA TRANSPORTING VBELN.
XVBPAKEY-MANDT = VBAK-MANDT.
XVBPAKEY-VBELN = DA_VBPA-VBELN.
XVBPAKEY-PARVW = US_PARVW.
XVBPAKEY-POSNR = US_POSNR.
READ TABLE XVBPA WITH KEY XVBPAKEY.
IF SY-SUBRC > 0.
XVBPAKEY-POSNR = POSNR_LOW.
READ TABLE XVBPA WITH KEY XVBPAKEY.
ENDIF.
IF SY-SUBRC > 0.
CLEAR XVBPA.
IF US_PARVW = 'WE'.
CLEAR KUWEV.
ENDIF.
IF US_PARVW = 'RG'.
CLEAR KURGV.
ENDIF.
ENDIF.
US_TABIX = SY-TABIX.
* CAM is not activated
IF ZAV_FLAG IS INITIAL.
IF NOT XVBPA-ADRNR IS INITIAL.
CLEAR XVBADR.
XVBADR-ADRNR = XVBPA-ADRNR.
READ TABLE XVBADR.
IF SY-SUBRC > 0.
CLEAR XVBADR.
ENDIF.
ENDIF.
* CAM is activated
ELSE.
*if there is an address
IF NOT XVBPA-ADRNR IS INITIAL.
*clear address data
CLEAR XVBADR.
*try to read address in internal table XVBADR
READ TABLE XVBADR WITH KEY ADRNR = XVBPA-ADRNR ADRNP = XVBPA-ADRNP.
*if address is not in internal table XVBADR
IF SY-SUBRC NE 0.
*read address in CAM tables
CALL FUNCTION 'SD_ADDRESS_GET'
EXPORTING
FIF_ADDRESS_NUMBER = XVBPA-ADRNR
FIF_PERSONAL_NUMBER = XVBPA-ADRNP
FIF_ADDRESS_INDICATOR = XVBPA-ADRDA
IMPORTING
FES_ADDRESS = DA_VBADR
EXCEPTIONS
OTHERS = 4.
IF SY-SUBRC EQ 0.
MOVE-CORRESPONDING DA_VBADR TO XVBADR.
APPEND XVBADR.
ELSE.
CLEAR XVBADR.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDFORM.
Thanks & Regards,
Dileep .C
Similar Messages
-
Hi all....
I need a user exit which is applicable at line item level.
The field 'first date' in line item, is same as first line in scehdule line.If i update 'first date in line item, the schedule line gets updated automatially. According to my requirement, i need a user exit at line item for date field.
Thaks
AleemHi,
You can try this.
USEREXIT_MOVE_FIELD_TO_VBEP
Use this user exit to assign values to new fields at the level of
the sales document schedule lines.
The user exit is called up at the end of the FORM routine
VBEP_FUELLEN.
Thanks
Krishna. -
HI There,
I'm not good at ABAP coding and need some help from experts.
Working on Line Items Query and enhanced the 0FI_AP_4 to include fields from BSEG table, the fields are:
GEBER - Funds
FISTAL - Funds Center
KOSTL - Cost Center
GSBER - Business Area.
I used the below code to enhance the datasource 0FI_AP_4, and its taking toooo long to load the data, but its pulling the line item data into BW.
Please find another code after this....its very quick, either in extract checker or loading into BW, however its not loading all fields into BW. Specially line items like Cost Center, Fund center and Fund fields.
Please go through the below codes and suggest me what changes i have to make to work as it should be.
DATA: L_TABIX LIKE SY-TABIX.
DATA: ZADTFIAP_3 LIKE DTFIAP_3.
CASE I_DATASOURCE.
WHEN '0FI_AP_4'.
LOOP AT C_T_DATA INTO ZADTFIAP_3.
L_TABIX = SY-TABIX.
SELECT SINGLE GEBER FROM BSEG INTO ZADTFIAP_3-GEBER
WHERE BUKRS = ZADTFIAP_3-BUKRS AND GJAHR = ZADTFIAP_3-FISCPER+0(4).
SELECT SINGLE FISTL FROM BSEG INTO ZADTFIAP_3-FISTL
WHERE BUKRS = ZADTFIAP_3-BUKRS AND GJAHR = ZADTFIAP_3-FISCPER+0(4).
SELECT SINGLE KOSTL FROM BSEG INTO ZADTFIAP_3-KOSTL
WHERE BUKRS = ZADTFIAP_3-BUKRS AND GJAHR = ZADTFIAP_3-FISCPER+0(4).
MODIFY C_T_DATA FROM ZADTFIAP_3 INDEX L_TABIX.
ENDLOOP.
ENDCASE.
Below code is extracting data very quickly but not bringing data for all fields specially line items like Fund Center, Cost center and Fund fields.
DATA: L_TABIX LIKE SY-TABIX.
DATA: ZADTFIAP_3 LIKE DTFIAP_3,
wa_bseg Like bseg.
CASE I_DATASOURCE.
WHEN '0FI_AP_4'.
LOOP AT C_T_DATA INTO ZADTFIAP_3.
L_TABIX = SY-TABIX.
Select single * from
bseg into wa_bseg
where BUKRS = ZADTFIAP_3-BUKRS
and GJAHR = ZADTFIAP_3-FISCPER+0(4)
and BELNR = ZADTFIAP_3-BELNR
and BUZEI = ZADTFIAP_3-BUZEI.
IF SY-SUBRC = 0.
Move: wa_BSEG-GEBER to ZADTFIAP_3-GEBER,
wa_BSEG-FISTL to ZADTFIAP_3-FISTL,
wa_BSEG-KOSTL to ZADTFIAP_3-KOSTL,
wa_bseg-GSBER to ZADTFIAP_3-GSBER.
ENDIF.
MODIFY C_T_DATA FROM ZADTFIAP_3 INDEX L_TABIX.
ENDLOOP.
ENDCASE
Thanks
VandanaHi,
You can try this.
USEREXIT_MOVE_FIELD_TO_VBEP
Use this user exit to assign values to new fields at the level of
the sales document schedule lines.
The user exit is called up at the end of the FORM routine
VBEP_FUELLEN.
Thanks
Krishna. -
MM PO - New Pricing Routine / user exit / at Line item
Hi
When ever a line item data gets chnaged, we need to do the Update Pricing / New pricing Automatically.
Currently we are doing this manually and would prefer to automate -
request for possible suggestions / solutions OSS notes for this functionality.
cheers
NanduHi
Look at using BADI ME_DEFINE_CALCTYPE to select the pricing type B (carry out new pricing) whenever you make a change to PO item.
You need to go through the documentation of this BADI before you use it to make the correct program changes.
Hope this helps.
PP -
Use CREATE_TEXT on VA01 user exits
Hi,
I need to write item text using FM CREATE_TEXT in VA01 user exits. The FM required VBELN and I don't have when creating order.
How can I create item text in VA01 user exits ?
Thanks,
QuincyHi,
i have a similar requirement where i need to copy custom populated fields of vbap table into item->text->item notes tab.
i tried with both create_text and save_text. but i couldn't see the item in the item->texts->item notes.
here is my code:
CONCATENATE vbap-zzrelid vbap-zzsorg2 vbap-zzsorg3
vbap-zzsorg4 vbap-zzsorg5 vbap-zzsorg6
vbap-zzsorg7 vbap-zzsorg8 vbap-zzsorg9
vbap-zzsorg10 INTO gt_textname.
gt_textobject-tdid = c_0002.
gt_textobject-tdname = gt_textname.
gt_textobject-tdobject = c_vbbp.
gt_textobject-tdspras = sy-langu.
APPEND gt_textobject.
CONCATENATE 'relationship Owner:' vbap-zzrelid INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 2 :' vbap-zzsorg2 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 3 :' vbap-zzsorg3 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 4 :' vbap-zzsorg4 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 5 :' vbap-zzsorg5 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 6 :' vbap-zzsorg6 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 7 :' vbap-zzsorg7 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 8 :' vbap-zzsorg8 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 9 :' vbap-zzsorg9 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CONCATENATE 'sales org 10 :' vbap-zzsorg10 INTO gt_text-tdline
SEPARATED BY space.
APPEND gt_text.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
header = gt_textobject
savemode_direct = 'X'
TABLES
lines = gt_text
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
kindly resolve the problem with the above code.
Thanks,
Preethi. -
Is there any user exit/ badi to populate the partner bank type for F-63.
Is there any user exit/ badi to populate the partner bank type (field name BSEG-BVTYP) in transaction F-63. There is exit ZFI_FOAP_CDITEMS_00001011 having BKPF and BSEG as only import parameters so I cant change the value for BSEG-BVTYP.
So could you please let me know any exit where I can change the value for BSEG-BVTYP for transaction F-63?
Thanks in Advance,
Steevanhi,
Below r the user exit related to transaction F-63.
Check out if any of them will solve ur Query..
F050S001 FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
F050S002 FIDCC1: Change IDoc/do not send
F050S003 FIDCC2: Change IDoc/do not send
F050S004 FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
F050S005 FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
F050S006 FI Outgoing IDoc: Reset Clearing in FI Document
F050S007 FIDCCH Outbound: Influence on IDoc for Document Change
F180A001 Balance Sheet Adjustment
FARC0002 Additional Checks for Archiving MM Vendor Master Data
FEDI0001 Function Exits for EDI in FI
RFAVIS01 Customer Exit for Changing Payment Advice Segment Text
RFEPOS00 Line item display: Checking of selection conditions
RFKORIEX Automatic correspondence
SAPLF051 Workflow for FI (pre-capture, release for payment)
Reward points if helpful,
Regards,
Brijesh -
Exclude line items with has no batch when we create a delivery
Hi All,
How can i Exclude line items with has no batch(Batch determination not found)when we create a delivery from sales order. Is there any user exit to prevent line items with has no batch number. I appreciate your help.
thanks,
Nara.Hi
Can you try by putting some custom code in the include MV50AFZZ/mv50afz1/mv50afz2/mv50afz3/mv50afzk/mv50afzl. These are all exit.
Thanks
Chinmoy
Message was edited by: Chinmoy Ghosh -
Customer line items with balance carry forward no opening balance
Hello FI Experts,
We have ticket where the user is using a Z* Report for Customer line items with balance carry forward. In 31.01.2007 user has posted some legacy data, latter he was executing this Z* report then user can see the values posted on the same day (31.01.2007) as line items. But he was executing the report on 01.02.2007 then he was not able to see the line item as well as the values posted on 31.01.2007 as opening balance as on 01.02.2007. But if we run the report as on 01.01.2008 then we are able to see the values which are carry forwarded as opening balances. Did anyone have worked on this type of scenario?
Requirement Here Is: The values that have been posted on 31.03.2007 which are still open line items should get displayed as opening balance as on 01.02.2007.
Thanks for helping on this issue.Hi,
Any report will get data from Tables. Please check whether the table you have used to develop this report has opening balance.
Balance will be carry forwarded only when you run the balance carry forward program. Check whether this was run for the date you have specified. This can be done in the year end.
If you are checking in the middle of the year, then the balance will not be carry forwarded.
Regards,
B. Radhika. -
Prevent user from view line item details in KSB1 report
Hi,
how to restricting user from view line item details by double-click on it or highlight an item click on Document?
Regards,
KelvinHi,
This issue got resolved.
SAP suggested to execute the program "FAGL_CORR_0001" for company code wise.
In ECC 5.00 from support pack 10 onwards two new fields has been added to table FAGLFLEXA. (earlier we are on support pack 9, recently we applied the latest support pack)
If we can execute the above program FAGL_CORR_0001, the two new fields will filled with relevant data and then we can able to use drill down option.
This is for your information.
Message was edited by:
prasad naga -
Shopping cart created with one line item with qty 10 . PR need to be creat
Hi gurus
1SC created for ONE LINE ITEM with QTY 10
PR need to be created with 10 LINE ITEMS with Qty 1.
Classic Scanario
Advise .
2.Also please let me know what the batch jobs for delta ( user data or HR data) upload. To upload all user changed data synchonization job
3.Also please let me know what is the batch job for escalation emails for approvals
SDclose not answered
-
System status and user status in Line Item Reports
Dear PS-friends,
I have to extend the CI CI_PROJ with some new fields. These fields should be shown in diverse Line Item Reports (CJI3 u2026).
I know how to get these customer fields into the field catalog for the reports (maintain include table CI_RKPOS, EXIT_SAPLKAEP_001 and ViewCluster V_TKALV).
Now our customer wishes that 2 of the new fields are: system status and user status. The status should be shown in CJI3 as a concatenated field as you see it in CJ20N.
In CN42 there is the column system status as a standard column. But I cannot find the structure CNJ_STAT included in V_TKALV for Line Item Report Object=PD.
Has anybody an idea how it works to show the system status and user status in Line Item Reports.
Thanks in advance!Problem is solved.
I wrote a function module using FM 'STATUS_TEXT_EDIT' and concatenated line and user_line. -
Vendor Line item with Opening and Closing Balances report regarding
Dear All,
I need a report for vendor line items with Opening and Closing balances.
Thanks in advance
SateeshHi
Try S_ALR_87012082 - Vendor Balances in Local Currency
Regards
Sanil Bhandari -
Report for G/L line items with both debit & credit posting accounts
Hi,
My client requires a G/L line items report. It can be possible thru fs10n or fbl3n etc. But he wants to see both the credit and debit accounts in the same line.
for ex: if I open a expense account and show the report of individual documents, he wants to see the corresponding credit item to which bank/cash account it got credited to.
we showed them to double click on that document and goto document overview. but they dont want in that way.
they want to see all the line items with both postings in the same sheet for all line items.
valuable replies will be fairly rewarded.
thanks,
chaitanyaHi,
U can use the following TCodes...
- S_ALR_87012287
- S_ALR_87012289
- S_ALR_87012291
But i am not sure if your client will be happy...
This is a very common req and the only solution possible is to have a customized report for the client..
Hope its clear..
Cheers
Raghu -
Unable to delete line item with 0 quantity in Invoice.
Hi Experts,
I came across a Invoice which reflects in VF04 as pending Billing due list. When i checked at the inter company Invoice i came across a line item with "0" quantity and price as zero, interestingly the replinishment cross company delivery document for the same line item for "0" quantity had a Batch assigned to it.
Now the issue is cusotmer has selected the line item with XX quantity and have selected the accounting document to be generated but the line item with "0 was left over and now still reflects in VF04.
Customer does not want to reverse the full cycle to resolve the issue since the document was created a year back.My Question is can we get the line item with "0" quantity to clear accounting so that it will not reflect in VF04.If so what will be process to do that.
Thanks in Advance to advice.
Regards,
Sridhar.RHi,
It is not possible to delete this line item, you can discuss with your client and delete it from the table.
And now coming to the reasons why it has come into the invoice & Delivery
1. The Batch Item category must have been configured as relevant for billing...check this and make it irrelevant if the client does not do batch specific billing. --- This will stop the batches from coming into the invoice.
2. Check for the batch item category in delivery if Zero quanity is allowed...if it is allowed make it not allowed and make it an Error message, whenever there is a zero quantity system will give a message. -
PO Line Item with Open Quantity
HI all,
How should i select a PO line item with Open Quantity? Is it possible to post GR for a PO which is set for Delivery Complition but still has Open Quantity ..
please help me how to check for OPEN QUANTITY.
Thanks,
Ravi.Hi all,
Thanks for your answer, but can you be some more specific on what calculations need to be done.
I need to Post a GR for all PO where PO line items have Open Quantity.
Thanks
ravi.
Maybe you are looking for
-
Creating New Dashboard Packages for SAP Business One
Hi Experts, I am learning how to create my dashboard for Business One on version 9.1PL04. In this step. http://businessone91:8080/B1iXcellerator/exec/ipo/vP.001sap0004.in_HCSX/com.sap.b1i.vplatform.runtime/INB_HT_CALL_SYNC_X- The UR
-
How do i set up an iCloud account to work with existing hotmail account
So i have iphone 4s and a macbook and i want the email address that i used to have sync via fetching the data manually to work with icloud, I made an icloud account so that i could do this but now that and the other email account are seperate so noth
-
What are the characteristics of the procfs file system type ?
Hi Solaris guys, I walked through the Student Guide SA-239 to find information about procfs file system (/proc), but not yet. Could anyone here explain it for me ? 1. File ownership is determined by the credentials of the process. 2. It contains refe
-
SAP SNC Portal DCM screen performance is very slow and times out
Friends, SAP SNC Portal DCM screen performance is very slow and times out when user trying to pull data using customer location What are the cleanup activites we can do to improve the overall SNC performance ? We did open OSS message but so far no re
-
Syncing photos to iPad results in WEIRD behaviour
To be more specific, I am trying to sync my photos to my iPad using iTunes on Windows. I have my photos categorised in the My Pictures folder by date (e.g. December 2011, November 2009, etc). However, not only do not all the photos copy over, leaving