This content from the SAP Concur Community was machine translated for your convenience. SAP does not provide any guarantee regarding the correctness or completeness of this machine translated text. View original text custom.banner_survey_translated_text
Hi Team,
Looking for expertise on "how have you done this before" with building the text CSV files for importing PO headers?
Help is much appreciated.
Solved! Go to Solution.
This content from the SAP Concur Community was machine translated for your convenience. SAP does not provide any guarantee regarding the correctness or completeness of this machine translated text. View original text custom.banner_survey_translated_text
scrapping the vba route. Using text join instead! Once the data is sorted using the previous step I used this formula to create the CSV file within a new column:
=IF(A7=300,TEXTJOIN(",",FALSE,A7:AZ7),IF(A7=220,TEXTJOIN(",",FALSE,A7:T7),IF(A7=210,TEXTJOIN(",",FALSE,A7:T7),IF(A7=200,TEXTJOIN(",",FALSE,A7:BI7)))))
This content from the SAP Concur Community was machine translated for your convenience. SAP does not provide any guarantee regarding the correctness or completeness of this machine translated text. View original text custom.banner_survey_translated_text
This is where we are at so far with our process - hoping to interject a simple for loop using an if statement to print a specified number of "columns" per each record type (300, 221, 210, and 200):
Now is where the for loop would come in play assigned to a button to print to CSV where:
'cRECORDTYPE = Fixed columns range for import into SAP Concur
For c300 = 1 To 52
For c220 = 1 To 20
For c210 = 1 To 20
For c200 = 1 To 61
for each row if column A = c300 = text = IIf(c300 = 1, "", text & ",") & RawRange.Cells(i, c300)
I'll keep posting to this thread to bring awareness and let you all know I'm not just lopping poop over the fence hoping someone will do my job haha
Cheers,
This content from the SAP Concur Community was machine translated for your convenience. SAP does not provide any guarantee regarding the correctness or completeness of this machine translated text. View original text custom.banner_survey_translated_text
scrapping the vba route. Using text join instead! Once the data is sorted using the previous step I used this formula to create the CSV file within a new column:
=IF(A7=300,TEXTJOIN(",",FALSE,A7:AZ7),IF(A7=220,TEXTJOIN(",",FALSE,A7:T7),IF(A7=210,TEXTJOIN(",",FALSE,A7:T7),IF(A7=200,TEXTJOIN(",",FALSE,A7:BI7)))))